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(StatusQ): create a standard StatusMessageDialog component #17587

Merged
merged 2 commits into from
Mar 19, 2025

Conversation

caybro
Copy link
Member

@caybro caybro commented Mar 13, 2025

What does the PR do

  • (almost) a dropin replacement for the QtQuick.1 MessageDialog, preserving the same API
  • based on StatusDialog to get the default look'n'feel
  • works on both Qt5/Qt6 using native Status components
  • some smaller fixes/alignments to the underlying StatusDialog
  • add a dedicated StoryBook page

Fixes #17562

Affected areas

StatusMessageDialog

Architecture compliance

Screenshot of functionality (including design for comparison)

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

image

@status-im-auto
Copy link
Member

status-im-auto commented Mar 13, 2025

Jenkins Builds

Click to see older builds (7)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a357686 #1 2025-03-13 16:53:15 ~8 min tests/nim 📄log
✔️ a357686 #1 2025-03-13 16:53:42 ~9 min macos/aarch64 🍎dmg
✔️ a357686 #1 2025-03-13 16:57:54 ~13 min tests/ui 📄log
✔️ a357686 #1 2025-03-13 17:01:39 ~17 min macos/x86_64 🍎dmg
✔️ a357686 #1 2025-03-13 17:06:32 ~22 min linux/x86_64 📦tgz
✔️ a357686 #1 2025-03-13 17:06:40 ~22 min linux-nix/x86_64 📦tgz
✔️ a357686 #1 2025-03-13 17:08:13 ~23 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5e88968 #2 2025-03-14 10:55:01 ~6 min macos/aarch64 🍎dmg
✔️ 5e88968 #2 2025-03-14 10:57:12 ~9 min tests/nim 📄log
✔️ 5e88968 #2 2025-03-14 11:00:45 ~12 min macos/x86_64 🍎dmg
✔️ 5e88968 #2 2025-03-14 11:01:32 ~13 min tests/ui 📄log
✔️ 5e88968 #2 2025-03-14 11:08:03 ~20 min linux-nix/x86_64 📦tgz
✔️ 5e88968 #2 2025-03-14 11:08:18 ~20 min linux/x86_64 📦tgz
✔️ 5e88968 #2 2025-03-14 11:10:20 ~22 min windows/x86_64 💿exe
✔️ b00d367 #3 2025-03-17 09:29:24 ~7 min macos/aarch64 🍎dmg
✔️ b00d367 #3 2025-03-17 09:30:37 ~8 min tests/nim 📄log
✔️ b00d367 #3 2025-03-17 09:35:03 ~13 min macos/x86_64 🍎dmg
✔️ b00d367 #3 2025-03-17 09:35:25 ~13 min tests/ui 📄log
✔️ b00d367 #3 2025-03-17 09:42:49 ~20 min linux/x86_64 📦tgz
✔️ b00d367 #3 2025-03-17 09:43:00 ~21 min linux-nix/x86_64 📦tgz
✔️ b00d367 #3 2025-03-17 09:44:37 ~22 min windows/x86_64 💿exe

@caybro caybro force-pushed the 17562-qt-5-6-statusmessagedialog branch from a357686 to 5e88968 Compare March 14, 2025 10:47
@caybro caybro marked this pull request as ready for review March 14, 2025 11:00
@caybro caybro requested review from micieslak, alexjba and a team as code owners March 14, 2025 11:00
@caybro caybro requested a review from noeliaSD March 14, 2025 11:01
caybro added 2 commits March 17, 2025 10:20
- (almost) a dropin replacement for the QtQuick.1 `MessageDialog`,
preserving the same API
- based on `StatusDialog` to get the default look'n'feel
- works on both Qt5/Qt6 using native Status components
- some smaller fixes/alignments to the underlying StatusDialog
- add a dedicated StoryBook page

Fixes #17562
- and replace it with `StatusMessageDialog`
@caybro caybro force-pushed the 17562-qt-5-6-statusmessagedialog branch from 5e88968 to b00d367 Compare March 17, 2025 09:21
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.

Looks good, works fine!

Copy link
Contributor

@noeliaSD noeliaSD left a comment

Choose a reason for hiding this comment

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

Nice job!!
Just to add something.. I'd add a bit more padding in the buttons text since they seem to be too tight.. But that's maybe something for the designers. Up to you!
Screenshot 2025-03-19 at 10 36 39

@caybro
Copy link
Member Author

caybro commented Mar 19, 2025

Nice job!! Just to add something.. I'd add a bit more padding in the buttons text since they seem to be too tight.. But that's maybe something for the designers. Up to you! Screenshot 2025-03-19 at 10 36 39

Ah yeah, totally doable but since there's really no design on this 🤷 😄

@caybro
Copy link
Member Author

caybro commented Mar 19, 2025

Nice job!! Just to add something.. I'd add a bit more padding in the buttons text since they seem to be too tight.. But that's maybe something for the designers. Up to you! Screenshot 2025-03-19 at 10 36 39

Ah yeah, totally doable but since there's really no design on this 🤷 😄

Oh... padding, not spacing! Hmmm strange, they don't appear as tight over here so it must be sth macOS specific? I'm using a regular StatusButton here with nothing special

@caybro caybro merged commit 6999459 into master Mar 19, 2025
9 checks passed
@caybro caybro deleted the 17562-qt-5-6-statusmessagedialog branch March 19, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment