-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Interactive/progressive checklist #1417
Conversation
cannot exit menu from menuTextView as level above there is while loop that cannot be stopped from thic place in code
Nice... so this goes towards resolving #133 for B&W, and gives a model for how it could be done for colorlcd as well. |
So colorlcd does not have such an option (I am getting mine in a few weeks - delivery from CN)? |
No, colorlcd is basically the same as B&W in that respect - it can show the model notes file as pre-flight checklist, but there is no interactivity. |
So for now it should resolve #133 for B&W radios - I will probably go with color version as I get my radio, cause otherwise I have no way to test it.
It might be easily changed with one condition, and I think it is not necessary to have this option to enable/disable in the menu. If someone might comment if my approach on this is right or not - I would appreciate. |
Just to clarify - so when you have it set as interactive, it would be interactive on powerup/model switch, but when you view notes, not-interactive? If so, I think this is the correct behaviour - as you said you wanted to view the notes, not redo the checklist. You can reset the flight if you want to do that, as that will go through all the pre-flight checks again. |
When you view notes - check-boxes are still displayed and you can still go-through them and complete the checklist but in addition you can close checklist by pressing RTN/EXIT (so in addition not instead). |
Of course it might be changed - this is open for discussion ;) |
I'm not really fussed either way. I would have probably gone with not showing the checkboxes in the view notes dialog... but lets see if others have any thoughts on that. |
That would be reasonable, as it would clearly indicate this this window is to be closed in the other way. Also a very simple change 😄 |
Very cool! Thank you! |
Maybe you should rename |
@wimalopaan I will rename this setting, as (as you can see beginning of the discussion) I have thought that colorlcd already have this feature hah 😄 |
I think you should try to do this on the color lcd radios also. This just UI stuff that can be perfectly developed with simu/simulator, probably even better than on the radio itself. Tests on the real hardware can be done by he people who have access to all the different kinds of radios. I made a feature only of B/W radios without ever having one in my hands. |
@gagarinlg I'd rather leave it for a separate PR - the issue is not the layout itself, but the way radio handles some action (like menu enter/exit). This is only different between colorlcd and B&W. |
In my personal view I would prefer to see the "View Notes" with the previosly left state, because this might be important. But I do not see a need to complete the checklist at this time. |
Updated as we discussed:
|
This is also crucial when it comes to analyse non-checkable items on a checklist, as in this way there is no need to load non-visible items from SD-card
…essive-checklist # Conflicts: # companion/src/modeledit/setup.ui # radio/src/datastructs.h # radio/src/datastructs_private.h # radio/src/storage/yaml/yaml_datastructs_nv14.cpp # radio/src/storage/yaml/yaml_datastructs_t12.cpp # radio/src/storage/yaml/yaml_datastructs_t8.cpp # radio/src/storage/yaml/yaml_datastructs_tlite.cpp # radio/src/storage/yaml/yaml_datastructs_tpro.cpp # radio/src/storage/yaml/yaml_datastructs_tx12.cpp # radio/src/storage/yaml/yaml_datastructs_x10.cpp # radio/src/storage/yaml/yaml_datastructs_x12s.cpp # radio/src/storage/yaml/yaml_datastructs_x7.cpp # radio/src/storage/yaml/yaml_datastructs_x9d.cpp # radio/src/storage/yaml/yaml_datastructs_x9e.cpp # radio/src/storage/yaml/yaml_datastructs_x9lite.cpp # radio/src/storage/yaml/yaml_datastructs_x9lites.cpp # radio/src/storage/yaml/yaml_datastructs_xlite.cpp # radio/src/storage/yaml/yaml_datastructs_xlites.cpp # radio/src/storage/yaml/yaml_datastructs_zorro.cpp
@wimalopaan Would be grateful if you give your opinion about the feature now. It takes into consideration also the fact, that user might want to enable interactive checklist for previously prepared .txt file, so I decided to have checkable items by default. |
Sorry for the delay, didn't see the notification for this. I'll trade you review of this for testing of #1548 since I know you have a TX12 also. 😁 |
@pfeerick Testing done, If you had something to test in future - feel free to tag me - not always having time to go through issues/PRs. And also starting a day before yesterday - I am an owner of Eachine TX16s too ;) |
@wimalopaan - any thoughts on the status of this feature now? |
btw, I was only holding reviewing this PR as #1481 needs to go in for 2.6.1 and whichever PR goes in first will need the other rebased... but I think it needs more work for companion anyway so this can go in first. So I will review this one today, and possibly your other one as well and then can do a single update to the other PR. |
Right, so finally playing with this on TX16S. Companion side of things seems fine. I've noticed a few... quirks... in behaviour ... probably because I'm using this the wrong way. ;) I know you have it so that adding Blank links also need some catering for also, for colorlcd at least, as they seem to behave as if there is a checkbox still (consuming a ENTER) - it made me think at first that scrolling when checking boxes seems would break, but that was because blank lines would give no idea as to where the next 'check' was. There is no way to get out of the checklist? This was a showstopper in conjunction with the prior - as it was nearly impossible to get out of the checklist. RTN/Long RTN to exit? I can use touch exit, but that won't non-touch radios. Scrollbar in the model notes view is broken - although admittedly I think it acts a bit odd with 2.6. i.e. this is the dummy checklist I'm using atm... basically a mock model notes that has had the checklist added... as you can see it would be much... neater... with use
|
Ok, that is the point, my idea was (as I explained) that doing this in the way I presented allows users to use their "old" checklists with every item checkable without need to alter the text file.
Ok, Important thing to note and quite easy to detect - CR or LF ad a first char should always render non-checkable line.
This was also discussed, that checklist should only be closed if completed. But also this is a point that there should be to cancel it when executed by mistake or in similar situations. I will think about it - maybe a confirmation window after hitting/holding [RTN] button? I haven't know about exit option from touch screen on colorlcd - will have to check it though.
Will have a look at it. Probably in the beginning of the next week I will go through all the remarks. And for now I leave a little bit of time to discuss things mentioned earlier, like if lines should have checkbox or not by default. |
Right, I'm slowly getting back up to speed again. My own personal preference would be explicit checklist character, but I can also understand the other point of view, so I say go with it as it is unless there is further commentary on it. Or if you want I can throw it up on Discord for a quick poll. I think being able to abort the checklist is a basic UX requirement (whether whether with [preferable] or without confirmation) - i.e. if I go into the model to view or change a setting without the craft powered, why do I need to do the checklist? And it gets tedious if I'm looking at a couple of models. |
# Conflicts: # radio/src/storage/yaml/yaml_datastructs_nv14.cpp # radio/src/storage/yaml/yaml_datastructs_t12.cpp # radio/src/storage/yaml/yaml_datastructs_t8.cpp # radio/src/storage/yaml/yaml_datastructs_tlite.cpp # radio/src/storage/yaml/yaml_datastructs_tpro.cpp # radio/src/storage/yaml/yaml_datastructs_tx12.cpp # radio/src/storage/yaml/yaml_datastructs_x10.cpp # radio/src/storage/yaml/yaml_datastructs_x12s.cpp # radio/src/storage/yaml/yaml_datastructs_x7.cpp # radio/src/storage/yaml/yaml_datastructs_x9d.cpp # radio/src/storage/yaml/yaml_datastructs_x9e.cpp # radio/src/storage/yaml/yaml_datastructs_x9lite.cpp # radio/src/storage/yaml/yaml_datastructs_x9lites.cpp # radio/src/storage/yaml/yaml_datastructs_xlite.cpp # radio/src/storage/yaml/yaml_datastructs_xlites.cpp # radio/src/storage/yaml/yaml_datastructs_zorro.cpp
I also had a small interrupt with the topic ;)
If you could - please go with the poll on Discord - I will implement what will suite users better.
This is the point I will work on now. So, tu sum up, for nowe we have:
|
It would probably make sense when you rebase on the lvgl branch, as it will soon be merged into main. |
Could you add some screenshots how it looks like right now? |
Not just at the moment, as this needs some work done to it before it will work (hence the mention of rebase earlier). However, I don't think even then it will look significantly different just at the moment. |
@piotrva is there any way how to make some points in the list "bold" - you know, the very important things to check. |
superseeded by #3564 |
Summary of changes:
Adds an option to display check-boxes at the beginning of each checklist / model notes line.
=
sign as a first character in a lineNotes: