Skip to content

fix(desktop): show skeleton during channel switch#1141

Merged
tlongwell-block merged 1 commit into
mainfrom
perci/channel-switch-skeleton
Jun 19, 2026
Merged

fix(desktop): show skeleton during channel switch#1141
tlongwell-block merged 1 commit into
mainfrom
perci/channel-switch-skeleton

Conversation

@tlongwell-block

Copy link
Copy Markdown
Collaborator

Summary

  • carry the channel id alongside the deferred message snapshot in MessageTimeline
  • treat deferred snapshots from a previous channel as loading so the main pane paints the skeleton during route/channel switches
  • add tests for stale deferred channel snapshots and skeleton selection

Test plan

  • bin/node --import ./desktop/test-loader.mjs --experimental-strip-types --test desktop/src/features/messages/lib/timelineSnapshot.test.mjs desktop/src/features/messages/lib/timelineLoadingState.test.mjs
  • bin/pnpm --dir desktop typecheck
  • pre-commit hooks: cargo fmt --all, cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --all, web/desktop biome + file-size checks, mobile format/analyze
  • pre-push hooks: desktop/mobile/rust/desktop-tauri tests

Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
@tlongwell-block tlongwell-block merged commit d1c3574 into main Jun 19, 2026
25 checks passed
@tlongwell-block tlongwell-block deleted the perci/channel-switch-skeleton branch June 19, 2026 17:04
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