Add pull-to-refresh to each page #309
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#309
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?
Add a "pull to refresh" gesture to every content page in the universal client (
apps/client) so users can refetch the page's server data by pulling down.Scope
Each page that renders server data via TanStack Query hooks (
@carol/api-client):app/(app)/→ applications, chat, experience, notes, skills, profile, network, projects, account, and the detail screensnetwork/[id],network/orgs/[id].Approach
RefreshControlon each page's scrollable container (ScrollView/FlatList/KeyboardAwareScrollView), wired to the page's query:refreshing= the query'sisRefetching(or a local flag),onRefresh=refetch(). For pages with multiple queries, refetch all and aggregate the refreshing state.useRefreshControl(...queries)returning a<RefreshControl>or its props) so every page is consistent — reuse, don't copy-paste per screen.RefreshControlis effectively inert, which is fine; don't regress web scrolling.theme.tokens.accent) where the control exposes color props.Conventions
Note
Shares files with #308 (back-nav). Sequence after #308 to avoid edit collisions, or rebase whichever merges second.