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

Rjwebb/conversations list uses summary endpoint #32

Merged
merged 22 commits into from
Dec 19, 2023

Conversation

rjwebb
Copy link
Contributor

@rjwebb rjwebb commented Dec 15, 2023

This PR adds a new endpoint GET /api/v3/conversations_summary which returns a list of the conversations with only the fields returned that we need for the "Manage Conversation" and Dashboard conversation lists. It also includes the UI changes needed for that. This includes a new reducer conversations_summary.

Some more changes:

  • The list of conversations and the filter buttons in the dashboard now live in a separate component ConversationsList
  • After moderating a conversation, the conversation list is updated
  • The single conversation view on the Dashboard uses zid_metadata
  • Redirect to dashboard main page if conversation cannot be found (e.g. broken link)

server/src/server.ts Outdated Show resolved Hide resolved
client/src/actions.tsx Outdated Show resolved Hide resolved
@rjwebb rjwebb requested a review from raykyri December 19, 2023 10:01
@raykyri
Copy link
Member

raykyri commented Dec 19, 2023

Looks good to me

@raykyri raykyri merged commit 92cc1ca into main Dec 19, 2023
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.

None yet

2 participants