feat(client): native clipboard via expo-clipboard #218
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#218
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The Account screen reveals a freshly-minted Personal Access Token's plaintext exactly once with a "Copy" affordance. On web (the PWA target) this uses
navigator.clipboard.writeText. On native (Android, Flatpak),navigator.clipboarddoesn't exist, so the screen falls back to "manual copy" — the user holds the plaintext on screen and copies it by hand.expo-clipboardis the proper native answer; the platform shim was deferred while the universal client was being scaffolded.Source
apps/client/app/(app)/account.tsxlines 42-45:PR #205 ("Out of scope"):
Scope
expo-clipboardtoapps/client/.navigator.clipboardcall inaccount.tsxwith a smalllib/clipboard.tsshim:setStringAsyncfromexpo-clipboardon native,navigator.clipboard.writeTexton web.Acceptance criteria
pnpm -F @carol/client testcovers the shim's web + native branches.apps/client/README.mddocuments the new dep (if it requires any native permission, whichexpo-clipboarddoes not in practice).Composes with