Skip to content

(MOT-4260) feat(memory,console): ship the memory page as injectable console UI - #611

Merged
rohitg00 merged 1 commit into
mainfrom
feat/memory-injectable-ui
Jul 28, 2026
Merged

(MOT-4260) feat(memory,console): ship the memory page as injectable console UI#611
rohitg00 merged 1 commit into
mainfrom
feat/memory-injectable-ui

Conversation

@rohitg00

Copy link
Copy Markdown
Contributor

What

Moves the console's memory page to an injectable UI shipped by the memory worker, per docs/sops/injectable-console-ui.md (state worker as the reference). Part of the console injectable-UI migration (MOT-4256).

memory/ui (injectable)

  • page.tsx: setup(host) registers the memory page (#/ext/memory, nav label memory).
  • src/page/: banks rail, memories/recall/rules panels, and the graph ported to @iii-dev/console-ui + host.iii.trigger; useMemoryLive re-subscribes on memory::item-changed / memory::bank-changed (tab-scoped, unmount cleanup). Rule/markdown editing uses the shared CodeEditor (no bundled editor). Inline SVG icons.
  • styles.css scoped [data-iii-ui="memory"], tokens only, 0 unscoped selectors. build.mjs esbuild with the five shared externals.
  • Rust (binary worker): iii-console-ui crate, ConsoleUi::new("memory").script(...).style(...).register(&iii); build.rs respects SKIP_UI_BUILD. pnpm-workspace.yaml joins memory/ui.

console (deletions)

  • Deleted pages/Memory/ + hooks/use-memory-events.ts; edited App.tsx, use-hash-route.ts, nav-options.ts(+test). Kept the chat shell's memory-bank selector (memoryAvailable on context, used by ChatView). No leftover memory-page refs.

Verification

  • worker: cargo build / fmt / clippy / test (72 lib incl. 3 new ui:: tests + 6 schema, 0 failed).
  • ui: tsc + esbuild build clean (dist/page.js, dist/styles.css).
  • console: tsc -b exit 0, biome clean, nav-options tests 5/5.

Closes MOT-4260.

@vercel

vercel Bot commented Jul 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
workers Ready Ready Preview, Comment Jul 28, 2026 11:15am
workers-tech-spec Ready Ready Preview, Comment Jul 28, 2026 11:15am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@rohitg00, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 026d771c-b187-4d42-a346-4f1a62237468

📥 Commits

Reviewing files that changed from the base of the PR and between a88137b and 938855b.

⛔ Files ignored due to path filters (2)
  • memory/Cargo.lock is excluded by !**/*.lock
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (27)
  • console/web/src/App.tsx
  • console/web/src/hooks/use-hash-route.ts
  • console/web/src/hooks/use-memory-events.ts
  • console/web/src/lib/nav-options.test.ts
  • console/web/src/lib/nav-options.ts
  • console/web/src/pages/Memory/index.tsx
  • memory/Cargo.toml
  • memory/build.rs
  • memory/src/lib.rs
  • memory/src/main.rs
  • memory/src/ui.rs
  • memory/ui/build.mjs
  • memory/ui/package.json
  • memory/ui/page.tsx
  • memory/ui/src/page/BankRail.tsx
  • memory/ui/src/page/MemoriesPanel.tsx
  • memory/ui/src/page/MemoryGraph.tsx
  • memory/ui/src/page/ModeToggle.tsx
  • memory/ui/src/page/RecallPanel.tsx
  • memory/ui/src/page/RulesPanel.tsx
  • memory/ui/src/page/icons.tsx
  • memory/ui/src/page/index.tsx
  • memory/ui/src/page/memory-data.ts
  • memory/ui/src/page/useMemoryLive.ts
  • memory/ui/styles.css
  • memory/ui/tsconfig.json
  • pnpm-workspace.yaml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/memory-injectable-ui

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

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

skill-check — worker

0 verified, 49 skipped (no docs/).

Layer Result
structure
vale
ai
render

Four for four. Nicely done.

@rohitg00

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@rohitg00
rohitg00 merged commit ac086c6 into main Jul 28, 2026
19 checks passed
@rohitg00
rohitg00 deleted the feat/memory-injectable-ui branch July 28, 2026 13:42
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