Skip to content

feat(documents): add document catalog and PDF viewer - #220

Open
BIA3IA wants to merge 2 commits into
mainfrom
feat/documents-page
Open

BIA3IA wants to merge 2 commits into
mainfrom
feat/documents-page

Conversation

@BIA3IA

@BIA3IA BIA3IA commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Adds /documents from the Documenti Figma design, with four document categories and section navigation. Resources → Documenti makes the page discoverable.

The eye opens an internal PDF viewer in the same tab. It includes selectable text, zoom from 50% to 300%, reset, page navigation, return to the catalog, loading/error states and download. Download icons on both the catalog and viewer save the PDF without navigating away. The viewer supports mobile layouts and confines scrolling at higher zoom levels to the document viewport.

Reuses Hero, Glass, Button, Feather icons and design tokens. Adds a reusable DocumentCategoryCard and a typed mock catalog. React-PDF loads only on the client; its matching PDF.js worker, fonts and rendering assets are copied locally during dev/build, without a CDN dependency.

All ten PDFs are demonstration files, including the mock budgets and user rules. The page and PDFs identify this content as non-official. The introductory PDF includes two pages to exercise pagination. No backend or admin integration is included.

This branch starts directly from main and has no dependency on the visual-refinement PR stack.

Validation: production build and standalone viewer smoke check; TypeScript; Biome CI; existing Node tests; browser checks on desktop and 320px mobile; PDF rendering and selectable text; multi-page navigation; zoom; back navigation; actual downloads from both catalog and viewer; missing-PDF error state. All ten PDF endpoints were checked for HTTP 200 and application/pdf.

Design: https://www.figma.com/design/oSBlivb9Gm7H3ZkSdAtUHx/PoliNetwork-Website?node-id=6516-8013&m=dev

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f0262c65-ed46-43de-be0e-0b8d240b664f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BIA3IA BIA3IA changed the title feat(documents): add document page with mock PDFs feat(documents): add document catalog and PDF viewer Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant