Skip to content

Say why Add folder is missing on iPhone and iPad — today the menu entry vanishes without a word, while the Tutorial tells every reader folders come in #236

Closed

Description

@bencode

Problem

On iPhone and iPad Safari, folder import does not exist and nothing says so. folderImportSupported() (ui-packages/web/src/features/resources/pick-folder.ts:24-26) is false on Apple mobile — the comment above it states the platform fact ("iPhone and iPad Safari offer no way to choose a folder; iPadOS reports itself as a Mac") — so addFolder is undefined (resource-panel.tsx:79-86) and the Add menu simply omits the entry (add-menu.tsx:40-46, {onAddFolder && …}). Dropping a folder is no alternative there: an iPhone has no drag-and-drop. What remains is "Add files…" and "Add from URL…", with the disappearance unexplained anywhere in the product.

Meanwhile the Tutorial every reader opens teaches the opposite: "Add folder… brings in a whole folder and keeps its structure. Desktop Chrome and Edge read the folder directly; other browsers use their folder upload." and "You can also drop files or folders onto Files." (tutorial/guide/Files and projects.md:10,13) — no iPhone or iPad can follow either sentence, and the phrase "other browsers use their folder upload" is false exactly where the entry is missing.

The tracker already settled this question for the mirror case: when Save to folder is unavailable on Safari and iOS, #176 kept the control visible and explained it, rather than removing it silently. And when Firefox lacked showDirectoryPicker, folder import got a real webkitdirectory fallback (resource-panel.tsx:243-244) — Apple mobile got neither a fallback nor a word.

Proposal

Goal

After this, a reader on iPhone or iPad sees Add folder…, learns in one line why it is inert on their device and what to use instead, and no Tutorial sentence tells them to do something their browser cannot do; no import path disappears between devices without a word.

Verification

grep -in "iPhone\|iPad\|Safari" tutorial/guide/Files*.md
pnpm --filter @gamma-reader/web exec vitest run --project unit --testNamePattern="add-menu"
pnpm check

Refs

Activity

  1. added
    enhancement
    source:scheduled
    on Oct 26, 2026
  2. bencode commented on Oct 26, 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. Audited against main@70eb94e.

    Evidence audit: every citation confirmed to the line.

    • ✅ pick-folder.ts:17-26 — the platform comment verbatim ("iPadOS reports itself as a Mac"), isAppleMobile() at 18-20, folderImportSupported() false on Apple mobile at 24-26.
    • ✅ resource-panel.tsx:79-86 — addFolder becomes undefined exactly as cited; the Firefox webkitdirectory fallback at :242 (cited 243-244, the input itself) — the Apple path has neither fallback nor word, as claimed.
    • ✅ add-menu.tsx:40-46 — the entry renders only inside {onAddFolder && …}, so it vanishes silently.
    • ✅ Tutorial quotes verbatim at Files and projects.md:10,13; the grep path resolves from the repo root and matches zero iPhone/iPad/Safari mentions today — confirmed the guide teaches both sentences with no device caveat.
    • ✅ Mirror precedent confirmed: Say why Save to folder is greyed out — on Safari and iOS the control is disabled, and its only explanation is a hover tooltip touch screens never show #176 (closed) kept the unavailable control visible + explained on the export side; the import side hides it. The asymmetry is real.

    Sensor: lint ✓; verify ✗ — correctly reads "not implemented", and both gates discriminate: the tutorial grep turns on a device mention that doesn't exist today, and no add-menu test exists yet (only the component), so the name pattern fails until the behavior test lands.

    Verdict: valid, keep open. No duplicate among open or closed issues (#176 is the export-side mirror this issue explicitly builds on, not a repeat; #183/#187 touch other surfaces).

    One sharpening suggestion: the grep passes on any iPhone/iPad/Safari mention in the guide — it can't tell a scoped sentence from a stray one. The load-bearing assertions belong in the add-menu test: the entry renders disabled with its reason on an unsupported platform (the silent-disappearance regression #176 fixed on the export side), and the two Tutorial sentences become device-scoped. Pin those two, and the grep is fine as the tutorial half's floor.

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