JustArchiNET / ASF-ui

The official web interface for ASF
Apache License 2.0
271 stars 38 forks source link

Add ability to edit custom config parameters, both for global and bot configs. #1698

Open Rudokhvist opened 1 month ago

Rudokhvist commented 1 month ago

Checklist

Enhancement purpose

Add ability to edit custom properties in configuration files, that are parsed by third-party plugins.

Solution

I believe it should be a multi-line text area with non-parsed json of unsupported parameters. Upon saving would be nice to check if it's still valid json, if possible, and show error without saving otherwise.

Why currently available solutions are not sufficient?

Currently editing those parameters only possible by directly editing files on disk. For VPS-hosted ASF it will be more convenient to have ability to edit them via ASF-ui

Can you help us with this enhancement idea?

Somehow, I can test and offer feedback, but can't code

Additional info

Theoretically, we can agree on some "well-known" endpoint where plugins should report schema for supported parameters. But it looks a bit hard to implement, so I believe just a field with json should do.

JustArchi commented 1 month ago

The API already returns all the defined properties, and of course saves them back, so it seems there is no ASF block here:

obraz

How I see it:

Wishlist:

Aareksio commented 1 month ago

I smell https://github.com/JustArchiNET/ASF-ui/pull/1022