Skip to content

State layer hardening#21

Merged
SBalaguer merged 4 commits into
mainfrom
tb/state-management-hardening
Jun 16, 2026
Merged

State layer hardening#21
SBalaguer merged 4 commits into
mainfrom
tb/state-management-hardening

Conversation

@tiagobndr

Copy link
Copy Markdown
Collaborator

The app's state could jump backwards for a moment: a check in flipping back to "not checked in", a registration reverting, a session you just made flickering in the list. It was a timing thing, a stale read landing after a fresher update and overwriting it.

This PR makes confirmed state only ever move forward, so a late or out of order read can't undo something newer. Your own transactions (register, check in, create or cancel a session) now show up in the UI right away through a pending layer that rolls back if they fail and clears once the chain confirms, without ever touching confirmed state. State is also saved on every change and repainted on a cold start, so a slow connection no longer leaves you on a blank screen, and things like bookmarks and hidden sessions move to storage that survives a mobile WebView eviction.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Preview Deployment Ready!

App Domain
Admin pr21-manager
Festival pr21-attendee
Deployment Details
App CID
Admin bafybeibhfwwfmair7lx3tygtupjsovztqrkwo7ucb552mpwpmxmvmoy55e
Festival bafybeibslppszg3ccimq2eukjhxhxcoajaxkd5l2psmf6jxlenoxw4gyjy
Info Value
Commit 4478eadb13804bb317c828d97a25a5be9183a9b5
Branch tb/state-management-hardening

Updates automatically on each push. View workflow run

@SBalaguer SBalaguer merged commit ced10e3 into main Jun 16, 2026
19 of 21 checks passed
@tiagobndr tiagobndr self-assigned this Jun 16, 2026
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.

3 participants