DevMode Settings Explorer feedback

So, I'm working on the styling for a little potential addition to Calego's 'Developer Mode' module and since this Discord is probably the key user group I could use the opinion of anyone who has one: 1) Is there any information you see here that would never be useful? 2) Is there any info you don't see here that would be useful? 3) As I'm starting to work on the styling now, any ideas you have on a useful way to lay out the information in a clear, compact way would be helpful. (Images in thread)
24 Replies
Dor
Dor3y ago
No description
Dor
Dor3y ago
No description
Daniel Thorp
Daniel Thorp3y ago
Perhaps remove the quotes on these
No description
Daniel Thorp
Daniel Thorp3y ago
Also, it would be dope if "Current" had a textbox to the right of it, rather than just text, which would allow you to put a new value for the setting
Calego
Calego3y ago
I'd lay these out with JSON.stringify inside a <pre> maybe not stringify, there's some utility somewhere that formats json nicely
Dor
Dor3y ago
Hmmm, will investigate.
Daniel Thorp
Daniel Thorp3y ago
JSON.stringify(myjson, null, 4) Maybe a light left hand border on the <details> elements?
Calego
Calego3y ago
name isn't garunteed is it? balls
Dor
Dor3y ago
No, sadly I place it if it exists and skip it if not. Same as hint
Calego
Calego3y ago
Yeah makes sense I recind my previous statement I would not lay this out with JSON.stringify I would lay out current aka value or w/e with it Some icons for scope config default would be good. Don't think module is very useful as it's already under a heading.
Daniel Thorp
Daniel Thorp3y ago
It would be really cool to be able to edit "current" 🥺
Calego
Calego3y ago
no no no nono no nono no no * 100 no ^ 100 no
Daniel Thorp
Daniel Thorp3y ago
Yes
Calego
Calego3y ago
maybe?
Dor
Dor3y ago
I think it might be too messy to edit it directly in a textbox there, but I could conceivably pop a dialog with the appropriate form field for the setting's type...
Calego
Calego3y ago
We'll stretch goal it for now just display + just
Daniel Thorp
Daniel Thorp3y ago
The field could be directly there as well Well, I don't see why not since this is for Devs who can type game.settings.set(.......) It just saves time
Calego
Calego3y ago
editing a boolean would be easy, a string too, but beyond that there's some big needs for validation for me to be comfortable with a UI that does that
Dor
Dor3y ago
I have some ideas 😉 But yes, stretch goal.
Calego
Calego3y ago
Plus almost all of the normal UI is the existing settings panel this is most useful for config: false things and those are typically complex structures
Daniel Thorp
Daniel Thorp3y ago
Not in my experience 🤔
Calego
Calego3y ago
My first idea was actually to literally inject the config: false settings into the settings panel but with their values jsonStringified that real estate is crowded lately lol
Dor
Dor3y ago
No matter what you do there's no good way to ensure that complex settings will be formatted in the way the module expects... but thankfully there's an available reset button, so. In terms of formatting, some good ideas 👍 I am somewhat nervous about the implications of loading the dialog in a world with 300 active modules, each of which has x settings, and running game.settings.get (300*x) times... shrug
Calego
Calego3y ago
Hmmm. That smells. Take a look at what foundry core settings dialog does?