-
Notifications
You must be signed in to change notification settings - Fork 85
fix(StatusSearchLocationMenu): Refactor using new StatusPopupMenu
#8436
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
Conversation
Jenkins BuildsClick to see older builds (15)
|
1c2b33e
to
364141b
Compare
StatusSearchLocationMenu
. Rename components. StatusSearchLocationMenu
StatusSearchLocationMenu
StatusPopupMenu
09e90b1
to
d9d0764
Compare
d9d0764
to
f931d96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't checked it thoroughly but at first sight it looks ok. I will have another look when you create PR for fix/status-menu
.
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I' d just like one of the members of the UI cohort give a looks since there are a lot of StatusQ changes. cc @caybro
menu.removeMenu(object) | ||
else if (object instanceof Action) | ||
menu.removeAction(object) | ||
else // if (object instanceof MenuItem) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the comment still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, it's not. Thanks for pointing.
I removed it locally, will push is as part of next PR, not to block this one 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jrainville, added here: #8473
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skimmed through the code and judging also by screenshots, this looks good to me.
Just a minor thing to improve but I'll leave that up to you
name: root.text | ||
letterSize: 11 | ||
readonly property StatusIdenticonRingSettings defaultRingSettings: StatusIdenticonRingSettings { | ||
ringPxSize: Math.max(1.5, d.assetSettings.width / 24.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if worth it, but we seem to be doing the same thing here: https://github.com/status-im/status-desktop/pull/8436/files#diff-a295c8811d526e0c83e97c3c9431b689b5cce6e9ff2b0c73bcc39b003a7a18edR31 maybe it makes sense to have a little utils function for that so we ensure this doesn't get out of sync when changes are made?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, thanks! Found it in 5 places 🤦
Added it as part of next PR #8473, not to block this one
import StatusQ.Core.Utils 0.1 as StatusQUtils | ||
|
||
StatusPopupMenu { | ||
id: root | ||
dim: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume we're getting a dim: false
experience by other means now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap, we have it in the StatusPopupMenu
. And always had actually 🙂
Part of #7232
As continuation of #8341
What does the PR do
StatusSearchLocationMenu
ringSettings
StatusMenuItemDelegate
to useStatusSmartIdenticon
StatusSpellcheckingMenuItems
as unusedStatusMenuInstantiator
for creating menu elements from a modelThis is a PR to a temporary branch
fix/status-menu
I'm publishing changes one by one to make the code review process easier
StatusQ checklist
Screenshot of functionality (including design for comparison)