Skip to content

Superseded by #78: hide wiki UI (do not merge) - #77

Closed
jginorio wants to merge 2 commits into
mainfrom
cursor/hide-wiki-ui-6639
Closed

jginorio wants to merge 2 commits into
mainfrom
cursor/hide-wiki-ui-6639

Conversation

@jginorio

@jginorio jginorio commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Why

Wiki auto-gen is paused / undecided. Operator chrome still treated wiki as a live product surface (nav, Ask/Go to wiki, Settings → Advanced wiki model). That confused people. Retrieval stays raw-first; MCP search_knowledge already excludes wiki/.

Jaime: hide wiki from the UI; wiki settings belong under the wiki tab, not Advanced.

What changed

Hide all operator-facing wiki UI behind WIKI_UI_ENABLED in web/lib/wiki-ui.ts (default false). Server/API, wiki-generator-ts/, and CDK wiki image are unchanged. Schedules / AUTO_TRIGGER_CODE_WIKI are not touched.

Entry points gated or removed

  • App nav Wiki (/wiki)
  • Sidebar Ask the brain (/wiki/ask) and Go to wiki
  • Direct /wiki, /wiki/ask, /wiki/settings → HTTP 307 to /knowledge (next.config.ts + layout backstop)
  • Settings sidebar Wiki regeneration (the disabled “soon” item)
  • Settings → Advanced Wiki model & API keys tab (and copy that said Advanced configures wiki generation)

Wiki settings home (for when we turn the flag back on)

Wiki model / BYO API-key controls moved from Settings → Advanced to /wiki/settings, colocated with web/app/wiki/. The wiki page toolbar has a Settings button. Settings → Advanced is embeddings-only.

How to re-enable later

Set WIKI_UI_ENABLED to true in web/lib/wiki-ui.ts. That restores Wiki nav, /wiki (no redirect), Ask the brain, and /wiki/settings. Do not hunt call sites. Do not flip EventBridge wiki schedule or AUTO_TRIGGER_CODE_WIKI as part of a UI re-enable.

Tests

  • web/ npm test — 117 passed (includes wiki-ui tests: flag off, nav omits Wiki, settings href is /wiki/settings)
  • next build — compiled successfully; TypeScript finished clean
  • Authenticated HTTP: /wiki, /wiki/ask, /wiki/settings307 /knowledge
  • Browser walkthrough: nav has Knowledge / Suggestions / Conflicts / Sources / Brains (no Wiki); Settings has no wiki section; Advanced is embeddings-only

wiki_ui_hidden_walkthrough.mp4
Knowledge nav without Wiki
Settings has no Wiki regeneration item
Advanced is embeddings only

Open in Web Open in Cursor 

Gate operator-facing wiki chrome behind WIKI_UI_ENABLED (default false):
nav, sidebar CTAs, and /wiki routes redirect to /knowledge. Move wiki
model/API-key settings out of Settings → Advanced onto /wiki/settings so
re-enabling the flag restores them with the wiki tab, not Advanced.

Co-authored-by: Jaime Ginorio <jaime.ginorio@finditpr.com>
@vercel

vercel Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
context101 Error Error Sep 15, 2026 10:38pm UTC

Layout-only Next redirect used a meta refresh (HTTP 200). Add next.config
redirects gated by the same WIKI_UI_ENABLED flag so /wiki, /wiki/ask, and
/wiki/settings return 307 to /knowledge.

Co-authored-by: Jaime Ginorio <jaime.ginorio@finditpr.com>
@jginorio
jginorio marked this pull request as ready for review September 15, 2026 22:38
@jginorio

Copy link
Copy Markdown
Owner Author

Superseded by #78, which removes Wiki and Conflicts from the shipping surface (nav, routes, retrieve/ingest/MCP evidence) instead of hiding wiki behind WIKI_UI_ENABLED.

Useful bits from this PR (Settings → Advanced embeddings-only, wiki settings at /wiki/settings) are folded into #78 and the isolated restore #79 (cursor/wiki-isolated-de63). Conflicts isolate: #80.

Please close this PR without merging.

jginorio added a commit that referenced this pull request Sep 15, 2026
Wiki and Conflicts off the shipping surface. Isolated restore: #79 (wiki), #80 (conflicts). Supersedes #77.

Verified: web 103 tests, cdk 29, search_filter 11, tsc/build green. Vercel status on public repo is stale post-site/ removal.
@jginorio jginorio changed the title Hide wiki from admin UI until generation is decided Superseded by #78: hide wiki UI (do not merge) Sep 15, 2026
@jginorio jginorio closed this Sep 15, 2026
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.

2 participants