-
Notifications
You must be signed in to change notification settings - Fork 30
add ability to hide full or locked tables #1706
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
Conversation
|
Code Climate has analyzed commit cef296b and detected 0 issues on this pull request. View more on Code Climate. |
|
Visit the preview URL for this PR (updated for commit cef296b): https://co-reality-staging--preview-pr-1706-e7wrr2bl.web.app (expires Tue, 20 Jul 2021 13:28:59 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
0xdevalias
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have tables in more locations than just the jazz bar. This should be applied to all of them. And utils/shared components extracted to support this feature in all locations without duplicating the code.
Further specific review comments to come when I’m on a computer.
src/components/templates/ConversationSpace/ConversationSpace.tsx
Outdated
Show resolved
Hide resolved
@yurii-lubynets have you fixed that and is the PR ready for the review? |
|
@sunny-viktoryia |
sunny-viktoryia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few more comments from me. The logic seems correct now. The majority of the comments are about the variable names.
Although I have raised concern here about the performance. Not sure if it's a good idea to iterate through the online users several times (looks like we do that for all the tables twice, would be great if we could that only once if possible).
I believe we could create a key-value object which would store the { [table.reference]: usersAtTableArray } and then could use that information where needed:
- if the table is empty
- if the table is full (twice)
so would be great if @yurii-lubynets could do the refactoring of that part (if you have the capacity for that). Not sure if it has a huge performance impact though.
[dreaming] definitely OOS, in an ideal Sparkle ✨ would be cool to be able to run emulators for each venue type to test the performance and see how our changes impact that. mmmmmm.
src/components/templates/ConversationSpace/ConversationSpace.tsx
Outdated
Show resolved
Hide resolved
@sunny-viktoryia |
sunny-viktoryia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suuuuuper clooooooooose!! 🙃
just a couple of variable name changes and should be good to go,
sunny-viktoryia
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmmm, finally, approving!! Looks good to merge. 🙃 🎉
Thanks for your patience and for being open to fix my requested changes. We did it! It looks so much better to my eye than the 1st version! 😍
looks like I've fixed all requested changes
closes: https://github.com/sparkletown/internal-sparkle-issues/issues/851