Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Add missing eligible to join tag in CommunityMembershipSetupDialog #14187

Conversation

caybro
Copy link
Member

@caybro caybro commented Mar 27, 2024

What does the PR do

  • implement the eligibility check in C++, returning the highest possible role the user would be allowed to join under
  • enable/disable the "Share" button based on the above permissions check
  • remove all the locally placed components, access teh popup only via Global/Popups
  • calculate the accessType internally based on the permissions present
  • update the eligibility as the async check for permissions is finished
  • fix the permissions panel background color
  • partially revert the share/finish/cancel buttons behavior; it must be one button due to StatusStackModal limitations
  • fix some other minor UI issues or differences to current Figma designs
  • adjust SB, add the possibility to play around with different permission models

Fixes #14100
Fixes #14171
Fixes #14088

Affected areas

CommunityMembershipSetupDialog, SharedAddressesPanel, SharedAddressesPermissionsPanel

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

image

image

@caybro caybro linked an issue Mar 27, 2024 that may be closed by this pull request
@caybro caybro marked this pull request as ready for review March 27, 2024 12:59
@caybro caybro requested a review from micieslak March 27, 2024 13:00
@status-im-auto
Copy link
Member

status-im-auto commented Mar 27, 2024

Jenkins Builds

Click to see older builds (30)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 573f11c #1 2024-03-27 13:04:21 ~7 min tests/nim 📄log
✔️ 573f11c #1 2024-03-27 13:06:37 ~9 min macos/aarch64 🍎dmg
✔️ 573f11c #1 2024-03-27 13:07:40 ~10 min macos/x86_64 🍎dmg
✔️ 573f11c #1 2024-03-27 13:10:28 ~13 min tests/ui 📄log
✔️ 573f11c #1 2024-03-27 13:16:47 ~19 min linux/x86_64 📦tgz
✔️ 573f11c #1 2024-03-27 13:33:16 ~36 min windows/x86_64 💿exe
✔️ 9a9b444 #2 2024-03-27 15:41:34 ~5 min macos/aarch64 🍎dmg
✔️ 9a9b444 #2 2024-03-27 15:44:04 ~8 min tests/nim 📄log
✔️ 9a9b444 #2 2024-03-27 15:48:10 ~12 min tests/ui 📄log
✔️ 9a9b444 #2 2024-03-27 15:50:20 ~14 min macos/x86_64 🍎dmg
✔️ 9a9b444 #2 2024-03-27 15:53:06 ~17 min linux/x86_64 📦tgz
✔️ 9a9b444 #2 2024-03-27 16:10:50 ~34 min windows/x86_64 💿exe
✔️ a2329a4 #3 2024-03-27 16:19:47 ~5 min macos/aarch64 🍎dmg
✔️ a2329a4 #3 2024-03-27 16:20:09 ~6 min tests/nim 📄log
✔️ a2329a4 #3 2024-03-27 16:24:00 ~10 min macos/x86_64 🍎dmg
✔️ a2329a4 #3 2024-03-27 16:24:51 ~11 min tests/ui 📄log
✔️ a2329a4 #3 2024-03-27 16:29:22 ~15 min linux/x86_64 📦tgz
✔️ a2329a4 #3 2024-03-27 16:45:55 ~32 min windows/x86_64 💿exe
✔️ c04fdd6 #4 2024-03-28 13:30:18 ~5 min macos/aarch64 🍎dmg
✔️ c04fdd6 #4 2024-03-28 13:31:26 ~6 min tests/nim 📄log
✔️ c04fdd6 #4 2024-03-28 13:33:09 ~8 min macos/x86_64 🍎dmg
✔️ c04fdd6 #4 2024-03-28 13:35:40 ~10 min tests/ui 📄log
✔️ c04fdd6 #4 2024-03-28 13:39:24 ~14 min linux/x86_64 📦tgz
✔️ c04fdd6 #4 2024-03-28 14:00:53 ~36 min windows/x86_64 💿exe
✔️ b0cb1c0 #5 2024-03-28 15:52:19 ~5 min macos/aarch64 🍎dmg
✔️ b0cb1c0 #5 2024-03-28 15:54:17 ~7 min tests/nim 📄log
✔️ b0cb1c0 #5 2024-03-28 15:55:31 ~8 min macos/x86_64 🍎dmg
✔️ b0cb1c0 #5 2024-03-28 15:58:44 ~11 min tests/ui 📄log
✔️ b0cb1c0 #5 2024-03-28 16:02:13 ~15 min linux/x86_64 📦tgz
✔️ b0cb1c0 #5 2024-03-28 16:19:02 ~31 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ c5b3a23 #6 2024-03-29 00:57:10 ~4 min macos/aarch64 🍎dmg
✔️ c5b3a23 #6 2024-03-29 00:58:18 ~6 min tests/nim 📄log
✔️ c5b3a23 #6 2024-03-29 01:00:32 ~8 min macos/x86_64 🍎dmg
✔️ c5b3a23 #6 2024-03-29 01:03:15 ~10 min tests/ui 📄log
✔️ c5b3a23 #6 2024-03-29 01:06:56 ~14 min linux/x86_64 📦tgz
✔️ c5b3a23 #6 2024-03-29 01:23:52 ~31 min windows/x86_64 💿exe
✔️ 1568caf #7 2024-03-29 01:34:20 ~4 min macos/aarch64 🍎dmg
✔️ 1568caf #7 2024-03-29 01:36:28 ~6 min tests/nim 📄log
✔️ 1568caf #7 2024-03-29 01:37:11 ~7 min macos/x86_64 🍎dmg
1568caf #7 2024-03-29 01:41:03 ~11 min tests/ui 📄log
✔️ 1568caf #7 2024-03-29 01:46:17 ~16 min linux/x86_64 📦tgz
✔️ 1568caf #7 2024-03-29 02:00:06 ~30 min windows/x86_64 💿exe
✔️ 1568caf #8 2024-03-29 02:26:19 ~10 min tests/ui 📄log

