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

Show project chats to admin #120

Merged
merged 10 commits into from
Oct 12, 2023
Merged

Conversation

Pranshu1902
Copy link
Contributor

@Pranshu1902 Pranshu1902 commented Sep 23, 2023

Fixes #266

Waiting for backend #334

Show the project chats to the admin in descending order of creation
image

Show chats list along with username
image

Show the user and the chats
image

Clicking the user redirects to the user's admin page
image

@vercel
Copy link

vercel bot commented Sep 23, 2023

@Pranshu1902 is attempting to deploy a commit to the Open Healthcare Network Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Sep 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ayushma-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2023 9:01am

@shivankacker
Copy link
Member

@Pranshu1902 will be great if we are able to view the user who created the chat

@Pranshu1902
Copy link
Contributor Author

@Pranshu1902 will be great if we are able to view the user who created the chat

@skks1212 done

@shivankacker
Copy link
Member

@Pranshu1902 merge conflicts!

@Pranshu1902
Copy link
Contributor Author

@skks1212 resolved!

@shivankacker
Copy link
Member

@Pranshu1902 we need to implement infinite scroll to this, as well as filters.

Use the same UI as below (users page) with a search bar to search for the chat title.
image

Will be best if you could create a reusable table component that can be used everywhere else.

@Pranshu1902
Copy link
Contributor Author

Pranshu1902 commented Oct 5, 2023

@skks1212 done, added a common table component along with infinite scroll
image

@shivankacker
Copy link
Member

@Pranshu1902 getting this error at admin/projects/10373984-0d2f-4958-badb-fee3a973863e/chats (connected to prod backend)

image

@Pranshu1902
Copy link
Contributor Author

@skks1212 it seems to be working for me. The error might be because of this line, could you review it once

@Pranshu1902
Copy link
Contributor Author

@skks1212 check now

@shivankacker
Copy link
Member

@Pranshu1902 is this link broken?
image

@Pranshu1902
Copy link
Contributor Author

@skks1212 fixed the link

@shivankacker
Copy link
Member

@Pranshu1902 opening details shows no chats found until it loads them. Can we use the loading state here from react query?

Copy link
Member

@shivankacker shivankacker left a comment

Choose a reason for hiding this comment

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

LGTM

@shivankacker shivankacker merged commit 415a1b3 into ohcnetwork:master Oct 12, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow admins to list and view chats made by a user
2 participants