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(ProfileShowcase): Add foldable sections in all needed settings tabs #13592

Merged
merged 4 commits into from
Feb 19, 2024

Conversation

noeliaSD
Copy link
Contributor

Closes #13504

What does the PR do

  • Moved foldable header and generic list view component from wallet to shared (so they can be also used in profile section).
  • Created new ProfileShowcaseBasePanel with 2 foldable sections.
  • Modified base class of ProfileShowcaseXXXPanel with the new base component (communities, accounts, assets and collectibles).
  • Added needed storybook support.

NOTES:

  • EmptyShapeRectangleFooterListView contains a new property empty that must be removed when refactor of the hidden / showcase models are done in [Profile Showcase]: simplify API of ProfileShowcase*Panel tabs #13498
  • Behaviour of empty states in app are not working properly in some occasions due to how the models are threated now. Same thing than the previous one, with the models refactor, it will be solved.
  • Loading states are not considered. Specific task for them.

Affected areas

Profile showcase tabs: Accounts, Communities, Collectibles and Assets

Screenshot of functionality

  • Communities tab:
Screen.Recording.2024-02-15.at.18.17.17.mov
  • Accounts tab:
Screen.Recording.2024-02-15.at.19.24.12.mov
  • Collectibles and assets tab:
Screen.Recording.2024-02-16.at.09.42.03.mov

…om wallet to shared

Renamed `ManageTokensListViewBase` to `EmptyShapeRectangleFooterListView` and moved `FoldableHeader` to shared/controls.

Updated related `ManageXXPanel` components.
Removed unnecessary `ColumnLayout` and adjusted sizing of component inside.
@noeliaSD noeliaSD self-assigned this Feb 16, 2024
@noeliaSD noeliaSD marked this pull request as ready for review February 16, 2024 09:24
@status-im-auto
Copy link
Member

status-im-auto commented Feb 16, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 05b98e3 #1 2024-02-16 09:26:03 ~5 min tests/nim 📄log
✔️ 05b98e3 #1 2024-02-16 09:26:57 ~6 min macos/aarch64 🍎dmg
✔️ 05b98e3 #1 2024-02-16 09:30:06 ~9 min macos/x86_64 🍎dmg
✔️ 05b98e3 #1 2024-02-16 09:30:17 ~10 min tests/ui 📄log
✔️ 05b98e3 #1 2024-02-16 09:38:01 ~17 min linux/x86_64 📦tgz
✔️ 05b98e3 #1 2024-02-16 09:56:13 ~36 min windows/x86_64 💿exe
✔️ 88854a2 #2 2024-02-19 09:45:33 ~6 min tests/nim 📄log
✔️ 88854a2 #2 2024-02-19 09:47:10 ~7 min macos/x86_64 🍎dmg
✔️ 88854a2 #2 2024-02-19 09:50:16 ~10 min tests/ui 📄log
✔️ 88854a2 #2 2024-02-19 09:50:55 ~11 min macos/aarch64 🍎dmg
✔️ 88854a2 #2 2024-02-19 09:55:39 ~16 min linux/x86_64 📦tgz
✔️ 88854a2 #2 2024-02-19 10:08:34 ~29 min windows/x86_64 💿exe

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.

Nice work! Just one minor observation

Copy link
Member

@micieslak micieslak left a comment

Choose a reason for hiding this comment

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

LGTM in general, one minor thing found, I'm not sure if related to this PR. "In showcase" section fails to render community pill properly:

Screenshot from 2024-02-16 17-54-02
Screenshot from 2024-02-16 17-53-55

@noeliaSD
Copy link
Contributor Author

LGTM in general, one minor thing found, I'm not sure if related to this PR. "In showcase" section fails to render community pill properly:

Screenshot from 2024-02-16 17-54-02 Screenshot from 2024-02-16 17-53-55

Yeah, not related to this pr. After the model's refactor we can review it again!

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

LGTM

- Modified `ProfileShowcasePanel` with 2 foldable sections.
-  Modified api of `ProfileShowcaseCommunitiesPanel` with the new base component.
- Modified api of `ProfileShowcaseAccountsPanel` with the new base component.
- Modified api of `ProfileShowcaseAssetsPanel`  and `ProfileShowcaseCollectiblesPanel` with the new base component.
- Added needed `storybook` support.

Closes of #13504
@noeliaSD noeliaSD merged commit 01095e0 into master Feb 19, 2024
8 checks passed
@noeliaSD noeliaSD deleted the feat/issue-13504 branch February 19, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Profile Showcase] Add foldable sections in all needed settings tabs
5 participants