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): Implement custom showcase position when searcher text is filtering items #14486

Conversation

alexjba
Copy link
Contributor

@alexjba alexjba commented Apr 19, 2024

What does the PR do

closes #13682
closes #14040

Changes:

  1. Move the searcher SFPM in the ProfileShowcasePanel along with the MovableModel
  2. Compute the indexes involved in the position change for all proxy layers
  3. Fully implement changePosition in VisibilityAndPositionDirtyStateModel.qml
  4. Fix storybook pages

Affected areas

Profile showcase

Screenshot of functionality (including design for comparison)

Screen.Recording.2024-04-19.at.12.47.53.mov

@status-im-auto
Copy link
Member

status-im-auto commented Apr 19, 2024

Jenkins Builds

Click to see older builds (12)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 8e3625a #1 2024-04-19 10:03:15 ~6 min macos/aarch64 🍎dmg
✔️ 8e3625a #1 2024-04-19 10:03:29 ~6 min tests/nim 📄log
✔️ 8e3625a #1 2024-04-19 10:08:37 ~11 min macos/x86_64 🍎dmg
✔️ 8e3625a #1 2024-04-19 10:08:40 ~11 min tests/ui 📄log
✔️ 8e3625a #1 2024-04-19 10:15:21 ~18 min linux/x86_64 📦tgz
✔️ 8e3625a #1 2024-04-19 10:20:57 ~24 min windows/x86_64 💿exe
✔️ be9d6e9 #2 2024-05-13 08:33:52 ~6 min tests/nim 📄log
✔️ be9d6e9 #2 2024-05-13 08:34:22 ~7 min macos/aarch64 🍎dmg
✔️ be9d6e9 #2 2024-05-13 08:35:58 ~8 min macos/x86_64 🍎dmg
✔️ be9d6e9 #2 2024-05-13 08:38:58 ~11 min tests/ui 📄log
✔️ be9d6e9 #2 2024-05-13 08:43:52 ~16 min linux/x86_64 📦tgz
✔️ be9d6e9 #2 2024-05-13 08:51:53 ~24 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 800fa13 #3 2024-05-16 08:06:34 ~4 min macos/aarch64 🍎dmg
✔️ 800fa13 #3 2024-05-16 08:08:57 ~6 min tests/nim 📄log
✔️ 800fa13 #3 2024-05-16 08:09:51 ~7 min macos/x86_64 🍎dmg
800fa13 #3 2024-05-16 08:12:50 ~10 min tests/ui 📄log
✔️ 800fa13 #3 2024-05-16 08:17:15 ~15 min linux/x86_64 📦tgz
✔️ 800fa13 #3 2024-05-16 08:25:01 ~22 min windows/x86_64 💿exe
✔️ 8185f1d #4 2024-05-16 10:31:13 ~5 min macos/aarch64 🍎dmg
✔️ 8185f1d #4 2024-05-16 10:32:25 ~6 min tests/nim 📄log
✔️ 8185f1d #4 2024-05-16 10:32:58 ~7 min macos/x86_64 🍎dmg
✔️ 8185f1d #4 2024-05-16 10:38:29 ~12 min tests/ui 📄log
✔️ 8185f1d #4 2024-05-16 10:41:06 ~15 min linux/x86_64 📦tgz
✔️ 8185f1d #4 2024-05-16 10:48:06 ~22 min windows/x86_64 💿exe

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

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.

I really like the approach, it organizes things nicely. Only some small questions here.

And as a future ideas:

  • bulk set(...) method for WritableModel - it would prevent from many dataChange signals and other reevaluations later in the flow
  • custom proxy just for DnD, simpler than MovableModel, converting dataChanged from source into rowsMoved signals

@alexjba alexjba force-pushed the 13682-profile-showcase-custom-positioning-when-reordering-a-filtered-in-showcase-list branch from 8e3625a to be9d6e9 Compare May 13, 2024 08:26
@status-im-auto
Copy link
Member

✔️ status-desktop/prs/linux/x86_64/tests-nim/PR-14486#2 🔹 ~6 min 40 sec 🔹 be9d6e9 🔹 📦 tests/nim package

@alexjba
Copy link
Contributor Author

alexjba commented May 13, 2024

@micieslak Good point!

I've updated this PR and created two additional tasks:
#14727
#14728

Feel free to update them.

@alexjba alexjba requested a review from micieslak May 13, 2024 08:48
@alexjba alexjba force-pushed the 13682-profile-showcase-custom-positioning-when-reordering-a-filtered-in-showcase-list branch from be9d6e9 to 800fa13 Compare May 16, 2024 08:01
@alexjba alexjba force-pushed the 13682-profile-showcase-custom-positioning-when-reordering-a-filtered-in-showcase-list branch from 800fa13 to 8185f1d Compare May 16, 2024 10:25
@alexjba alexjba merged commit f3dc7b9 into master May 16, 2024
8 checks passed
@alexjba alexjba deleted the 13682-profile-showcase-custom-positioning-when-reordering-a-filtered-in-showcase-list branch May 16, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants