Skip to content

ui: unify the folder-location picker across add/accept flows#55

Open
grigorii-horos wants to merge 1 commit into
siddarthkay:masterfrom
grigorii-horos:pr/unified-folder-picker
Open

ui: unify the folder-location picker across add/accept flows#55
grigorii-horos wants to merge 1 commit into
siddarthkay:masterfrom
grigorii-horos:pr/unified-folder-picker

Conversation

@grigorii-horos

Copy link
Copy Markdown

What

The three ways to choose where a folder lives — app sandbox, a device folder (All Files Access), and a SAF tree — were each rendered with different controls, so the same decision looked unrelated in Add folder vs Accept folder.

Extract a single FolderLocationPicker that presents all three as uniform radio cards:

  • SAF card is Android-only.
  • The device card prompts for All Files Access when it isn't granted yet.
  • The selected card shows the chosen label, an accent border, and a radio.

Used in both AddFolderModal and AcceptFolderModal; removes the now-dead bespoke picker styles from both screens.

Test

  • tsc --noEmit
  • Independent of any other in-flight branch (touches only the two modals + the new component).

🤖 Generated with Claude Code

The three ways to choose where a folder lives — app sandbox, a device
folder (All Files Access), and a SAF tree — were each rendered with
different controls, so the same decision looked unrelated in each place.

Extract a single FolderLocationPicker that presents all three as uniform
radio cards (SAF Android-only; the device card prompts for All Files
Access when it isn't granted yet) and use it in both AddFolderModal and
AcceptFolderModal. Removes the now-dead bespoke picker styles from both
screens.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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