modcomms/frontend
Vadym Samoilenko fdb5a2d961 Fix PDF export: switch to browser print, fix page breaks and bullet alignment
- Replace html2canvas + jsPDF with window.print() in both handleExportPDF
  and handleDownloadReport — browser print properly respects CSS break-inside:
  avoid on agent cards and page-break-before on proof pages, eliminating
  orphaned section headings
- Add listStylePosition: 'outside' and explicit lineHeight to <ul>/<li>
  elements in PDFReport so bullet symbols sit at the text baseline
- Add pageBreakInside: 'avoid' alongside existing breakInside: 'avoid' on
  agent cards for cross-browser compatibility
- Replace placeholder shield icon and plain-text Oliver SVG on cover page
  with BAR-ModComms-logo-v4.png (Barclays eagle) and styled Oliver wordmark

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 13:06:12 +00:00
..
components Fix PDF export: switch to browser print, fix page breaks and bullet alignment 2026-03-05 13:06:12 +00:00
contexts Grant oversight_admin write access to campaigns and proofs 2026-03-03 13:08:54 +00:00
hooks Add PDF preview support with on-demand rasterization 2026-01-25 08:56:23 -06:00
public Restyle full application from Barclays to Oliver Agency brand 2026-03-03 10:16:26 +00:00
services Remove debug console.log from model_fallback handler 2026-03-02 13:18:00 +00:00
utils Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
App.tsx Fix Proof Detail page responsive layout and button states 2026-03-05 12:54:55 +00:00
constants.ts Restructure agent system: remove Tone, split Channel, implement Legal 2026-01-24 11:58:17 -06:00
index.html Restyle full application from Barclays to Oliver Agency brand 2026-03-03 10:16:26 +00:00
index.tsx permissions changes 2025-12-18 16:51:27 +00:00
metadata.json permissions changes 2025-12-18 16:51:27 +00:00
package-lock.json permissions changes 2025-12-18 16:51:27 +00:00
package.json permissions changes 2025-12-18 16:51:27 +00:00
README.md permissions changes 2025-12-18 16:51:27 +00:00
tsconfig.json permissions changes 2025-12-18 16:51:27 +00:00
types.ts Add frontend RBAC: UserContext, role-based sidebar, agency filter, user management 2026-02-19 08:36:38 -06:00
vite.config.ts permissions changes 2025-12-18 16:51:27 +00:00

GHBanner

Run and deploy your AI Studio app

This contains everything you need to run your app locally.

View your app in AI Studio: https://ai.studio/apps/drive/1vH-R-vj0Xkk_g2ZFdHtLxNc12sFTOl2L

Run Locally

Prerequisites: Node.js

  1. Install dependencies: npm install
  2. Set the GEMINI_API_KEY in .env.local to your Gemini API key
  3. Run the app: npm run dev