-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Graph menu proposal #3306
Graph menu proposal #3306
Conversation
Built and tested ok :) Improves the functionality compared as it is today. Is it possible, let's say you have 4 graphs, that when you make a change on graph 4 that position in menu is locked to where you did the change, now it jumps to top of menu and you need to scroll down again. |
I noticed that when you are tuning third or fourth subgraph, but unfortunatly the menu is rebuilt on each click. Here I use existing features and I just show again menu to have it opened again (I don't think it's possible to save and restore shift position, and if yes I don't know how to do that easily...) |
@Philoul Works as expected on current dev bits. Useful addition, thanks! Just one remark: intuitively I'd expect clicking is used for rescaling, long-press for menu configuration. For my usage, for every say 99 in 100 actions it is to change scale, only 1 in 100 is used to actually change the graph. I never used rescale on simple click graph. I find it unintuitive and somewhat unresponsive as on every rescale screen is re-rendering - especially when it is rotating to the desired scale. Scale menu (in the PR: long-press) on the other hand directly takes my to the expected view👍. |
@vanelsberg if we finally keep the4 textviews above graph to rescale, then we don't need anymore long click for rescale menu... |
Yes, Was following the discussion on Discord on this. My comment: |
I agree, the idea is good to simplify changing X hourly span of overview, but i think its sufficient to be able to change this by long pressing graph or the arrow button. There is alot of information in the graphs, and we need to be careful to add more text to this without it being absolutely necessary |
@olorinmaia @vanelsberg The idea was to reduce clicks for frequent actions and also to simplify graph menu very long. So the 2 compromise can be compare to current solution (if no other ideas):
|
1 similar comment
@olorinmaia @vanelsberg The idea was to reduce clicks for frequent actions and also to simplify graph menu very long. So the 2 compromise can be compare to current solution (if no other ideas):
|
This PR is only for testing, I asked @kenzo44 to open a dedicated PR to be able to test and compare both solutions for graph rescale. (that's why we have some little conflicts between both branches, but very easy to fix). I think I will re-open a dedicated PR for final solution (I understood some users prefer my version with Textboxes overlapping main graph, and some other users prefer iceman's proposal with buttons above graph, both have ++ and --). On final PR I will remove long press menu for rescale (I think now everyone prefer dedicated "buttons/textviews" solution), I got good comments on new menu for graph settings but would like to test it on low res screen to be sure it works fine (or tune it if necessary). @MilosKozak any comments on this proposal (and variant with #3311)? |
@Philoul Sounds great. Would love that! Will test your new PR a.s.a.p. On buttons vs text overlay: my original view was that the buttons would take up valuable screen resources 'without adding functionality'. But I changed my mind, mostly because in PR#3306 the text menu on the graph conflicts with the '*' icons showing up for profile changes. Relocating the text menu position would solved that, but could then overlay with the graph data itself which I see as a possible problem on graph readability? @MilosKozak Other argument for using buttons (I think maybe): enhancing accessibility options reading the screen for users with a visual impairment? |
I think you solved this very nicely @Philoul ! Love the new layout. Everything in one place without scrolling. I would also like to see how this looks with the buttons for 6, 12,18,24 hrs @kenzo44 have in his PR. Great job both of you as always =) |
On latest commit pushed this evening I included several improvements, but I would like to have testers with very low res screen to test on physical device how this menu works... As explain in a previous comment, this draft PR is for testing. I will probably close it to re do a new clean PR with final solution... |
# Conflicts: # plugins/main/src/main/kotlin/app/aaps/plugins/main/general/overview/OverviewFragment.kt # plugins/main/src/main/kotlin/app/aaps/plugins/main/general/overview/OverviewMenusImpl.kt # plugins/main/src/main/res/layout/overview_graphs_layout.xml
I prefer the text view alternative to save space. If it obscures anything just shortly change the scale and it won't be hidden any longer. |
I prefer the small texts without backgrounds and on the graph. Much less invasive that buttons. It'd be better for small screens too.! |
Like the buttons, even when they take some screen space. Imho, textview impacts readability/accessibility. Rescaling to view is just a workaround then? Edit: Also for me with buttons the UI looks a lot more cleaner and professional or may it is just that I hate using "text" areas as clickable item which UI-wise should be buttons? ;-) |
Except the starts of the profile changes (that most people use rarely), there is no interesting information there. |
On using screen resources: graph scaling still is not optimal? |
Alternatively the text views could be placed below the time axis labels. There is space left on top of graph 1 and they reside close to what they impact. |
I think both buttons and text is good solutions, there are + and - with both. It would be interesting to see how it looks if both of those are placed between main graph and graph 1. |
Nice! I'd go for the 3th option. There is enough "unused" space at the top of the graph. Buttons do shield some of the profile indicators. Maybe (in another issue) move them slightly lower then? If noth the 3th, then 2nd option (buttons below the graph) would also do for me. |
How about optionally hiding the buttons through the pulldown/config menu? (me, running for cover ;-) ) |
I during my several trials I put the 4 buttons vertically below menu icon. but it doesn't work... If you hide predictions, and/or if you select long range like 18h or 24h, you have too many recent information hidden by scale buttons... |
And if your idea is to include these buttons within dropdown menu (in a first row of menu), keep in mind that this menu is hidden in simple mode (so only remaining way to resize scale in simple mode is long press on main graph... |
Leaning back and thinking about where we are now my first priority is to get rid io the long press changing time scale, second priority is not to waste srceen space. Anything else gets used very infrequently and therefore of minor importance with some pros and cons. The current PR addresses two independent actions:
|
Actually I was thinking more about only "showing" the scaling buttons from your screenshots above when selected, in a similar way the graphs are selected. So when not selected, buttons are not visible. But in that case we would need to keep the long-press to scale the graphs. Hmmm... Maybe just ignore this idea. It is adding another complexity to a solution that is good enough... |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
New PR with rescale menu tested ok. Nice! Think 2 clicks only is better than current dev. |
Replaced by #3347 |
First commit to include a direct access to graph scale with long press
Second commit to keep menu opened during graph settings (to close menu just click outside menu