feat(metadata): admin-configurable platform dropdown options (#777) #782
Reference in New Issue
Block a user
Delete Branch "feature/metadata-platform-configurable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #777.
The repo metadata
platformfield was a hardcoded enum (and the list had drifted: it still hadwordpress/mcp/a strayplatform, missingnpm). This makes it admin-configurable so taxonomy changes need no code change or redeploy.Changes
modules/setting/metadata.go(new):[metadata] PLATFORM_OPTIONSsetting, defaultjoomla,dolibarr,go,npm,generic, loaded inloadCommonSettingsFrom.routers/web/admin/metadata.go+templates/admin/metadata.tmpl): edit the list (comma/newline input, normalized lowercase/dedupe), persisted toapp.ini, applied in-memory immediately. New route + nav entry.Acceptance criteria
app.ini), not sourcejoomla,dolibarr,go,npm,genericVerification
go buildofmodules/setting,routers/web/admin,routers/web/repo/setting,routers/web: passgofmtcleanNote:
package-typecould get the same treatment later (issue notes this).