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

[Community Join] backport community join flow fixes to 2.28.1 #14268

Merged

Conversation

caybro
Copy link
Member

@caybro caybro commented Apr 3, 2024

What does the PR do

(see the individual commits for explanation)

Fixes #14266

Affected areas

Join community flows

Screenshot of functionality (including design for comparison)

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

@caybro caybro self-assigned this Apr 3, 2024
@caybro caybro added this to the 2.28.1 Beta milestone Apr 3, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Apr 3, 2024

Jenkins Builds

Click to see older builds (17)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a3dfc57 #1 2024-04-03 12:19:45 ~6 min tests/nim 📄log
✔️ a3dfc57 #1 2024-04-03 12:22:28 ~9 min macos/aarch64 🍎dmg
✔️ a3dfc57 #1 2024-04-03 12:24:59 ~11 min macos/x86_64 🍎dmg
✔️ a3dfc57 #1 2024-04-03 12:25:26 ~12 min tests/ui 📄log
✔️ a3dfc57 #1 2024-04-03 12:30:07 ~16 min linux/x86_64 📦tgz
✔️ a3dfc57 #1 2024-04-03 12:37:46 ~24 min windows/x86_64 💿exe
✔️ 7919da7 #2 2024-04-04 15:13:07 ~5 min macos/aarch64 🍎dmg
✔️ 7919da7 #2 2024-04-04 15:14:34 ~7 min tests/nim 📄log
✔️ 7919da7 #2 2024-04-04 15:18:59 ~11 min tests/ui 📄log
✔️ 7919da7 #2 2024-04-04 15:21:50 ~14 min macos/x86_64 🍎dmg
✔️ 7919da7 #2 2024-04-04 15:25:04 ~17 min linux/x86_64 📦tgz
✔️ c63ed76 #3 2024-04-04 15:37:54 ~5 min macos/aarch64 🍎dmg
✔️ c63ed76 #3 2024-04-04 15:39:56 ~7 min macos/x86_64 🍎dmg
✔️ c63ed76 #3 2024-04-04 15:40:49 ~8 min tests/nim 📄log
✔️ c63ed76 #3 2024-04-04 15:45:58 ~13 min tests/ui 📄log
✔️ c63ed76 #3 2024-04-04 15:48:31 ~15 min linux/x86_64 📦tgz
✔️ c63ed76 #3 2024-04-04 16:03:17 ~30 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 2effbc5 #4 2024-04-08 09:51:37 ~4 min macos/aarch64 🍎dmg
✔️ 2effbc5 #4 2024-04-08 09:53:58 ~6 min tests/nim 📄log
✔️ 2effbc5 #4 2024-04-08 09:54:55 ~7 min macos/x86_64 🍎dmg
✔️ 2effbc5 #4 2024-04-08 09:59:19 ~12 min tests/ui 📄log
✔️ 2effbc5 #4 2024-04-08 10:03:15 ~16 min linux/x86_64 📦tgz
✔️ 2effbc5 #4 2024-04-08 10:10:34 ~23 min windows/x86_64 💿exe
✔️ 908b82f #5 2024-04-10 14:35:29 ~6 min tests/nim 📄log
✔️ 908b82f #5 2024-04-10 14:37:21 ~8 min macos/x86_64 🍎dmg
✔️ 908b82f #5 2024-04-10 14:40:43 ~11 min tests/ui 📄log
✔️ 908b82f #5 2024-04-10 14:46:18 ~17 min linux/x86_64 📦tgz
✔️ 908b82f #5 2024-04-10 14:50:35 ~21 min macos/aarch64 🍎dmg
✔️ 908b82f #5 2024-04-10 14:52:54 ~23 min windows/x86_64 💿exe

@caybro caybro linked an issue Apr 3, 2024 that may be closed by this pull request
21 tasks
caybro and others added 20 commits April 4, 2024 10:00
- manually setup the TAB focus chain; in the future, this should be done
properly on all new components using FocusScopes and similar

Fixes #13891
…ng icon

- Change text and remove existing icon.
- Removed unnecessary property `loginType` on different files.
- Renamed signals to be more accurate with existing requirements.

Closes #14098
- update shared addresses dialog to avoid small jumps when
selecting/unselecting accounts due to requirements check text displayed
- display the pending text and spinner next to the Permissions header

Fixes #14103
…T MET (#14164)

* fix(JoinCommunity): Add missing state ONLY private permissions and NOT MET

- Modified `becomeMemberModel` in store to provide all member permissions.
- Modified permissions model filter to only discard  permissions that are private and NOT met.
- Updated `storybook/PermissionsModel` with new only private permissions and added new model option in corresponding pages.

Closes #14104

* fix(JoinCommunity): Text position when all channels hidden

Updated text position when `allChannelsAreHiddenBecauseNotPermitted` in community join process
- Removed function in merge while it's still needed.
- Modified logic when channels hidden to take into account also `viewOnly` permission cases.
seems like this check had gone missing
…lling request

- Added dialog instead of calling directly to the cancel method.
- Updated `Cancel` button format according to figma in `CommunityMembershipSetupDialog`.

Closes #14097
- 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
- speed up the construction of the permissions overview panels
- implement sorting of the wallet accounts by the number of tokens (aka tags) and
then by alphabet
- due to the delegate complexity here and usage of nested models, keep
track of the tags count separately and outside of the model
- this will be improved later on as part of the complete sort/order
design described in #14192

Fixes #14101
@jrainville jrainville force-pushed the backport-join-community-flow-fixes-to-release-2.28.x branch from a3dfc57 to 7919da7 Compare April 4, 2024 15:07
igor-sirotin and others added 3 commits April 4, 2024 17:31
we already build it anyway in the Popups.qml when opening the community
intro dialog in all the flows
- don't use the expensive `ExpressionFoo` in SFPM, just use
`AnyOf/AllOf` combinations where possible
- in HoldingsSelectionModel, don't call the `getTokenByKey` twice to
construct the `text`, once is enough
- lastly, rewrite the JS helper `PermissionsHelpers.getTokenByKey` to
C++; this method gets called recursively way too often from many places

In the longterm, we should provide a specific C++ transformation model
for SharedAddressesPermissionsPanel to follow the UI requirements more
closely; that way we'd be able to fix the issues here for good

Fixes #14276
micieslak and others added 5 commits April 8, 2024 11:46
…es to be joined

The new property is added to allow indicating which roles from the right
model should be used. It prevents from unnecessary renamings.

Closes: #14298
Earier attempts to initialize proxy may fail bc left/right models
may be not ready when they are set. It may lead to a situation where
the model remains uninitialized and reporint 0 row count.
- removed multiple filtering separately for each category
- no instantiation of all delegates up front (regular ListView approach
  used)
- fixed category selection when filtering - selecting/deselecting only
  items fulfilling search criteria
- significant simplification of the code

Closes: #14275
…t is pending

- disallow changing the Shared addresses while our request to join
community is still pending

Fixes #14292
@caybro caybro removed this from the 2.28.1 Beta milestone Apr 11, 2024
@caybro caybro marked this pull request as ready for review April 11, 2024 14:21
@caybro
Copy link
Member Author

caybro commented Apr 11, 2024

@jrainville @iurimatias ready to merge!

@jrainville jrainville merged commit 8070430 into release/2.28.x Apr 11, 2024
8 checks passed
@jrainville jrainville deleted the backport-join-community-flow-fixes-to-release-2.28.x branch April 11, 2024 14:39
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.

[Community Join] backport community join flow fixes to 2.28.1
10 participants