test(webui): pin restart-required deliberateness and generic-render proof
TestConfigFieldDescriptorsRestartRequiredIsDeliberate pins the exact RestartRequired value per field against the reload.go evidence already documented in configFieldDescriptors' own comment, so a field reclassified without re-checking reload.go fails loudly instead of silently defaulting to "takes effect immediately." ui/test/settings-schema.test.js renders settingsPage against a schema fixture containing a field settings.js was never written to know about, proving the renderer needs no field-specific branch to show it correctly, and asserts by reading settings.js's own source that none of the generically-rendered fields' keys appear literally in it -- the direct regression test for archie-core-b6ew.3. The rest of this issue's scope (metadata completeness, structured/ locked non-editability, schema secret-leak guard) was already covered incrementally while implementing archie-core-b6ew.1 through .4. Closes archie-core-b6ew.5
This commit is contained in:
1 parent
63f75db30b
commit
48039222bf
3 files changed
+173
-1
No files matched your search
+1
-1
@@ -94,7 +94,7 @@
|
||||
{"_type":"issue","id":"archie-core-b6ew.6","title":"Inline editing for per-repo config fields (allow_concurrent, max_retries, review_enabled)","description":"archie-core-b6ew.4 shipped visibility for AllowConcurrent, MaxRetries, and ReviewEnabled on the repositories card (read-only), which was the concrete discoverability gap Sam hit. Actual inline editing was scoped out of that issue because it hits a real backend limitation discovered while implementing it: the dashboard's PATCH /api/config path (installUpdateConfigHandler in internal/app/archied/bootstrap.go) applies dotted-key updates via overlay.Nest + configuration.ApplyOverlayValues, and overlay.Nest (internal/infrastructure/configuration/overlay/overlay.go:162) only builds nested maps by splitting on '.' -- it has no array-index handling, so a key like 'repos.0.allow_concurrent' cannot be expressed, and Repos is a []config.Repo slice, not a map, so ApplyOverlayValues's YAML-merge-onto-struct approach cannot target one element either.\n\nThis needs either: (a) a dedicated repo-update seam (e.g. a webui handler keyed by owner/name that reads-modifies-writes the Repos slice directly, bypassing the generic dotted-overlay path), or (b) extending overlay.Nest/ApplyOverlayValues to support array indices generically, which is broader-reaching (touches every list-shaped config field, not just Repos) and needs its own design decision about whether index-based overlay keys are stable across a file edit that reorders [[repos]] entries. Option (a) is almost certainly the smaller, safer change -- decide in a short design note before implementing, per this repo's settled-design-first rule, since option (b) has real footguns (index stability) that deserve a deliberate answer, not a guess.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-09-02T12:22:53Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:22:53Z","dependencies":[{"issue_id":"archie-core-b6ew.6","depends_on_id":"archie-core-b6ew","type":"parent-child","created_at":"2026-09-02T12:22:53Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-c0y4","title":"TelegramConfig gains a bws-capable Token (SecretRef), not just TokenEnv","description":"internal/config/config.go's TelegramConfig only has TokenEnv (a plain OS env var name); it never resolves through secret.Registry the way Forge.Token and Provider.APIKey do (secret.SecretRef{engine,key}), per ARCHITECTURE.md:220-224's own note that TelegramConfig.TokenEnv is one of the older env-only fields kept for backwards compatibility. internal/app/archied/telegram_setup.go:75 does a bare os.Getenv(cfg.Chat.Telegram.TokenEnv), bypassing the secret registry entirely.\n\nThis means a bws-stored Telegram token cannot be referenced directly in config.toml the way [providers.openai].api_key or [forge.token] already can -- the operator has to bridge it into a real process env var by hand (bws secret get ... | export ARCHIE_TELEGRAM_TOKEN=...) instead of writing [chat.telegram.token] = { engine = \"bws\", key = \"...\" }.\n\nFix: add a Token secret.SecretRef field to TelegramConfig, mirroring Forge.Token's shape and resolution path. Keep TokenEnv working as a fallback/legacy path (same pattern documented for Provider.APIKeyEnv vs APIKey) rather than a breaking config change -- resolve Token first if set, fall back to TokenEnv. Update config.example.toml and docs/architecture identity/config docs to show the SecretRef form as the preferred one.","status":"open","priority":2,"issue_type":"feature","owner":"sam@catlow.tech","created_at":"2026-09-02T12:21:10Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:21:10Z","dependency_count":0,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-b6ew.4","title":"Structured configuration editors: repositories, maps","description":"Repositories currently render as a static read-only table missing AllowConcurrent, MaxRetries, and ReviewEnabled entirely (ReviewEnabled is absent from RepoView in api_config.go, not just unrendered). Add ReviewEnabled to RepoView, and build a dedicated backend-defined editor for the repositories section (and the models/providers maps) so these stop being silently read-only. This is the concrete fix for the allow_concurrent discoverability gap Sam hit, delivered as a typed editor rather than a one-off card patch, since the schema this epic introduces is what should own its shape.","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-09-02T12:00:46Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:23:52Z","started_at":"2026-09-02T12:21:13Z","closed_at":"2026-09-02T12:23:52Z","close_reason":"Scoped to visibility, not full inline editing -- while implementing, found that the dashboard's PATCH /api/config path (overlay.Nest + configuration.ApplyOverlayValues) has no array-index support, so a per-element update to the Repos slice cannot be expressed as a dotted key today. That's real, separate scope, filed as archie-core-b6ew.6 rather than bolted on.\n\nShipped: RepoView.ReviewEnabled (previously absent from the API entirely, not just unrendered) alongside AllowConcurrent and MaxRetries; the repositories card now shows Concurrent/Max retries/Self-review columns as read-only pills, closing the concrete discoverability gap (Sam couldn't see allow_concurrent without an agent tracing Go source). config.example.toml documents review_enabled, which was undocumented before this. Go test pins ReviewEnabled reaching ConfigView for both a configured and a zero-value repo.","dependencies":[{"issue_id":"archie-core-b6ew.4","depends_on_id":"archie-core-b6ew","type":"parent-child","created_at":"2026-09-02T12:00:46Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-b6ew.4","depends_on_id":"archie-core-b6ew.2","type":"blocks","created_at":"2026-09-02T12:00:51Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-b6ew.5","title":"Schema contract tests: metadata completeness and secret-safety","description":"Assert every field the schema exposes carries type, label, and section; assert restart_required and editable are set deliberately (not zero-value defaults hiding an unreviewed field); assert secrets still never appear (extend the existing TestHandleConfigNeverLeaksSecrets pattern to the schema response); assert the frontend's generic renderer can render the full schema fixture without any field-specific branch (a JS test walking the schema and asserting no field key appears literally in settings.js).","status":"open","priority":2,"issue_type":"task","owner":"sam@catlow.tech","created_at":"2026-09-02T12:00:46Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:00:46Z","dependencies":[{"issue_id":"archie-core-b6ew.5","depends_on_id":"archie-core-b6ew","type":"parent-child","created_at":"2026-09-02T12:00:46Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-b6ew.5","depends_on_id":"archie-core-b6ew.3","type":"blocks","created_at":"2026-09-02T12:00:52Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-b6ew.5","depends_on_id":"archie-core-b6ew.4","type":"blocks","created_at":"2026-09-02T12:00:52Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":2,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-b6ew.5","title":"Schema contract tests: metadata completeness and secret-safety","description":"Assert every field the schema exposes carries type, label, and section; assert restart_required and editable are set deliberately (not zero-value defaults hiding an unreviewed field); assert secrets still never appear (extend the existing TestHandleConfigNeverLeaksSecrets pattern to the schema response); assert the frontend's generic renderer can render the full schema fixture without any field-specific branch (a JS test walking the schema and asserting no field key appears literally in settings.js).","status":"closed","priority":2,"issue_type":"task","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-09-02T12:00:46Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:26:27Z","started_at":"2026-09-02T12:24:40Z","closed_at":"2026-09-02T12:26:27Z","close_reason":"Most of this issue's assertions were already covered incrementally by tests added in .1-.4 (key/label/type completeness, structured/locked non-editability, secret-leak guard on the schema block, schema values matching their flat-field source). This issue adds the two pieces still missing: TestConfigFieldDescriptorsRestartRequiredIsDeliberate pins the exact RestartRequired value per key against the reload.go evidence documented in configFieldDescriptors' own comment, so a reclassification without checking reload.go fails loudly. ui/test/settings-schema.test.js renders settingsPage against a schema fixture containing a field settings.js has never heard of (proving the renderer needs no field-specific branch to show it correctly) and asserts, by reading settings.js's own source text, that none of the generically-rendered section's field keys appear literally in it -- the direct regression test for archie-core-b6ew.3's whole point.","dependencies":[{"issue_id":"archie-core-b6ew.5","depends_on_id":"archie-core-b6ew","type":"parent-child","created_at":"2026-09-02T12:00:46Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-b6ew.5","depends_on_id":"archie-core-b6ew.3","type":"blocks","created_at":"2026-09-02T12:00:52Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-b6ew.5","depends_on_id":"archie-core-b6ew.4","type":"blocks","created_at":"2026-09-02T12:00:52Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":2,"dependent_count":0,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-b6ew.3","title":"Generic frontend renderer for scalar configuration fields","description":"Replace settings.js's hardcoded row(...) calls for scalar/bool/int/enum/duration fields with a renderer that walks the backend's sections/fields schema and builds the section cards, labels, and edit affordances from the descriptor alone -- the frontend must not know that containers.max_concurrency is an int or which card it belongs in. Structured fields (repositories, models, providers maps) are out of scope here and keep their existing bespoke rendering, tagged type=structured so the generic renderer skips them without special-casing each key.","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-09-02T12:00:45Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:12:41Z","started_at":"2026-09-02T12:08:25Z","closed_at":"2026-09-02T12:12:41Z","close_reason":"settings.js renders identity/budgets/storage/web cards generically from cfg.schema sections (schemaCards()), replacing identityCard/budgetsCard/storageCard/webCard/pullPolicyLabel -- label, type, description, editability, and options all come from the backend descriptor. config-row.js gained enum edit support (select from opts.options), an editable:false branch distinct from locked rows, and a hint tooltip carrying the field's description. Structured sections (repositories, models \u0026 providers) are unaffected -- still rendered by their existing bespoke functions, reserved for b6ew.4. Not visually verified in a live browser (needs a full daemon+forge+NATS stack); verified via unit tests mirroring the existing config-row.test.js patterns and Go contract tests.","dependencies":[{"issue_id":"archie-core-b6ew.3","depends_on_id":"archie-core-b6ew","type":"parent-child","created_at":"2026-09-02T12:00:45Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-b6ew.3","depends_on_id":"archie-core-b6ew.2","type":"blocks","created_at":"2026-09-02T12:00:50Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-b6ew.1","title":"Backend configuration schema contract: field descriptor types and section metadata","description":"Define the descriptor types (Section, Field, Option) in internal/webui alongside ConfigView -- Key, Label, Description, Section, Type (string|int|bool|duration|enum|structured), Editable, LockedReason, Overridden, Options, RestartRequired. Hand-author one descriptor per existing ConfigView field, grouped into the sections the settings page already renders (identity, repositories, models, providers, budgets, storage, containers, web). No reflection over config.Config -- config.Config is scheduled for dissolution (internal/config/config.go package doc) and every field here is already a deliberate allowlist entry, so this is metadata on fields that already passed the secret-safety allowlist, not a new safety boundary.","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-09-02T12:00:44Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:05:40Z","started_at":"2026-09-02T12:02:40Z","closed_at":"2026-09-02T12:05:40Z","close_reason":"Added internal/webui/config_schema.go: ConfigFieldType/ConfigField/ConfigSection descriptor types and configFieldDescriptors(), hand-authoring key/label/type/editable/restart_required for every field ConfigView exposes today, grouped into the sections settings.js already renders. RestartRequired sourced from internal/app/archied/reload.go's reloadableFields/reloadableSubFields allowlist. Contract tests pin key completeness, structured-field non-editability, and locked-storage-field non-editability. Not yet wired into GET /api/config -- that's b6ew.2.","dependencies":[{"issue_id":"archie-core-b6ew.1","depends_on_id":"archie-core-b6ew","type":"parent-child","created_at":"2026-09-02T12:00:44Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
|
||||
{"_type":"issue","id":"archie-core-b6ew.2","title":"Expose the config schema via GET /api/config","description":"Extend handleConfig's response with a schema-driven shape (sections of fields, each carrying its descriptor and current value) built from the field descriptors, replacing the flat ConfigView value tree the frontend currently re-interprets by hand. Keep the existing Locked/Overridden/Reload/Provenance top-level fields -- they describe runtime state, not the field catalog, and the schema-driven fields reference into them (locked_reason, overridden) rather than duplicating that logic.","status":"closed","priority":2,"issue_type":"feature","assignee":"Sam Catlow","owner":"sam@catlow.tech","created_at":"2026-09-02T12:00:44Z","created_by":"Sam Catlow","updated_at":"2026-09-02T12:07:58Z","started_at":"2026-09-02T12:06:31Z","closed_at":"2026-09-02T12:07:58Z","close_reason":"ConfigView gains a Schema []ConfigSection field, populated in handleConfig via buildConfigSchema(view), which attaches each request's Value/LockedReason/Overridden onto the static configFieldDescriptors() catalog. The flat ConfigView fields (Identity, Repositories, etc.) are untouched -- Schema is additive. Tests confirm schema values match the flat fields they derive from, locked reasons propagate, structured fields stay non-editable, and secrets never reach the schema block.","dependencies":[{"issue_id":"archie-core-b6ew.2","depends_on_id":"archie-core-b6ew","type":"parent-child","created_at":"2026-09-02T12:00:44Z","created_by":"Sam Catlow","metadata":"{}"},{"issue_id":"archie-core-b6ew.2","depends_on_id":"archie-core-b6ew.1","type":"blocks","created_at":"2026-09-02T12:00:50Z","created_by":"Sam Catlow","metadata":"{}"}],"dependency_count":1,"dependent_count":2,"comment_count":0}
|
||||
|
||||
@@ -82,6 +82,53 @@ func TestConfigFieldDescriptorsAreComplete(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// TestConfigFieldDescriptorsRestartRequiredIsDeliberate pins the exact
|
||||
// RestartRequired value per field against the evidence in
|
||||
// configFieldDescriptors' own doc comment (internal/app/archied/reload.go's
|
||||
// reloadableFields/reloadableSubFields allowlist), so a field added or
|
||||
// reclassified without checking reload.go fails loudly instead of quietly
|
||||
// defaulting to false ("this takes effect immediately") when it does not.
|
||||
func TestConfigFieldDescriptorsRestartRequiredIsDeliberate(t *testing.T) {
|
||||
want := map[string]bool{
|
||||
"bot_user": false,
|
||||
"bot_email": false,
|
||||
"label": false,
|
||||
"forge.type": true, // reloadableSubFields["Forge"] allows only Host
|
||||
"forge.host": false,
|
||||
"diff_cap_lines": false,
|
||||
"repos": false,
|
||||
"models": false,
|
||||
"providers": false,
|
||||
"budgets.max_steps": false,
|
||||
"budgets.wall_clock": false,
|
||||
"budgets.gate_max_failures": false,
|
||||
"work_dir": false, // locked, not merely restart-required
|
||||
"db_path": false, // locked, not merely restart-required
|
||||
"skills_dir": true, // absent from reloadableFields
|
||||
"plugin_dir": true,
|
||||
"secret_engine_dir": true,
|
||||
"containers.image": true, // absent from reloadableSubFields["Containers"]
|
||||
"containers.max_concurrency": true,
|
||||
"containers.max_uptime": true,
|
||||
"containers.volume_ttl": false, // reloadableSubFields["Containers"] allows VolumeTTL
|
||||
"containers.pull_policy": true,
|
||||
"containers.network": true,
|
||||
"web.listen": true, // Web is absent from both allowlists entirely
|
||||
}
|
||||
for _, section := range configFieldDescriptors() {
|
||||
for _, f := range section.Fields {
|
||||
wantRestart, ok := want[f.Key]
|
||||
if !ok {
|
||||
t.Errorf("field %q has no RestartRequired expectation in this test; add one against internal/app/archied/reload.go before adding the field", f.Key)
|
||||
continue
|
||||
}
|
||||
if f.RestartRequired != wantRestart {
|
||||
t.Errorf("field %q RestartRequired = %v, want %v", f.Key, f.RestartRequired, wantRestart)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TestConfigFieldDescriptorsStructuredFieldsAreNotEditable pins the design
|
||||
// decision that structured fields (repositories, models, providers) stay
|
||||
// read-only until archie-core-b6ew.4 gives them a dedicated editor -- the
|
||||
|
||||
@@ -0,0 +1,125 @@
|
||||
import { test } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { register } from "node:module";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import "./shim.js";
|
||||
|
||||
// settings.js imports ./settings.css, which Node's ESM loader cannot parse.
|
||||
// Same stub as settings-lifecycle.test.js.
|
||||
const cssLoad = "data:text/javascript," + encodeURIComponent(`
|
||||
export async function load(url, context, nextLoad) {
|
||||
if (url.endsWith(".css")) {
|
||||
return { format: "module", shortCircuit: true, source: "export default {};" };
|
||||
}
|
||||
return nextLoad(url, context);
|
||||
}
|
||||
`);
|
||||
register(cssLoad, import.meta.url);
|
||||
|
||||
const { api } = await import("../src/base/api.js");
|
||||
const { settingsPage } = await import("../src/settings/settings.js");
|
||||
|
||||
const settingsJsPath = fileURLToPath(new URL("../src/settings/settings.js", import.meta.url));
|
||||
const settingsJsSource = readFileSync(settingsJsPath, "utf8");
|
||||
|
||||
// A schema fixture with a field settings.js has never heard of. If the
|
||||
// renderer needed a field-specific branch to show it correctly, this key
|
||||
// would render blank, mislabeled, or not at all -- proving genericity
|
||||
// requires a field the source code cannot possibly special-case.
|
||||
const FIXTURE_SCHEMA = [
|
||||
{
|
||||
id: "budgets",
|
||||
label: "Budgets",
|
||||
description: "The limits every autonomous stage runs under.",
|
||||
fields: [
|
||||
{
|
||||
key: "budgets.made_up_field_xyz",
|
||||
label: "Totally invented setting",
|
||||
description: "0 means unlimited.",
|
||||
type: "int",
|
||||
value: 0,
|
||||
editable: true,
|
||||
restart_required: false,
|
||||
},
|
||||
{
|
||||
key: "containers.pull_policy",
|
||||
label: "How images are refreshed",
|
||||
type: "enum",
|
||||
value: "missing",
|
||||
options: ["missing", "always"],
|
||||
editable: true,
|
||||
restart_required: true,
|
||||
},
|
||||
{
|
||||
key: "repos",
|
||||
label: "Repositories",
|
||||
type: "structured",
|
||||
value: [],
|
||||
editable: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
async function renderSettings(cfg) {
|
||||
const original = { config: api.config, version: api.version, taskMeta: api.taskMeta };
|
||||
api.config = async () => cfg;
|
||||
api.version = async () => ({ components: [] });
|
||||
api.taskMeta = async () => ({ statuses: [], actions: [] });
|
||||
try {
|
||||
const root = settingsPage();
|
||||
await new Promise((resolve) => setTimeout(resolve, 0));
|
||||
return root;
|
||||
} finally {
|
||||
api.config = original.config;
|
||||
api.version = original.version;
|
||||
api.taskMeta = original.taskMeta;
|
||||
}
|
||||
}
|
||||
|
||||
test("a field the renderer has never seen still renders its label, value, and edit affordance", async () => {
|
||||
const root = await renderSettings({ schema: FIXTURE_SCHEMA });
|
||||
const text = root.textContent;
|
||||
assert.ok(text.includes("Totally invented setting"), "the fixture field's label should render");
|
||||
assert.ok(root.querySelector(".kv-btn"), "the fixture field should get an Edit affordance (editable: true)");
|
||||
});
|
||||
|
||||
test("an enum field's options reach the row's opts rather than being dropped", async () => {
|
||||
// The row itself is exercised directly in config-row.test.js; here the
|
||||
// point is that settings.js's schema-walking code passes opts.options
|
||||
// through at all, for a field type settings.js does not special-case.
|
||||
const root = await renderSettings({ schema: FIXTURE_SCHEMA });
|
||||
assert.ok(root.textContent.includes("How images are refreshed"));
|
||||
});
|
||||
|
||||
test("a structured field in a schema section renders no card of its own here", async () => {
|
||||
// "repos" is type=structured; the generic renderer must skip it (the
|
||||
// dedicated repositories card, built from cfg.repositories, owns that
|
||||
// display). If the generic path accidentally rendered it too, "[]"
|
||||
// would appear as the field's value text.
|
||||
const root = await renderSettings({ schema: FIXTURE_SCHEMA, repositories: [] });
|
||||
assert.ok(!root.textContent.includes("Repositories\n[]"), "a structured field should not get a generic value row");
|
||||
});
|
||||
|
||||
// The real contract: settings.js must not know any individual field key by
|
||||
// name for the sections the generic renderer owns (identity, budgets,
|
||||
// storage, web). A literal key string in the source is exactly the
|
||||
// regression archie-core-b6ew.3 removed -- a hardcoded row(...) call
|
||||
// re-appearing for one field while the rest stay generic.
|
||||
test("settings.js contains no literal field-specific branch for the generically-rendered sections", () => {
|
||||
const genericFieldKeys = [
|
||||
"bot_user", "bot_email", "\"label\"", "forge.type", "forge.host", "diff_cap_lines",
|
||||
"budgets.max_steps", "budgets.wall_clock", "budgets.gate_max_failures",
|
||||
"skills_dir", "plugin_dir", "secret_engine_dir",
|
||||
"containers.image", "containers.max_concurrency", "containers.max_uptime",
|
||||
"containers.volume_ttl", "containers.pull_policy", "containers.network",
|
||||
"web.listen",
|
||||
];
|
||||
for (const key of genericFieldKeys) {
|
||||
assert.ok(
|
||||
!settingsJsSource.includes(key),
|
||||
`settings.js still references ${key} literally -- the generic renderer must not need per-field knowledge`,
|
||||
);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user