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

DMs: frontend state management rewrite #2996

Merged
merged 62 commits into from
Nov 20, 2023
Merged

DMs: frontend state management rewrite #2996

merged 62 commits into from
Nov 20, 2023

Conversation

latter-bolden
Copy link
Member

@latter-bolden latter-bolden commented Nov 7, 2023

Fixes LAND-1136
Fixes LAND-1222

Copy link

linear bot commented Nov 7, 2023

LAND-1136 DMs: rewrite FE state mgmt

Front-end state management for DMs/MultiDMs is still janky.

We’re still using our older zustand store method for state management. This was done to avoid some extra work, but it’s causing some issues with rendering updates when messages receive new replies. It’s also not ideal to use an entirely different paradigm for this one part of the app.

We should rewrite the frontend to use react-query for DMs/MultiDMs. This is probably two or three days worth of grinding.

latter-bolden and others added 28 commits November 14, 2023 16:13
…to useChatState, and remove commented out useChatState references
patosullivan and others added 25 commits November 17, 2023 07:23
…ame trackedPosts to trackedWrits in several places, use trackedPokes for dm reply deletes, listen for/updated trackedWrits for delivered status
@latter-bolden latter-bolden marked this pull request as ready for review November 20, 2023 16:59
@latter-bolden latter-bolden requested a review from arthyn November 20, 2023 17:12
Copy link

linear bot commented Nov 20, 2023

LAND-1222 dms: paging is broken

Retrieving writs relies on scries returning older/newer cursors for fetching the next batch of data in either direction. Right now they're broken and always return null. They should correctly return an ID for the next/previous message.

@patosullivan patosullivan merged commit be53bd1 into hm/hackweek Nov 20, 2023
1 check passed
@patosullivan patosullivan deleted the bd/hw-fe-dms branch November 20, 2023 17:25
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.

4 participants