feat(settings): hub w/ tabs + feature toggles + config docs#94
Merged
Conversation
- apps/web/src/config/features.ts — single source of truth for which features are enabled. Flip enabled:false to hide a tab + sidebar link - apps/web/src/components/settings/ — six section components: profile, appearance, billing, security, api-keys, webhooks - /dashboard/settings is now a tabbed hub (vertical tabs on desktop, scrollable horizontal on mobile, hash-routed for deep links) - Old standalone routes redirect to settings#<tab> - Sidebar gates each link by feature flag; affiliate + referrals get their own 'Growth' group; settings replaces the per-feature spam - docs/features/README.md explains toggle workflow + per-feature config file locations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidates appearance, billing, security, API keys, webhooks into a single `/dashboard/settings` hub with vertical tabs.
Feature toggles
`apps/web/src/config/features.ts` is the single source of truth for what's enabled. Flip `enabled: false` on any entry and:
Defaults ship boring-essentials on (billing, security, files, organizations, search, notifications, GDPR) and growth-extras off (affiliate, referrals).
Per-feature config
`docs/features/README.md` documents where each feature's values live (plans → `packages/billing/src/plans.ts`, retry budgets → `packages/api/src/webhooks.ts` top constants, etc.).
URL compatibility
Old standalone routes (`/dashboard/billing`, `/appearance`, `/security`, `/api-keys`, `/webhooks`) redirect to `/dashboard/settings#` so external links keep working.
Test plan