Implement config dialog #1883
Labels
No labels
backend
critical
defect
duplicate
enhancement
fixed
frontend
general
invalid
major
minor
normal
oxjs
pandora_client
python-ox
task
trivial
wontfix
worksforme
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: 0x2620/pandora#1883
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We may want a full-fledged "Configure pan.do/ra" dialog -- this would help find config bugs, and allow a proper implementation of changing UI settings via # URLs. We'd need an abstract description of the config though: names, descriptions, default and allowed values (types, but also ranges, one-or-more-of-many, including configurable many), requires restart, removable ("title" item key isn't), editable (user.ui.videoPoints wouldn't be), etc. for every key/value pair, and forms with tons of ? / ?. Doable, but a lot of work...
The easy way:
Update patches current JSONC to include all top-level block comments. (Then, just like now, config.py hot-patches config.py on load, to ensure basic consistency. I.e. the JSONC file is not necessarily equal to pandora.site)
Config dialog is one textarea with the complete contents of the JSONC, with buttons to "Reset Config" and to "Restart Server". The latter returns a task ID to be used for polling (also see #2448).