Skip to content

feat(open): «Открыть папку» and dropping a folder - #35

Merged
device25 merged 2 commits into
mainfrom
feat/open-folder
Oct 25, 2026
Merged

device25 merged 2 commits into
mainfrom
feat/open-folder

Conversation

@device25

Copy link
Copy Markdown
Owner

Asked by the owner after #34: open a folder with the tree and its photos, instead of building a zip.

  • «Открыть папку». A button next to «Открыть файл», on the start screen, in the header and in the settings sheet. It uses webkitdirectory. It is not shown on phones, which cannot pick a folder.
  • Dropping a folder on the window walks it with webkitGetAsEntry. Each file keeps its path inside the folder as relativePath, which the loader reads like webkitRelativePath. Hidden folders (.git, .claude) and __MACOSX are not walked, so a project folder with thousands of git files drops quickly.
  • Reading. As in perf(load): open large archives without reading them into memory #34, the tree is the .ged nearest the top, outside hidden folders. Photos are shown straight from disk; nothing is read until shown.
  • Wording. The start screen and the drop hint now mention folders.

Tests:

  • unit src/ui/folders.test.ts: walking, paths, hidden folders skipped, plain files unchanged;
  • e2e tests/e2e/open-folder.spec.ts with the fixture tests/fixtures/synthetic/folder-tree, which has a hidden copy of the tree;
  • the drop test's text is updated;
  • macOS snapshots updated; Linux snapshots will come from CI.

npm run check:all passes locally.

🤖 Generated with Claude Code

device25 and others added 2 commits October 25, 2026 02:41
Next to «Открыть файл», «Открыть папку» picks a whole folder with the
tree and its photos (webkitdirectory; not shown on phones, which cannot
pick folders). Dropping a folder on the window walks it, keeping each
file's path; hidden folders (.git, .claude) are not walked. Files are
shown straight from disk, none is read until shown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@device25
device25 merged commit b1beec0 into main Oct 25, 2026
1 check passed
@device25
device25 deleted the feat/open-folder branch October 25, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant