Skip to content

fix(activity-feed): paint cached history before waiting on network call - #241

Merged
wrjones104 merged 1 commit into
mainfrom
fix/history-activity-feed-warm-load
Aug 4, 2026
Merged

fix(activity-feed): paint cached history before waiting on network call#241
wrjones104 merged 1 commit into
mainfrom
fix/history-activity-feed-warm-load

Conversation

@wrjones104

Copy link
Copy Markdown
Owner

Summary

  • Navigating to the Activity feed blocked on getUserTrackedSlots() before reading already-synced local history, adding a 1-2s stall to every transition even though the data was on-device.
  • HistoryViewModel.refreshAllHistory() now paints from the local DB immediately when tracked-slot metadata from a prior load is already in memory, then reconciles silently once the network call returns. First-ever load in a session is unaffected since there's no warm metadata yet to paint from.
  • Folded this fix into the still-unpublished v1.6.23 changelog entry (backend/app/data/changelog.json) alongside the item-group filtering/ignore-menu changes, and regenerated android/CHANGELOG.md / backend/CHANGELOG.md.

Test plan

  • Manually verify: open Activity feed from Rooms, SlotDetail, and the bottom nav tab after a warm session — history should paint instantly with no spinner stall.
  • Manually verify: first load in a fresh session (no warm metadata) still works and shows a brief loading state as before.
  • python scripts/generate_changelog.py --check passes.

🤖 Generated with Claude Code

Adds the cached-history warm-start fix to the still-unpublished 1.6.23
entry alongside the item-group filtering and ignore-menu changes, and
regenerates the derived CHANGELOG.md files.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@wrjones104
wrjones104 merged commit b20315d into main Aug 4, 2026
1 check passed
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