feat(settings): mark Workspace category Coming Soon in the sidebar

Shows a small tertiary-styled 'Coming Soon' next to the category header
whenever every section under it is still !isImplemented — not hardcoded
to Workspace specifically, so it stops on its own once real Workspace
sections start landing instead of needing a manual follow-up removal.
This commit is contained in:
2026-08-18 16:58:14 +01:00
parent 78e3566a8e
commit 8af860cd7e
@@ -51,7 +51,18 @@ struct SettingsSidebarList: View {
} }
} header: { } header: {
if let title = category.title { if let title = category.title {
HStack(spacing: 6) {
Text(title) Text(title)
// Not hardcoded to `.workspace` specifically
// stays correct on its own as sections get
// built, only shows while every section in
// the category is still `!isImplemented`.
if sections.allSatisfy({ !$0.isImplemented }) {
Text("Coming Soon")
.font(.caption2.weight(.medium))
.foregroundStyle(.tertiary)
}
}
} }
} }
} }