Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 22 additions & 20 deletions AGENT_BACKLOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cognitive Mesh — Agent Backlog

> Prioritized, actionable work items. Backend is 100% complete (70/70 items). Frontend Phase 13 complete (4/4), Phase 14 in progress (6/6 core items done). Remaining 27 frontend items + 4 Phase 14b items + 6 DevOps evaluation tickets across Phases 14b–18.
> Prioritized, actionable work items. Backend is 100% complete (70/70 items). Frontend Phase 13 (4/4), Phase 14 (6/6), Phase 14b ✓ (4/4). Remaining 25 frontend items + 6 DevOps evaluation tickets across Phases 15–18.

---

Expand Down Expand Up @@ -289,15 +289,15 @@
|----------|-------|------|-----------|
| P0-CRITICAL (frontend) | 4 | 4 | **0** |
| P1-HIGH (frontend infra) | 6 | 6 | **0** |
| P1-HIGH (UI library — 14b) | 4 | 0 | **4** |
| P1-HIGH (UI library — 14b) | 4 | 4 | **0** |
| P1-HIGH (widget PRDs) | 5 | 0 | **5** |
| P2-MEDIUM (widgets + nav) | 8 | 2 | **6** |
| P2-MEDIUM (widgets + nav) | 8 | 4 | **4** |
| P2-MEDIUM (security) | 1 | 0 | **1** |
| P2-MEDIUM (CI/CD) | 5 | 0 | **5** |
| P2-MEDIUM (testing) | 5 | 0 | **5** |
| P3-LOW (features) | 5 | 0 | **5** |
| DEVOPS (evaluation) | 6 | 0 | **6** |
| **Total remaining** | **49** | **12** | **37** |
| **Total remaining** | **49** | **18** | **31** |

---

Expand Down Expand Up @@ -382,28 +382,30 @@

---

### Phase 14b — UI Component Library Integration (NEXT)
### Phase 14b — UI Component Library Integration ✓ COMPLETE

**Items:** FEUI-001, FEUI-002, FEUI-003, FEUI-004
**Goal:** Merge [CognitiveMeshUI](https://github.com/phoenixvc/CognitiveMeshUI) component library into this repo. Fix broken shadcn/ui components, import design tokens, optionally wire Storybook.
**Status:** Complete. All 169 files from CognitiveMeshUI accounted for (153 migrated, 4 removed dead code, 3 superseded, 7 IDE configs, 2 deduplicated).

| Item | Description | Key Work |
| ---- | ----------- | -------- |
| FEUI-001 | Fix or replace broken shadcn/ui components | Existing `components/ui/` has ~50 shadcn components but missing radix deps (TS errors). Either install missing `@radix-ui/*` packages or replace with CognitiveMeshUI's working copies. |
| FEUI-002 | Import design tokens | Bring over `tokens/` directory (colors, typography, spacing, dimensions) from CognitiveMeshUI. Integrate with Style Dictionary to generate CSS custom properties and Tailwind theme values. |
| FEUI-003 | Wire Storybook | Import `.storybook/` config from CognitiveMeshUI. Add stories for navigation, skeleton, and shadcn/ui components. Enables visual testing (Phase 17 FETEST-004). |
| FEUI-004 | Clean up duplicate/dead component code | Remove broken component copies, unused Bridge view components from old root `page.tsx`, and any redundant type definitions. Consolidate icon imports. |

**Source:** [phoenixvc/CognitiveMeshUI](https://github.com/phoenixvc/CognitiveMeshUI) — Next.js component library with shadcn/ui, design tokens (Style Dictionary), Storybook, Framer Motion. Last updated Nov 2025.
| Item | Description | Status |
| ---- | ----------- | ------ |
| FEUI-001 | Fix or replace broken shadcn/ui components | ✓ Done — All 48 shadcn/ui components working with 27 @radix-ui/* packages installed. Zero TS errors. |
| FEUI-002 | Import design tokens | ✓ Done — `tokens/` directory imported (colors, typography, spacing, dimensions, text, object-values). Style Dictionary v5 generates `build/css/_variables.css`. Imported in globals.css. |
| FEUI-003 | Wire Storybook | ✓ Done — Storybook v10 config (core + react-webpack5 + addon-links). 4 stories migrated. Addon alignment deferred (essentials bundled in v10 core). |
| FEUI-004 | Clean up duplicate/dead component code | ✓ Done — Removed BridgeHeader, FXModePanel, LayoutToolsPanel, VoiceFeedback (dead code). Deduplicated hooks (use-mobile, use-toast). Consolidated type definitions. |

**Approach:** Direct merge (not monorepo workspaces). CognitiveMeshUI is stale and this repo is the single deployable artifact.
**Additional work completed:**
- Tailwind CSS v3 → v4 migration (`@tailwindcss/postcss` + CSS-first `@config`)
- Next.js 16 SSR hardening (Suspense boundaries, `typeof window` guards, env fallbacks)
- Duplicate route conflict resolved (`/settings` root deleted, kept `(app)/settings`)

#### Gate → Phase 15

- [ ] `npx tsc --noEmit` passes with zero errors in `components/ui/`
- [ ] Design tokens generating CSS custom properties
- [ ] Storybook running locally (`npm run storybook`)
- [ ] No duplicate type definitions across stores/components
- [x] `npx tsc --noEmit` passes with zero errors

- [x] Design tokens generating CSS custom properties
- [~] Storybook running locally (config aligned to v10, addon version alignment deferred)
- [x] No duplicate type definitions across stores/components

---

Expand Down Expand Up @@ -514,4 +516,4 @@

---

*Updated: 2026-03-10 | Backend 100% complete (70/70). Frontend Phase 13 ✓, Phase 14 ✓ (6/6). Phase 14b next (CognitiveMeshUI integration). Remaining: 37 items across Phases 14b–18.*
*Updated: 2026-03-11 | Backend 100% complete (70/70). Frontend Phase 13 ✓, Phase 14 ✓ (6/6), Phase 14b ✓ (4/4). Phase 15 next (Widgets & User Settings). Remaining: 31 items across Phases 15–18.*
7 changes: 1 addition & 6 deletions src/UILayer/web/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,15 @@ const config: StorybookConfig = {
stories: [
"../src/**/*.mdx",
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)",
"../components/**/*.stories.@(js|jsx|mjs|ts|tsx)"
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-webpack5",
options: {},
},
docs: {
autodocs: "tag",
},
docs: {},
webpackFinal: async (config) => {
// Remove custom rules for .css and .ts(x) files
// Add Babel loader for TypeScript/TSX
Expand Down
Loading
Loading