Feat v0.6.3 dead code sweep (#38)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #38.
This commit is contained in:
@@ -28,10 +28,10 @@ type AdminPageData struct {
|
||||
}
|
||||
|
||||
// SettingsPageData is what the settings surface templates receive.
|
||||
// Feature gates (BYOK, personas) moved to sw.auth.policies in v0.37.19.
|
||||
// Feature gates (BYOK, personas) moved to sw.auth.policies.
|
||||
type SettingsPageData struct {
|
||||
Section string `json:"section"`
|
||||
ConfigSections []ConfigSectionEntry `json:"config_sections,omitempty"` // v0.38.3
|
||||
ConfigSections []ConfigSectionEntry `json:"config_sections,omitempty"`
|
||||
}
|
||||
|
||||
// ── Loader registration ──────────────────────
|
||||
@@ -39,7 +39,7 @@ type SettingsPageData struct {
|
||||
// TeamAdminPageData is what the team-admin surface receives.
|
||||
type TeamAdminPageData struct {
|
||||
Section string `json:"section"`
|
||||
ConfigSections []ConfigSectionEntry `json:"config_sections,omitempty"` // v0.38.3
|
||||
ConfigSections []ConfigSectionEntry `json:"config_sections,omitempty"`
|
||||
}
|
||||
|
||||
func (e *Engine) registerLoaders() {
|
||||
@@ -91,7 +91,6 @@ func sectionCategory(section string) string {
|
||||
}
|
||||
|
||||
// ── Settings loader ──────────────────────────
|
||||
// v0.22.7: Reads feature gates from GlobalConfig to control
|
||||
// which nav links/tabs are visible (BYOK, User Personas).
|
||||
|
||||
func (e *Engine) teamAdminLoader(c *gin.Context, s store.Stores) (any, error) {
|
||||
@@ -117,7 +116,7 @@ func (e *Engine) settingsLoader(c *gin.Context, s store.Stores) (any, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// ── Config section discovery (v0.38.3) ───────
|
||||
// ── Config section discovery ───────
|
||||
//
|
||||
// Packages declare a config_section in their manifest. This helper scans
|
||||
// enabled packages and returns entries whose surfaces array includes the
|
||||
|
||||
Reference in New Issue
Block a user