feat: shoots and frames, offline (sub-project 4) #3
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/shoots-frames"
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?
Sub-project 4 of the native roadmap: shoots and frames, offline, on the theme's UI kit.
What changes
ShootQueries(read model straight from SQLite) andShootActions(writes through the repositories, so everything is queued for push);FrameRepositorygainsnextNumber,duplicate(with location) andclearShoot, matching the API's rules;LocalChangesre-runs screen queries after local writes and pulls.app-select,app-stop-strip,app-switch-row,app-search-field,app-toggle-chip,app-stat; multilineapp-text-field;app-screennow uses the screen-aware safe area so long pages scroll clear of the tab bar.Fix: frame locations were never synced
The API's
SyncFrameLocationDtohas nocreatedAt(unlike every other sync DTO), so each pushed location was refused and parked insync_error. The app now leaves it out. Worth aligning the DTO in rollnote-api#68 for consistency.Verified
pnpm test(185),typecheck,lint,format:check.Version 0.4.0.
The API's SyncFrameLocationDto, unlike the other sync DTOs, has no createdAt, so every pushed location was refused ("property createdAt should not exist") and parked in sync_error. Leave it out of the pushed data; capturedAt already records when the fix was taken.