Skip to content

feat(help-center): launch the feature and remove the HELP_CENTER flag - #269

Merged
G3root merged 2 commits into
mainfrom
feat/launch-help-center
Nov 27, 2026
Merged

G3root merged 2 commits into
mainfrom
feat/launch-help-center

Conversation

@G3root

@G3root G3root commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

The help center — its sections and articles — was the last product surface behind a deployment feature flag. This removes HELP_CENTER rather than flipping it, so every route serves directly and site.help_center_visibility remains the workspace-level switch.

What changed

  • Removed HELP_CENTER and packages/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.
  • Forked the retention sweep unconditionally, since reads now write counters and search buckets on every deployment.
  • Kept site.help_center_visibility as the workspace switch: a hidden help center still answers the same 404s on the portal, enabled: false in the widget, and stays unreachable through the Markdown mirror and MCP.
  • Deleted the now-unused HelpCenterUnavailable component and useFeatureFlag/FeatureFlagGuard hook, and dropped their package exports.
  • Rewrote the rollout section of docs/help-center.md and removed the three flag-refusal test cases.

Behavior

  • Dashboard: the Help center nav entry, mobile tab, settings group, routes and insights tab are always available.
  • Public board: help center pages, sitemap.xml, llms.txt, the Markdown mirror and POST /mcp are served when the workspace's visibility is PUBLIC; a hidden help center remains indistinguishable from an absent one.
  • Widget: the Help tab appears only when the workspace is public and has published articles, as before.

Validation

  • pnpm check — 32/32 tasks
  • @feeblo/domain — 1680 tests pass
  • @feeblo/web — 300 tests pass
  • No migration, dependency, credential or enforcement change.

Summary by CodeRabbit

  • New Features
    • Help center links and pages are available across navigation, dashboard, settings, and public pages without a deployment-level feature toggle.
    • Public articles, widget suggestions, and article feedback follow workspace visibility and existing access permissions. Hidden help centers and articles are not shown publicly.
  • Documentation
    • Updated Help center guidance to reflect its always-on availability and workspace-level visibility controls.

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.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request removes the deployment-wide Help Center feature flag and its gates. Dashboard and public surfaces no longer check the flag. Public availability continues to depend on site visibility, and Help Center retention scheduling now runs unconditionally.

Changes: Help Center flag removal

Layer / File(s) Summary
Remove domain gates and flag contract
packages/domain/src/feature-flags.ts, packages/domain/src/help-center/flag.ts, packages/domain/src/help-center-*/handlers*, packages/domain/src/widget/*, packages/domain/package.json, apps/server/src/app/program.ts
The domain package removes the Help Center flag and its public policy gate. Article, topic, and feedback handlers retain their other policies. Widget availability uses site lookup and PUBLIC visibility. Retention scheduling no longer checks the flag.
Use site visibility on public surfaces
apps/public-feature-board/.../navbar.tsx, apps/web/src/lib/*, apps/web/src/portal/help-center/*, apps/web/src/lib/public-board-data.test.ts, docs/help-center.md
Public board pages, help-center endpoints, and portal pages no longer check the deployment flag. Public access uses site visibility. Tests cover hidden help-center index paths, public index paths, and hidden article paths. Documentation describes visibility-based availability and unconditional retention.
Remove dashboard feature-flag gates
apps/web/src/dashboard/..., apps/web/src/routes/_dashboard/.../help-center/*, apps/web/src/routes/_dashboard/.../insights/help-center.tsx, apps/web/src/routes/_dashboard/.../settings/help-center-privacy.tsx, packages/web-shared/package.json, packages/web-shared/src/hooks/use-feature-flag.ts
Dashboard navigation, help-center routes, and settings pages no longer use the deployment flag or unavailable-state component. The feature-flag hook and guard are removed.

Estimated code review effort: 3 (Moderate) | ~30 minutes

Change: Feature

Possibly related PRs

  • G3root/feeblo#252: Introduced the HELP_CENTER feature flag and the enforcement removed by this pull request.
  • G3root/feeblo#266: Added Help Center Insights navigation and redirects that this pull request removes.
  • G3root/feeblo#268: Added Markdown mirror and MCP endpoint gating that this pull request changes.
Merge Risk: Minimal · up to 23235

This change removes the deployment-level Help Center flag so the feature is always on, with workspace visibility as the only switch. Hidden workspaces still return not-found. No actionable merge risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names a feature launch and the removal of the HELP_CENTER flag. The raw summary confirms that the flag, its module, and its gates are removed across the web app, domain package, and docs, so…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names a feature launch and the removal of the HELP_CENTER flag. The raw summary confirms that the flag, its module, and its gates are removed across the web app, domain package, and docs, so the title matches the main change. The objectives also describe a hidden-index 404 fix, which the title does not mention, but that is a secondary aspect. The title uses a conventional commit prefix and is a single sentence of 9 words.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 689abb61-da45-4abd-be1b-1f2e82348fbf
Commits

Reviewing files that changed from the base of the PR and between a3251aa and 23235a0.

Files selected for processing: 3

  • apps/web/src/lib/public-board-data.test.ts
  • apps/web/src/lib/public-board-data.ts
  • apps/web/src/portal/help-center/help-center-page.tsx

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; the hidden help-center index issue is fixed.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the hidden help-center index issue is fixed.

Summary

Removes HELP_CENTER so the help center no longer needs a deployment flag.

  • Help center requests no longer need a deployment-wide switch.
  • Public help pages follow each workspace’s visibility setting.
  • Dashboard staff can open the Help center on every deployment.
  • The widget can show help on any deployment with public articles.
  • The server runs the Help center retention sweep on every deployment.

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.
@G3root
G3root merged commit 52482f2 into main Nov 27, 2026
11 checks passed
@G3root
G3root deleted the feat/launch-help-center branch November 27, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant