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

Displaying a different user's messages in the admin view #652

Merged
merged 2 commits into from
Jan 13, 2023

Conversation

fozziethebeat
Copy link
Collaborator

Fixes #238

This creates a new admin gated API route that fetches another user's messages. Then, we pull some code from website/src/pages/messages/index.tsx and put it in a new component: UserMessagesCell (later we'll refactor these to reduce duplication).

The UserMessagesCell is used in website/src/pages/admin/manage_users/[id].tsx to show a user's messages along with the management form.

@AbdBarho AbdBarho merged commit 5d1b03b into main Jan 13, 2023
@AbdBarho AbdBarho deleted the 238-admin-view-user-messages branch January 13, 2023 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create an admin web page that shows messages from a given user
2 participants