Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix convo header loading state #7603

Merged
merged 3 commits into from
Feb 3, 2025
Merged

Fix convo header loading state #7603

merged 3 commits into from
Feb 3, 2025

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Jan 27, 2025

Allows for seeding the Convo with placeholder data, which we can fetch from the RQ cache, so that we can skip the header skeleton state. The actual setup process of Convo is unchanged.

Before

Simulator.Screen.Recording.-.iPhone.16.-.2025-01-27.at.06.45.05.mp4

After

Simulator.Screen.Recording.-.iPhone.16.-.2025-01-27.at.06.44.49.mp4

Test plan

Test entering the convo in different ways, ensure the skeleton is skipped at least when entering from the chat list screen.
Check that the Convo system itself is broadly unchanged, other than allowing the convo and recipients to be defined early

Copy link

github-actions bot commented Jan 27, 2025

Old size New size Diff
7 MB 7 MB 2.49 KB (0.03%)

Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one question on the query fn

export function useConvoQuery(convo: ChatBskyConvoDefs.ConvoView) {
export function useConvoQuery(
convoId: string,
convo?: ChatBskyConvoDefs.ConvoView,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this need to become optional? initialConvo at the callsite should be defined, right, so this fn sig wouldn't necessarily need to change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah I can undo that. Motivation was to use it somewhere else, but since that's not needed I'll undo it

Copy link
Member

@estrattonbailey estrattonbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, we lost profile shadow-based updates when blocking the user from the convo header 🤔

@arcalinea arcalinea temporarily deployed to samuel/precache-convo - social-app PR #7603 February 3, 2025 20:11 — with Render Destroyed
@mozzius mozzius merged commit 32b28d6 into main Feb 3, 2025
7 checks passed
@mozzius mozzius deleted the samuel/precache-convo branch February 3, 2025 22:37
estrattonbailey added a commit that referenced this pull request Feb 5, 2025
* origin/main: (100 commits)
  Adding webp to regex list. Added function return type for consistency with the rest of the functions (#7649)
  bump version (#7650)
  use did for userID (#7647)
  Upgrade RN to 0.76.6 (#7557)
  Update expo-blur (#7596)
  Fix slow Hosting Provider dialog (#7594)
  make convo menu lazy (#7604)
  Fix convo header loading state (#7603)
  Spring cleaning (#7640)
  Date input improvements (#7639)
  Add example account store (#7641)
  rm refs in render (#7589)
  change search cancel behaviour (#7624)
  reduce padding on video overlay (#7617)
  Typo fix (#7637)
  no follow self (#7606)
  env var tweaks (#7457)
  Test fix
  Add Danish localization (#7220)
  Add Swedish localization (#7232)
  ...
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