Stirling-PDF/frontend/public
ConnorYoh 7e3321ee16
Feature/v2/filemanager (#4121)
FileManager Component Overview

Purpose: Modal component for selecting and managing PDF files with
preview capabilities

  Architecture:
- Responsive Layouts: MobileLayout.tsx (stacked) vs DesktopLayout.tsx
(3-column)
- Central State: FileManagerContext handles file operations, selection,
and modal state
  - File Storage: IndexedDB persistence with thumbnail caching

  Key Components:
  - FileSourceButtons: Switch between Recent/Local/Drive sources
  - FileListArea: Scrollable file grid with search functionality
- FilePreview: PDF thumbnails with dynamic shadow stacking (1-2 shadow
pages based on file count)
  - FileDetails: File info card with metadata
  - CompactFileDetails: Mobile-optimized file info layout

  File Flow:
1. Users select source → browse/search files → select multiple files →
preview with navigation → open in
  tools
  2. Files persist across tool switches via FileContext integration
  3. Memory management handles large PDFs (up to 100GB+)

 ```mermaid
 graph TD
      FM[FileManager] --> ML[MobileLayout]
      FM --> DL[DesktopLayout]

      ML --> FSB[FileSourceButtons<br/>Recent/Local/Drive]
      ML --> FLA[FileListArea]
      ML --> FD[FileDetails]

      DL --> FSB
      DL --> FLA
      DL --> FD

      FLA --> FLI[FileListItem]
      FD --> FP[FilePreview]
      FD --> CFD[CompactFileDetails]

  ```

---------

Co-authored-by: Connor Yoh <connor@stirlingpdf.com>
2025-08-08 15:15:09 +01:00
..
branding Feature/v2/landing page (#4128) 2025-08-08 12:02:08 +01:00
locales Feature/v2/filemanager (#4121) 2025-08-08 15:15:09 +01:00
favicon.ico change logos, favicon and browser tab title (#4032) 2025-07-25 12:14:37 +01:00
logo192.png change logos, favicon and browser tab title (#4032) 2025-07-25 12:14:37 +01:00
logo512.png change logos, favicon and browser tab title (#4032) 2025-07-25 12:14:37 +01:00
logo-tooltip.svg Feature/v2/tooltips (#4112) 2025-08-08 12:09:41 +01:00
manifest.json Initial react set up 2025-05-09 20:01:09 +01:00
pdf.js Stirling 2.0 (#3928) 2025-07-16 17:53:50 +01:00
pdf.worker.js File management groundwork 2025-05-15 23:12:39 +01:00
robots.txt Initial react set up 2025-05-09 20:01:09 +01:00
thumbnailWorker.js Stirling 2.0 (#3928) 2025-07-16 17:53:50 +01:00