Skip to content

Move or copy documents between projects inside the browser — a mis-filed document is locked today #47

Closed as not planned

Description

@bencode

Problem

Projects shipped this week as the top-level organizing unit — each with its own library, conversations, and browser tab (1d1eea0, 98be0d7). What did not ship with them is any way to move or copy a document between projects: zero matches for move/copy/between-project affordances across features/resources/ and features/projects/.

The only path out of a project is export — per-file Save as…, or folder export, which the README limits to desktop Chrome and Edge. The only path in is re-importing from the computer. So a document filed under the wrong project, or a reference that belongs in two projects, requires a disk round-trip: download, then re-import, one file at a time on Safari or Firefox. And because the browser copy is often the only copy (README: "Removing a file deletes only the browser copy, leaving your original unchanged" — the original may be long gone), a mis-filed document is effectively locked in place; the reader's own library can't hand a file to their own other project.

Moving also strands context: the conversations that referenced the file stay in the source project, but the file itself cannot follow the work.

Proposal

  • Add Move to project… (and Copy to project… where duplication is the intent) to each file's actions — the ResourceList rows already carry per-file actions (open, save-as, remove).
  • Offer it for a selection or the whole Files panel when cheap, so reorganizing a mis-filed batch is not N round-trips.
  • Cross-project movement stays within the browser: IndexedDB-to-IndexedDB transfer of the stored blob and metadata; no export, no upload, no new system concepts.
  • Confirm before moving a file that conversations reference — the source project's assistant keeps its history but loses live access to the moved file, and the reader should know that at the moment of moving.

Goal

After this, a reader can reorganize documents across projects entirely inside the browser — a mis-filed or shared document moves (or copies) to another project with its bytes intact, without a disk round-trip, on every supported browser.

Verification

grep -rqi "move to" ui-packages/web/src/features/resources
pnpm --filter @gamma-reader/web test --silent
pnpm check

Refs

  • ui-packages/web/src/features/resources/ — no move or copy affordance today (verified by search)
  • ui-packages/web/src/data/project-store.ts — per-project databases the transfer runs between
  • ui-packages/web/src/data/file-store.ts — stored blob + metadata shape to carry across
  • README.md — "Projects" and "Local-first by design" (export limits; browser copy is the reader's copy)
  • Commits 1d1eea0 / 98be0d7 — the projects feature this belongs to
  • Show storage durability and pressure before the browser can evict the reader's library #38 — storage candor; this is mobility: both are "the browser copy is the real copy" consequences

Activity

  1. added
    enhancement
    source:scheduled
    on Sep 30, 2026
  2. bencode commented on Oct 1, 2026

    @bencode
    OwnerAuthor

    Independent review — posted by the scheduled issue-reviewer loop (a session separate from the one that files these issues), under the maintainer's standing instruction to evaluate, sharpen, or retire source:scheduled proposals.

    Evidence audit (against main@d28fe0b): all citations confirmed.

    • ✅ Zero move/copy/between-project affordances across features/resources/ and features/projects/ (case-insensitive scan).
    • ✅ Export limits quoted accurately (README :69 "Folder export requires desktop Chrome or Edge"; :50 "Removing a file deletes only the browser copy, leaving your original unchanged") — the disk-round-trip framing holds, and the "browser copy may be the only copy" lock-in is real.
    • ✅ Per-file action surface exists as described (Save as… / Remove in resource-panel.tsx:77,91); project-store.ts and file-store.ts are the right transfer parties; both cited commits are the projects feature.
    • ✅ Sensor: lint passed; verify fails today as it should → stays open.

    Verdict: valid, keep open. Timely gap (projects shipped this week), technically sound (same-origin IndexedDB→IndexedDB blob transfer is standard), and the confirm-when-conversations-reference nuance shows the right care.

    Two sharpening notes (non-blocking):

    1. Destination quota: the Proposal's copy/move should say the transfer respects the destination project's 1 GiB limit the way import does — file-store.ts already fails with "The file exceeds the 1 GiB library limit" (:219); a cross-project transfer that bypasses that check would create a new enforcement hole. Worth one sentence in the Proposal.
    2. Anchor binds the label "move to" — an implementer naming it "Transfer to project" meets the Goal and fails the gate. Consider grep -rEqi "move to|transfer to" ui-packages/web/src/features/resources.
  3. bencode commented on Oct 2, 2026

    @bencode
    OwnerAuthor

    Not planned — discussed with the maintainer on 2026-10-01.

    Moving a document to another project is rare, and it already has a workable path: save the file (Save as… or folder export), then import it into the target project. A dedicated in-browser move/copy would add transfer logic, quota checks, and conversation-reference handling for an infrequent action that export + re-import already covers.

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