Skip to content

Commit 251697b

Browse files
committed
docs: clarify feature flag registration and admin UI behavior
1 parent bc93a2e commit 251697b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

nuxt/content/handbook/engineering/frontend/ui-conventions/feature-flags.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ the team key `teamHttpSecurity`.
6868
### Platform keys
6969

7070
Register the key on the backend with `app.config.features.register(name, value, isPublic)`.
71-
Most platform features are registered in `forge/ee/lib/index.js` behind the
72-
relevant license check:
71+
Registrations live under `forge/ee/lib/`, behind the relevant license check.
72+
Many sit together in `forge/ee/lib/index.js`; features with a module of their own
73+
register there instead, as Tables does in `forge/ee/lib/tables/index.js`:
7374

7475
```js
7576
app.config.features.register('tables', true, true)
@@ -98,8 +99,9 @@ const featureNames = {
9899

99100
That file is imported directly by the admin Team Type edit dialog
100101
(`frontend/src/pages/admin/TeamTypes/dialogs/TeamTypeEditDialog.vue`), which
101-
renders one checkbox per entry. A team key that isn't in `featureList` won't
102-
appear there, so an admin will have no way to toggle it.
102+
renders a checkbox for each entry available on this installation. A team key
103+
that isn't in `featureList` won't appear there, so an admin will have no way to
104+
toggle it.
103105

104106
## How the checks combine
105107

0 commit comments

Comments
 (0)