-
Notifications
You must be signed in to change notification settings - Fork 79
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/update launch send modal mechanism #16718
base: master
Are you sure you want to change the base?
Conversation
379561d
to
db6dafa
Compare
Jenkins BuildsClick to see older builds (16)
|
db6dafa
to
9845809
Compare
9845809
to
ab5fe7f
Compare
ab5fe7f
to
5c1e2e7
Compare
… architecture guidelines. After this change there is not need to pass sendModal instance from AppMain to other parts of app. Then SendModal should be launched simply by calling Global.openSendModal(....)
5c1e2e7
to
d389808
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.
Could be done in a much easier way :)
@@ -241,7 +238,7 @@ QtObject { | |||
Global.openFinaliseOwnershipPopup(actionData) | |||
return | |||
case ToastsManager.ActionType.OpenSendModalPopup: | |||
root.sendModalPopup.open() | |||
Global.openSendModal() |
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.
This won't work most likely; the signal needs to be passed all the params
@@ -72,7 +71,13 @@ QtObject { | |||
signal setNthEnabledSectionActive(int nthSection) | |||
signal appSectionBySectionTypeChanged(int sectionType, int subsection, int subSubsection, var data) | |||
|
|||
signal openSendModal(string address) | |||
signal openSendModal(int sendType, string senderAddress, |
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.
... that said, this should/could be a simple function instead, with defaulted parameters, and then you can just re-emit a similar signal with all the parameters, instead of having to fill all the params to this signal here
if (interactive === undefined) interactive = true | ||
if (publicKey === undefined) publicKey = "" | ||
if (ensName === undefined) ensName = "" | ||
if (stickersPackId === undefined) stickersPackId = "" |
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.
... and this will become much easier because you will have all the defaults already in
req.preSelectedRecipientType, //recipientType | ||
false, //onlyAssets | ||
true, //interactive | ||
"", //publicKey |
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.
... and finally you could omit all the empty/default/uninteresting parameters here
What does the PR do
Changes the SendModal launching mechanish.
Update signals in Global for openSendModal to be parameterised, instead of having to pass sendModal instance across the app.
Affected areas
SendModal Invocations points from-
Architecture compliance
My PR is consistent with this document: Status Desktop Architecture Guide
Screenshot of functionality (including design for comparison)
SendVia1-1Chat.mov
TransferOwnership.mov
TransactionsHistorySend.mov
Screen.Recording.2024-11-05.at.9.49.43.PM.mov
profileShowcaseMenu.mov
BuyStickers.mov
MainWalletSavedAddresses.mov
MainWalletViewSend.mov
RegisterEns.mov