Skip to content

feat(canvas): rewrite MemoryInspectorPanel to match backend API - #1127

Merged
molecule-ai[bot] merged 2 commits into
stagingfrom
feat/memory-inspector-panel
Apr 21, 2026
Merged

molecule-ai[bot] merged 2 commits into
stagingfrom
feat/memory-inspector-panel

Conversation

@molecule-ai

@molecule-ai molecule-ai Bot commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fixed MemoryInspectorPanel API endpoint from /workspace/memory to /memories (correct platform route)
  • Corrected field types to match backend API: id, content, scope, namespace (not key, value, etc.)
  • Added LOCAL/TEAM/GLOBAL scope tabs with proper filtering
  • Added namespace filter dropdown
  • Added delete by id functionality (handles DELETE /workspaces/:id/memories/:id)
  • Fixed TypeScript types

Bonus fixes (same branch, minimal)

Test plan

  • 27/27 canvas vitest tests pass
  • TypeScript build succeeds
  • Manual verify: open a workspace, check Memory Inspector, create/delete memories

🤖 Generated with Claude Code

@molecule-ai
molecule-ai Bot force-pushed the feat/memory-inspector-panel branch 3 times, most recently from 3def2ba to cd8a1eb Compare April 21, 2026 00:49
Molecule AI Core-UIUX and others added 2 commits April 21, 2026 01:28
Issue #909 (chunk 3 of #576).

The existing MemoryInspectorPanel used the wrong API endpoint
(/memory instead of /memories) and wrong field names (key/value/version
instead of id/content/scope/namespace/created_at). It also lacked
LOCAL/TEAM/GLOBAL scope tabs and a namespace filter.

Changes:
- Fix endpoint: GET /workspaces/:id/memories with ?scope= query param
- Fix MemoryEntry type to match actual API: id, content, scope,
  namespace, created_at, similarity_score
- Add LOCAL/TEAM/GLOBAL scope tabs
- Add namespace filter input
- Remove Edit functionality (no update endpoint in backend)
- Delete uses DELETE /workspaces/:id/memories/:id (by id, not key)
- Full rewrite of 27 tests to match new API and UI structure
- Uses ConfirmDialog (not native dialogs) for delete confirmation
- All dark zinc theme (no light colors)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
#1135 — TypeScript: make BudgetData.budget_used and WorkspaceMetrics
fields optional to match actual partial-response shapes from provisioning-
stuck workspaces. Runtime already guarded with ?? 0.

#1136 — provisiontimeout.go: replace misleading "check required env vars"
hint (preflight catches that case upfront) with accurate message about
container starting but failing to call /registry/register.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@molecule-ai
molecule-ai Bot force-pushed the feat/memory-inspector-panel branch from cd8a1eb to 9201179 Compare April 21, 2026 01:28
@molecule-ai
molecule-ai Bot merged commit ca46364 into staging Apr 21, 2026
0 of 7 checks passed
molecule-ai Bot added a commit that referenced this pull request Apr 21, 2026
* feat(canvas): rewrite MemoryInspectorPanel to match backend API

Issue #909 (chunk 3 of #576).

The existing MemoryInspectorPanel used the wrong API endpoint
(/memory instead of /memories) and wrong field names (key/value/version
instead of id/content/scope/namespace/created_at). It also lacked
LOCAL/TEAM/GLOBAL scope tabs and a namespace filter.

Changes:
- Fix endpoint: GET /workspaces/:id/memories with ?scope= query param
- Fix MemoryEntry type to match actual API: id, content, scope,
  namespace, created_at, similarity_score
- Add LOCAL/TEAM/GLOBAL scope tabs
- Add namespace filter input
- Remove Edit functionality (no update endpoint in backend)
- Delete uses DELETE /workspaces/:id/memories/:id (by id, not key)
- Full rewrite of 27 tests to match new API and UI structure
- Uses ConfirmDialog (not native dialogs) for delete confirmation
- All dark zinc theme (no light colors)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: tighten types + improve provision-timeout message (#1135, #1136)

#1135 — TypeScript: make BudgetData.budget_used and WorkspaceMetrics
fields optional to match actual partial-response shapes from provisioning-
stuck workspaces. Runtime already guarded with ?? 0.

#1136 — provisiontimeout.go: replace misleading "check required env vars"
hint (preflight catches that case upfront) with accurate message about
container starting but failing to call /registry/register.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Molecule AI Core-UIUX <core-uiux@agents.moleculesai.app>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@molecule-ai
molecule-ai Bot deleted the feat/memory-inspector-panel branch May 20, 2026 06:21
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.

0 participants