Skip to content

Let a whole project leave the browser as one file on any browser — Save to folder needs desktop Chrome or Edge, and the delete dialog's rescue is absent everywhere else #294

Open

Description

@bencode

Problem

Browser-only mode's save-back story is "Export files to your computer" (README, Three ways to use it), but the only bulk path — Save files to folder — is showDirectoryPicker, which exists on desktop Chrome and Edge only (folderExportSupported, ui-packages/web/src/utils/file-system-access.ts:27). Everywhere else the control above Files sits disabled with a tooltip (folder-export-control.tsx:23,37), and the one fallback that does work, Save as…, is a plain one-at-a-time download (saveBlobAs, file-system-access.ts:90-97). A Safari, Firefox or iOS reader with a 100-file project backs up their library through 100 separate downloads, or not at all.

The gap is sharpest at the moment of loss. The delete-project dialog's rescue is canExport = exporter.supported && fileCount > 0 (delete-project-dialog.tsx:48), and the button is rendered only inside {canExport && …} (:68). On every browser without the directory picker, the dialog that announces "This deletes 50 files…" offers no export and no pointer to one — the reader crosses the line with no way out. Nothing else produces an archive: no zip code ships outside tests, though jszip is already a runtime dependency (ui-packages/web/package.json:32).

Proposal

  • Where the folder save is unsupported, the control above Files becomes Download project (.zip): one zip through the existing downloadBlob fallback path, recreating the project tree from the same paths the folder save writes.
  • Scope equals the folder save's: the Files tree (files collection, use-file-export.ts:73-75); attachments stay out, per the line Let Save to folder write chat attachments out with the files — today each one leaves only one by one, through Save as… #225 settled.
  • The delete dialog's rescue becomes this download where the folder save is unsupported, so a way out exists at the deletion moment on every browser instead of a hidden button.
  • Where showDirectoryPicker exists, the folder save stays the preferred path (remembered folder, changes only); the zip is the everywhere path and needs no permissions.

Goal

After this, a reader on Safari, Firefox or iOS can take a whole project out of the browser as one .zip — from above Files and from the delete dialog — and no export path in browser-only mode is gated on desktop Chrome or Edge.

Verification

grep -rqi "zip" ui-packages/web/src/features/resources/
grep -q "Download" ui-packages/web/src/features/projects/delete-project-dialog.tsx
pnpm --filter @gamma-reader/web test --silent
pnpm check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Nov 5, 2026
  2. bencode commented on Nov 5, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    First independent review @ d05b6b6 — evidence confirmed; valid, stays open.

  3. bencode commented on Nov 6, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Second review @ d05b6b6 (no commits since the first) — evidence re-confirmed; valid, stays open.

  4. bencode commented on Nov 10, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Third review @ d05b6b6 (still no commits since the second) — evidence re-confirmed; valid, stays open.

  5. bencode commented on Nov 13, 2026

    @bencode
    OwnerAuthor

    Posted by the scheduled issue-reviewer loop, independent of the authoring session.

    Fourth review @ d05b6b6 (still HEAD — no commits since 2026-10-28) — valid, stays open.

    • Anchors re-opened today, all exact: folderExportSupported = showDirectoryPicker (file-system-access.ts:27) and saveBlobAs's plain-download fallback (:90-97); the tooltip at folder-export-control.tsx:23 with !exporter.supported in controlDisabled (:37); canExport = exporter.supported && fileCount > 0 (delete-project-dialog.tsx:48) with the {canExport && ( block at :68; jszip at package.json:32; the files-collection filter at use-file-export.ts:73-75; "Requires desktop Chrome or Edge" verbatim at tutorial/guide/Files and projects.md:48; README:24's "Export files to your computer". Nothing new produces a zip for export (the in-memory writer at docx-unconverted.ts:133-134 is the known prior art, on record since review 2).
    • Sensor: lint ✓; verify ✗ at gate 1 on unfixed main — both greps re-run by hand: no "zip" under features/resources/, no "Download" in the delete dialog. Still discriminates.
    • Landscape: nothing filed or merged repo-wide since Offer a preset key only the models it serves — Check key receives the vendor's own list and throws it away, so a restricted or retired model is learned midway through an answer #295 (2026-11-05); open PRs Support repository hosting and Alibaba Token Plan models #287 and feat: search the web and read pages with DeepSeek where a deployment names it #293 touch neither surface.
    • Sharpening (standing, unaddressed since review 1): both gates are substring-loose — a stray "zip" comment or any "Download" string would pass them. Pin the outcome instead: grep -rq "Download project" ui-packages/web/src/features/resources/ plus the dialog's actual rescue-button label, so green means both controls exist as proposed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsource:scheduled

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions