Repository navigation
feat(help-center): launch the feature and remove the HELP_CENTER flag - #269
Conversation
The help center shipped with every surface behind `HELP_CENTER`, default off: the dashboard nav, routes and settings, the portal pages, `sitemap.xml`, `llms.txt`, the widget's help endpoints, the Markdown mirror and MCP all refused while the flag was closed. The dashboard, portal, widget and agent surfaces are complete, so the flag is removed rather than flipped. - Drop `HELP_CENTER` and `packages/domain/src/help-center/flag.ts`; every handler, route, nav entry and settings section now serves directly. - Fork the retention sweep unconditionally, because reads always write a counter or a search bucket now. - Keep `site.help_center_visibility` as the workspace's switch: a hidden help center still makes the portal, widget and agent surfaces answer as if it did not exist. - Delete the now-unused `HelpCenterUnavailable` component and `useFeatureFlag` hook, and drop their package exports. - Rewrite the rollout section of `docs/help-center.md` and remove the flag-refusal tests from the three handler suites. No migration, dependency, credential or enforcement change. `pnpm check` passes 32/32; the domain suite passes 1680 tests and the web suite 300.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Medium impact] The PR appears safe to merge; the hidden help-center index issue is fixed. SummaryRemoves
Reviews (2) · Last reviewed commit: "fix(help-center): 404 a hidden help cent..." · Reviewed by Greptile |
… it empty `resolvePageContent` returns its generic success for every path that is not a detail route, so `/help` still rendered for a workspace with `help_center_visibility = HIDDEN`: the public reads refused with `PolicyDenied`, and `Result.getOrElse` turned those failures into empty lists, leaving a 200 page that said "No documentation yet". Reject the help center index — with or without the trailing slash, and under the internal `/s` prefix — before the generic success, and mirror the check in `HelpCenterPage` so a stale provider or a client transition cannot render the empty page either. Add a resolver test covering the hidden and public cases.
Summary
The help center — its sections and articles — was the last product surface behind a deployment feature flag. This removes
HELP_CENTERrather than flipping it, so every route serves directly andsite.help_center_visibilityremains the workspace-level switch.What changed
HELP_CENTERandpackages/domain/src/help-center/flag.ts. Every handler gate, dashboard nav/mobile/settings/insights guard, portal page, widget endpoint and agent endpoint now serves directly.site.help_center_visibilityas the workspace switch: a hidden help center still answers the same 404s on the portal,enabled: falsein the widget, and stays unreachable through the Markdown mirror and MCP.HelpCenterUnavailablecomponent anduseFeatureFlag/FeatureFlagGuardhook, and dropped their package exports.docs/help-center.mdand removed the three flag-refusal test cases.Behavior
sitemap.xml,llms.txt, the Markdown mirror andPOST /mcpare served when the workspace's visibility isPUBLIC; a hidden help center remains indistinguishable from an absent one.Validation
pnpm check— 32/32 tasks@feeblo/domain— 1680 tests pass@feeblo/web— 300 tests passSummary by CodeRabbit