Skip to content

fix(home): restore folder selection on phones and correct filing progress - #395

Merged
Artexis10 merged 3 commits into
mainfrom
fix/home-import-picker-progress
Dec 3, 2026
Merged

Artexis10 merged 3 commits into
mainfrom
fix/home-import-picker-progress

Conversation

@Artexis10

Copy link
Copy Markdown
Contributor

Home offers folder selection on phones and desktops whose browsers support it. The Filed progress bar uses the same filed count as the text beside it.

The phone layout hid the folder picker even when the browser could open it. The progress bar included duplicates and files left out in its filed percentage.

Proof

  • node --import tsx --experimental-test-module-mocks --test src/app/exomem/home/__tests__/home-import.test.tsx passed.
  • The folder encryption and staging Playwright journey passed on desktop and phone. Chrome DevTools confirmed the chooser and filing states in both themes.

Revert this PR to restore the previous picker visibility and meter. The change needs no schema update.

User note

Choose a folder from Home on a supported phone. The Filed progress bar now agrees with the filed count.

Home import OpenSpec tasks

Separate PR: Home acceptance fixes can roll out independently of Cloud storage admission.

…ress

Show the folder picker when the browser supports directory selection. Use the filed count for the Filed meter so it matches the number beside it.

Record the verified Home acceptance checks.
@Artexis10

Copy link
Copy Markdown
Contributor Author

Automated review: REQUEST_CHANGES
Head: 72f1e08
Base: 325c7a6
Patch: ab780dec7d4c3cd5bd0879fa12c6db6f065b6ce4
Reviewer: reviewer, Codex, high
Blocking by round: 1
Net call: do not ship
Risk lens: no
Pass: 562ed668df6e5da3

Keep the filed-count correction. The folder action needs to account for browsers that expose the directory attribute but open a file-only chooser.

Weight: 35 product lines changed, 42 proof lines changed. The browser check exercises the visible folder action through encryption and staging. The component check catches a meter that counts skipped files as filed.

Blocking · src/app/exomem/home/home-import-picker.tsx:94. Open Home in iOS Safari 18.3 and tap “Choose a folder”. Safari exposes webkitdirectory, so Home now shows a button whose picker only accepts individual files. It was hidden on touch before this patch. Keep the file picker available and suppress the folder action on platforms with the known file-only behavior. The Pixel emulation uses desktop Chromium’s chooser and does not cover this case. WebKit’s iOS picker issue and Safari 18.4 release details.

Some mobile browsers expose the directory input before their picker can return folders. Check the known browser fixes before showing the control.
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Quality report

36a209e5 against base 325c7a6. Only the gate fails this check; the rest informs review. Why each check exists: PRACTICES.md.

Gate: passed

Nothing found by knip.

Proof weight

Product +68 lines against proof +64 lines (tests, specs).

Measures on added lines

Check Result
New duplicate code, exact token clones (jscpd) 1 on added lines

New duplicate code, exact token clones (jscpd)

e2e/exomem-home/import.spec.ts:139: Duplicates exomem-home/import.spec.ts:55

Test runtime

This run against the median of the last 5 successful main runs of this workflow on the same runner, from the GitHub Actions API.

Job This run Median on main Change
test 4m 01s 5m 06s (5 runs) -21%
onboarding end-to-end 12m 34s 11m 42s (5 runs) +7%

Every table: this run's summary.

@Artexis10

Copy link
Copy Markdown
Contributor Author

Automated review: REQUEST_CHANGES
Head: 4b4910d
Base: 325c7a6
Patch: 1e2603dd92ebccdd425ee26684ad65ac2d38e7e7
Reviewer: reviewer, Codex, high
Blocking by round: 1, 1
Net call: do not ship
Risk lens: no
Pass: 562ed668df6e5da3

The correction hides the broken picker on older iOS Safari. Chrome in desktop mode on a current iPad still needs a way to expose its working picker.

Weight: 86 product lines changed and 86 proof lines changed. The proof covers distinct browser boundaries, the visible picker workflow and the filed count.

Blocking · src/lib/exomem-hosted/cloud-import-envelope.ts:75. Open Home in Chrome on an iPad with iPadOS 18.4 or newer and “Request Desktop Site” enabled. Chrome sends a Macintosh user agent with a fixed Version/11.1.1. Home treats it as an old iPadOS version and hides “Choose a folder” despite the picker being available. Use a release signal that still works when Chrome masks the OS version. Chromium desktop user-agent source and WebKit’s picker release.

@Artexis10

Copy link
Copy Markdown
Contributor Author

Automated review: APPROVE
Head: 771353b
Base: 325c7a6
Patch: 87cc07f37bf04584d32c5813883e7b6912615fb8
Reviewer: reviewer, Codex, high
Blocking by round: 1, 1, 0
Net call: do not ship
Risk lens: no
Pass: ef8c6ada4a7fbe31

Ship. The picker uses an engine feature when the iPad user agent masks the OS version. Home hides the folder input when the action is unavailable, keeps file and zip selection available, and uses the cell’s filed count for the meter.

Weight: 93 product lines changed and 78 proof lines changed. The proof covers browser capability boundaries, folder selection through staging, and a filing result with skipped files.

@Artexis10
Artexis10 added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit f43d976 Dec 3, 2026
4 checks passed
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