branchrust_reboot/main/settingsmenu_export_configcancel
11 Commits over 0 Days - ∞cph!
merging onto my branch, trying to fix local repo problem with missing files
Seperated the new UI Settings Export code into it's own partial class (thanks Flavien for the suggestion)
Remove the export to console option as it's no longer useful. Improved button description.
Added a popup editor window when exporting that allows for copying the results to the clipboard (as they get truncated by the console and I always just copy and paste them anyway).
Dealt with the escaping when formatting for ADX. Also fixed the construction of the array syntax so it automatically parses into the dynamic type in ADX (previously it was still treated as a string) (Note: the confusion is that there is slightly different syntax when using datatable vs .ingest and I had used a combination of both DOH)
Now excludes inactive settings.
And added todos for remaining work
* Changed entry point from a menu that checked children based on selected object to a context menu on the UI_Settings component itself (thanks Flavien for suggesting this approach).
* Removed Parents, replaced with catregory (it's broader but will suffice for current need).
* Lots of tidying up
* Removed the now redundant MenuUI2_Settings_Export class and namespace (they were only added in this branch).
Found the bool to include inactive components
Dropdowns now export correctly with their name values. Exports as strings for both Excel and ADX Datatables format.
TODO: Ensure that inactive setting sections do still get included. Handle Sliders and Toggles (should be easier than dropdowns as no namevalues), will try to do abstract/generic solution to work for all 3 types.
WIP - script to export UI dropdown, sliders and toggles names, tooltips and values/ranges to be exported and loaded into ADX for more readable grafana/analysis.