Repository navigation
Description
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
- Where folder import is unsupported, keep the affordance visible and disabled with its reason next to it — "Add folder… (this browser can't choose a folder)" — instead of dropping the entry, mirroring how Save to folder behaves after 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.
- Name the working alternatives where the entry sits: add files, or add a web address.
- Fix the Tutorial's claim: scope "other browsers use their folder upload" to the browsers that actually have one, and mark the drop-a-folder sentence as a desktop gesture, so the guide never instructs a reader to use a control their device does not have.
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 checkRefs
- ui-packages/web/src/features/resources/pick-folder.ts:17-26 —
isAppleMobile()and the platform comment;folderImportSupported()false on Apple mobile - ui-packages/web/src/features/resources/resource-panel.tsx:79-86 —
addFolderbecomesundefinedwhen unsupported; 243-244 — the Firefoxwebkitdirectoryfallback the Apple path lacks - ui-packages/web/src/features/resources/add-menu.tsx:40-46 — the entry renders only when the handler exists, so it vanishes silently
- tutorial/guide/Files and projects.md:10,13 — the Tutorial's folder promises with no device caveat
- 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 — the export-side sibling: Save to folder greyed on Safari/iOS was explained, not hidden
- Teach import paths and assistant capabilities at the empty states, not only in the README #39 — teaching import paths where readers start
- Catch a file dropped outside the Files panel — today the browser opens it in the tab, replacing the app mid-read #185 — the drop outside Files panel that desktop readers get instead
Activity
bencode commentedon Oct 26, 2026
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:scheduledproposals. Audited againstmain@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—addFolderbecomesundefinedexactly as cited; the Firefoxwebkitdirectoryfallback 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.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.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-menutest 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-menutest: 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.