feat(plugins): add declarative multi-page settings (#2074)

Closes #1720

Plugins can declare searchable multi-page settings (API 1.3): pages under the plugin in Settings, groups, string lists, editable tables and command buttons, while single-schema plugins keep working. A command button applies pending edits first and runs against the selected Global/Project layer (also remotely); Reset keeps other pages' edits, and invalid table/list edits never replace saved rows. Field and page order come from the schema without changing serde_json's map ordering elsewhere in the app.

Co-authored-by: arnaud-ritti <77437157+arnaud-ritti@users.noreply.github.com>
This commit is contained in:
Arnaud Ritti
2026-11-08 08:38:42 +08:00
committed by GitHub
parent 99102d8a40
commit 905a672bad
41 changed files with 1887 additions and 161 deletions
@@ -0,0 +1,86 @@
.page,
.group,
.field,
.array {
display: flex;
flex-direction: column;
gap: 12px;
min-width: 0;
}
.field {
gap: 4px;
}
.group h3 {
margin: 0;
font-size: inherit;
}
.description {
color: var(--fg-muted);
margin: 0;
}
.scroll {
overflow-x: auto;
}
.scroll table {
width: 100%;
border-collapse: collapse;
}
.scroll th,
.scroll td {
padding: 6px;
text-align: left;
border-bottom: 1px solid var(--border);
}
.scroll input {
min-width: 100px;
}
.buttons {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.error {
color: var(--danger);
}
.multiline {
min-height: 100px;
padding: var(--space-2);
color: var(--fg);
background: var(--bg-input);
border: 1px solid var(--border);
font: inherit;
resize: vertical;
}
.add {
align-self: flex-start;
}
.scroll th {
white-space: nowrap;
}
.scroll th:last-child,
.scroll td:last-child {
position: sticky;
right: 0;
background: var(--bg-dialog, var(--bg-elev));
}
.scroll td:last-child .buttons {
flex-wrap: nowrap;
}
.scalars {
max-width: 560px;
}