New configuration UI, small fixes#83
Conversation
|
It's incredible 😍 |
|
macOS again: I don't think if it is a bug of the library, but if I am in a page and I press Escape then nothing happens. Then when I press a following key on the keyboard, it comes back to the previous page |
|
Update: It comes back with escape If you wait 3 seconds after pressing it. Instead if you press instantly another key after escape there is no delay |
|
Escape: I also found that it's slow, for me it's not that much, it's a bit annoying, should I remove it? The manage entities page : That's intended, I mean that's the default settings of max_height, it uses maximum 70% of the screen: https://inquirerpy.readthedocs.io/en/latest/pages/height.html#max-height |
|
Entities: okay but what about if we move the Add button to the top ? It would never disappear in this way. |
|
Very good work, I read your code and seems good. You really did a great job ! 🚀 |
|
Do not pull yet, I have to update the new Disk entity first |
|
Yes sure |
|
I think it's ready, questions, I'm not sure about:
|
|
I think for consistency I'd put the Back below the Add. Do you like it ? |
|
Ok, I will move id up. I had an early version where it was the first in every menu |

Configurator rewritten from the ground up.
I used this Inquirer implementation: InquirerPy Docs It had more features than the other one mentioned in #32
In
MenuPresetI removed themodify_value_callbackargument. The current usage of this tag was replaced byquestion_type, and InquirerPy has very powerful filters to sanitize the inputs: Filter docsIn
MenuPreset, unused configuration options are not saved, simply omitted from the json. As per #73 they are not needed, we read them from defaults on startup.TODO, Ideas: (maybe in another PR)
filepathInquirerPy prompt for path like configurations: DocsI thinkNo, it's just a select listmodify_value_callbackfrom Disk configurable, enter path with a little helper in config #82 could be replaced with this?Unrelated to this, standardized some parts of the code:
RunCommand()basically a wrapper aroundsubprocess.run(). There were a lot of very similar implementations around the codebase.OperatingSystemDetection.OS_FIXED_VALUE_MACOStoOsD.MACOSOther files:
ClassManager.py,ConfiguratorIO.py: lintingPower.py: No separate Callback needed, they can decide it from the topic.I tested this only on my main computer. Please check if it's working as expected on a Mac.