-
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
fix(SendModal): Bridge modal Simple mode's scroll is very clunky #15969
fix(SendModal): Bridge modal Simple mode's scroll is very clunky #15969
Conversation
Jenkins BuildsClick to see older builds (7)
|
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.
NetworksSimpleRoutingView
is green, and the ListView inside is green:
And the scrolling here is totally external. The list is intended to be unrolled, with own vertical scrolling not used. So it seems that it can be simplified more, and instead of non-interactive list view it can be just repeater.
Quick check shows that then it works as before:
Maybe only spacing needs to be adjusted.
And horizontal scrolling should be never needed here. If texts are wider, should be just elided.
Please take a look, maybe I'm missing sth but it seems it can be simplified.
It would be nice to have storybook NetworksSimpleRoutingView
but I don't insist, can be done in a next step along with removing dependency on store.
function setRouteDisabledChains(chainId, disabled) { | ||
|
||
} | ||
|
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.
There is this big disclaimer on the top of that file:
There is also relevant point and rationale in the guide (I know, not published yet...).
The good thing is that stub is used only in SendModalPage
. So my proposition is to do small step towards the expected structure and move that content to the SendModalPage
and leave only empty stub here.
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.
Yeah the problem is though that without this stub store, the SendModal would be completely broken in StoryBook; there's a lot of code snippets that rely on the store methods to be there; without them, the JS code flow just breaks
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 as for the proposed change: this is just a bugfix PR (for 2.30 eventually) and I'd definitely postpone any refactorings for the start of the next milestone
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.
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 that simple, I tried; it needs dozens of all those methods like setRouteDisabledChains()
I just added above
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.
Ah got it now, will do; I thought you wanted me to remove the whole stub TransactionStore right 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.
Done
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.
Ah got it now, will do; I thought you wanted me to remove the whole stub TransactionStore right now :)
Omg, it would be something 🤣
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 actually meant to move the function you added along with the rest of stuff and removing disclaimer and leaving only plaing QtObject {}
there. Moving a lot but just cut/paste basically.
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'm approving as it's kind of "optional" work here anyways...
Yeah you are right; there's definitely more scroll/list views than needed in the whole SendModal. I'll try to revert back to just using a Repeater here |
466d8b0
to
ebf2e7e
Compare
@micieslak reverted the ListView to Column+Repeater; pls have another look |
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! Tested!
- remove the nested unneeded ScrollView - cleanups and fixes in mocked models and stores to unbreak showing the networks/routing in storybook Fixes #15902
ebf2e7e
to
346b33b
Compare
What does the PR do
Fixes #15902
Affected areas
SendModal, NetworksSimpleRoutingView
Screenshot of functionality (including design for comparison)
Zaznam.obrazovky.z.2024-08-02.11-03-33.webm