feat(intelligence): strip Memory tab to core view, hide analysis sub-pills#3397
Conversation
…pills Render MemoryWorkspace directly as the Memory tab body and drop the PillTabBar sub-tab switcher. The 8 internal analysis views (Diagram, Centrality, Cohesion, Associations, Freshness, Timeline, Paths, Namespaces) are no longer reachable from the Memory tab — their components are retained on disk (and still unit-tested) so they can be restored later. Removes the MemorySubTab type, allSubTabs, activeSubTab state, and now-unused imports. Closes tinyhumansai#3394
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesMemory Tab Simplification
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Summary
<MemoryWorkspace />directly as the Memory tab body and remove thePillTabBarsub-tab switcher — no single-item pill bar in any build.MemorySubTabtype,allSubTabs,activeSubTabstate, and unused imports (PillTabBar,useState,useT,IS_DEV, and the 8 tab components).MemorySection.test.tsx(100% coverage of the changed line): asserts the core workspace renders,onToastis forwarded, and no analysis pills are present.memory.tab.*) left in place as the issue permits — harmless and CI parity (pnpm i18n:check) stays green; no new/untranslated strings introduced.Test plan
pnpm typecheck(tsc --noEmit) passespnpm lint— 0 errors (pre-existing warnings only, none in changed files)prettier --checkpasses on changed filesMemorySection.test.tsxpasses (2/2); 100% line coverage onMemorySection.tsxcomponents/intelligence+Intelligencepage (which mocksMemorySection)pnpm i18n:check(parity) passes — no new keysNotes
--no-verify: the local pre-push hook'slint:commands-tokensstep requires theripgrep(rg) binary, which is unavailable in this environment (only a shell-function shim exists). That check scanssrc/components/commands/— untouched by this change — andi18n:english:checkalready fails identically on cleanmain(~1299 pre-existing untranslated strings, unchanged by this PR). All checks relevant to the changed files pass; CI will run the full suite.Closes #3394
Summary by CodeRabbit
Tests
Refactor