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

feat: add button to a user's thread in table view #328

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

tylerslaton
Copy link
Contributor

Screen.Recording.2024-10-25.at.10.48.50.AM.mov

const users = getUsers.data || [];

// Fetch threads for all users
Copy link
Contributor

Choose a reason for hiding this comment

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

If there is a /users api that can fetch all users, it might make more sense to call 1 api for the users and 1 api for all threads. Is that possible?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah, that's true. I updated it to make a map of threadIds and then use those in the rows. What do you think?

Copy link
Contributor

@ryanhopperlowe ryanhopperlowe left a comment

Choose a reason for hiding this comment

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

perfect!

@tylerslaton tylerslaton merged commit f688808 into obot-platform:main Oct 25, 2024
1 check passed
@tylerslaton tylerslaton deleted the user-thread-mapping branch October 25, 2024 15:45
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.

2 participants