Copy link
Member

@jrainville jrainville left a comment

Choose a reason for hiding this comment

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

LGTM

@caybro caybro force-pushed the 14100-add-missing-eligible-to-join-tag-in-request-to-join-community-dialog branch 2 times, most recently from 9a9b444 to a2329a4 Compare March 27, 2024 16:13
@caybro caybro requested review from jrainville and mprakhov March 27, 2024 21:52
@caybro caybro force-pushed the 14100-add-missing-eligible-to-join-tag-in-request-to-join-community-dialog branch from a2329a4 to c04fdd6 Compare March 28, 2024 13:24
seems like this check had gone missing
@caybro caybro force-pushed the 14100-add-missing-eligible-to-join-tag-in-request-to-join-community-dialog branch 2 times, most recently from b0cb1c0 to c5b3a23 Compare March 29, 2024 00:52
- implement the eligibility check in C++, returning the highest possible
role the user would be allowed to join under
- enable/disable the "Share" button based on the above permissions check
- remove all the locally placed components, access teh popup only via
Global/Popups
- calculate the `accessType` internally based on the permissions present
- update the eligibility as the async check for permissions is finished
- fix the permissions panel background color
- partially revert the share/finish/cancel buttons behavior; it must be
one button due to StatusStackModal limitations
- fix some other minor UI issues or differences to current Figma designs
- adjust SB, add the possibility to play around with different
permission models

Fixes #14100
@caybro caybro force-pushed the 14100-add-missing-eligible-to-join-tag-in-request-to-join-community-dialog branch from c5b3a23 to 1568caf Compare March 29, 2024 01:29
Copy link
Contributor

@alexjba alexjba left a comment

Choose a reason for hiding this comment

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

LGTM!

@caybro caybro merged commit b191caa into master Mar 29, 2024
8 checks passed
@caybro caybro deleted the 14100-add-missing-eligible-to-join-tag-in-request-to-join-community-dialog branch March 29, 2024 15:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
5 participants