Skip to content

Conversation

@yurii-lubynets
Copy link
Contributor

@yurii-lubynets yurii-lubynets requested a review from a team as a code owner July 1, 2021 18:53
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 1, 2021 18:53 Inactive
@github-actions github-actions bot added the 💎 styles For (S)CSS style related issues/changes/improvements/etc. label Jul 1, 2021
@qlty-cloud-legacy
Copy link

qlty-cloud-legacy bot commented Jul 1, 2021

Code Climate has analyzed commit cef296b and detected 0 issues on this pull request.

View more on Code Climate.

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

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 🌎

Copy link
Contributor

@0xdevalias 0xdevalias left a 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.

@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 2, 2021 12:43 Inactive
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 2, 2021 12:45 Inactive
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 2, 2021 12:57 Inactive
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 2, 2021 14:15 Inactive
@yurii-lubynets yurii-lubynets requested a review from 0xdevalias July 2, 2021 14:29
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 2, 2021 14:29 Inactive
@yurii-lubynets yurii-lubynets requested a review from a team July 2, 2021 14:30
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 5, 2021 07:56 Inactive
@sunny-viktoryia
Copy link
Contributor

We have tables in more locations than just the jazz bar. This should be applied to all of them.

@yurii-lubynets have you fixed that and is the PR ready for the review?

@yurii-lubynets
Copy link
Contributor Author

@sunny-viktoryia
The PR is ready for review. The feature is available for Jazzbar, Conversation space templates as per comment here https://github.com/sparkletown/internal-sparkle-issues/issues/851#issuecomment-873308110

@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 6, 2021 11:38 Inactive
@0xdevalias 0xdevalias added the 💪 enhancement Enhancements/improvements to existing functionality label Jul 6, 2021
@0xdevalias 0xdevalias changed the title Feature/hide full or locked tables add ability to hide full or locked tables Jul 6, 2021
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 12, 2021 16:46 Inactive
Copy link
Contributor

@sunny-viktoryia sunny-viktoryia left a 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.

@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 13, 2021 07:32 Inactive
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 13, 2021 07:49 Inactive
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 13, 2021 07:59 Inactive
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 13, 2021 08:48 Inactive
@yurii-lubynets
Copy link
Contributor Author

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.

@sunny-viktoryia
have refactored <TablesUserList/> to store the { [table.reference]: usersAtTableArray } and use this information where needed. Please review

Copy link
Contributor

@sunny-viktoryia sunny-viktoryia left a 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,

@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 13, 2021 13:01 Inactive
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 13, 2021 13:02 Inactive
Copy link
Contributor

@sunny-viktoryia sunny-viktoryia left a 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! 😍

@yurii-lubynets yurii-lubynets dismissed stale reviews from denisdimitrov and 0xdevalias July 13, 2021 13:23

looks like I've fixed all requested changes

@yurii-lubynets yurii-lubynets enabled auto-merge (squash) July 13, 2021 13:24
@yurii-lubynets yurii-lubynets temporarily deployed to feature-preview July 13, 2021 13:25 Inactive
@yurii-lubynets yurii-lubynets merged commit 2b5c8a1 into staging Jul 13, 2021
@yurii-lubynets yurii-lubynets deleted the feature/hide-full-locked-tables branch July 13, 2021 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💪 enhancement Enhancements/improvements to existing functionality 💎 styles For (S)CSS style related issues/changes/improvements/etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants