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
Community feature settings in main settings menu #59
Community feature settings in main settings menu #59
Conversation
…geFirmware into feature/runtimeFeatureSettings
…geFirmware into feature/runtimeFeatureSettings
…geFirmware into feature/runtimeFeatureSettings
Testing on a 7SEG here. When I click on Comm, I see an L and nothing else. If I twist the select knob, it will show SONG. Am I seeing the right thing? |
Hi @jamiefaye, I have to admit I didn't test the menu empty on 7seg (@sichtbeton was so nice to test it for me with three example settings, video in discord). Can you please uncomment the example block in RuntimeFeatureSettings.h as can be seen in the description? Since there are no settings yet I left it out. Edit: Sorry and the referenced enum value FileFolderSorting above. |
Any build i can test? |
Please update your MR as needed. Then I won't mess things up by uncommenting stuff and losing sync. |
The menu only makes sense as soon as other developers add new features so right now it is intentionally empty. For testing to see an entry and check XML generation and parsing I left an entry as a comment but that should not be in the merged code. Since I expected the menu to ship only after we have runtime options like the new sorting behavior I didn't test it empty. Do you want me to add code to not display it if the list is empty? PS: Thank you @sichtbeton, I will ping you on Discord if the need arises again 💯 |
From my side this PR is still ready to merge. Here is a link to the binary I created with some mock options as can be seen in the video above: https://discord.com/channels/608916579421257728/1107026299945496577/1120692404031340594. I'm 90% sure it goes back to SONG because there is no entry in the menu. As soon as the first feature is merged like PR #66 with an option to enable/disable the menu starts to make sense and give value. It's a hen and egg type situation :) |
this is great! so now feature developers could use this option mechanism? |
In accordance with the requirement in PR #56 for Pull requests altering user facing behavior or have a massive impact in constant cycle load (see here) this Pull request aims to implement:
As always all feedback is welcome!
Usage for feature devlopers currently looks like this:
RuntimeFeatureSettings.h
along with new enum defines for the possible values:The flags can be easily checked anywhere in the code by including
RuntimeFeatureSettings.h
and adding a condition like this:Example file: