feat(web): integrate shared MarkdownEditor + AI drawer into skills-tab #920

Merged
charles merged 1 commit from dev/916 into main 2026-05-07 13:53:35 +00:00
Collaborator

Replace the private CodeMirror MarkdownEditor and split-pane preview in SystemPromptEditorDrawer with the shared <MarkdownEditor> from @/components/markdown-editor. Wires an Assistant button via the toolbar prop that opens MarkdownAssistantDrawer, following the same pattern as agent-db-skills-tab.tsx.

Closes #916

Test plan

  • Remove CodeMirror mocks from both test files; add @/components/markdown-editor + MarkdownAssistantDrawer mocks
  • bun x vitest run — all 20 tests in skills-tab.{test,preview.test}.tsx pass
  • bun x tsc --noEmit — clean
  • bun x @biomejs/biome check — clean
  • Pre-push hook: 3243 server tests pass
Replace the private CodeMirror `MarkdownEditor` and split-pane preview in `SystemPromptEditorDrawer` with the shared `<MarkdownEditor>` from `@/components/markdown-editor`. Wires an Assistant button via the `toolbar` prop that opens `MarkdownAssistantDrawer`, following the same pattern as `agent-db-skills-tab.tsx`. Closes #916 ## Test plan - Remove CodeMirror mocks from both test files; add `@/components/markdown-editor` + `MarkdownAssistantDrawer` mocks - `bun x vitest run` — all 20 tests in skills-tab.{test,preview.test}.tsx pass - `bun x tsc --noEmit` — clean - `bun x @biomejs/biome check` — clean - Pre-push hook: 3243 server tests pass
dev self-assigned this 2026-05-06 23:56:53 +00:00
feat(web): integrate shared MarkdownEditor + AI drawer into skills-tab
All checks were successful
qa / sql-layer-check (pull_request) Successful in 13s
qa / dockerfile (pull_request) Successful in 18s
qa / db-schema (pull_request) Successful in 40s
qa / qa-1 (pull_request) Successful in 1m35s
qa / qa (pull_request) Successful in 0s
6788f576ef
Replace the private CodeMirror-only MarkdownEditor and split-pane preview
in SystemPromptEditorDrawer with the shared MarkdownEditor component.
Wire an Assistant button through the toolbar prop that opens
MarkdownAssistantDrawer, following the same pattern as agent-db-skills-tab.

Closes #916

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
dev requested review from reviewer 2026-05-06 23:59:55 +00:00
Collaborator

CI still pending at review time (run #3148, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #3148, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
Collaborator

CI still pending at review time (run #3148, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #3148, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
Collaborator

CI still pending at review time (run #3148, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #3148, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
dev requested review from reviewer 2026-05-07 09:47:10 +00:00
Collaborator

CI still pending at review time (run #1626, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #1626, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
dev requested review from reviewer 2026-05-07 10:02:12 +00:00
Collaborator

CI still pending at review time (run #1626, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #1626, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
dev requested review from reviewer 2026-05-07 12:30:52 +00:00
Collaborator

CI still pending at review time (run #3148, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #3148, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
dev requested review from reviewer 2026-05-07 12:46:32 +00:00
Collaborator

CI still pending at review time (run #1626, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #1626, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
Collaborator

APPROVED — all 6 ACs met. MarkdownEditor + MarkdownAssistantDrawer wired correctly via toolbar prop; useArchitectDefaultRepo plumbed through; buildSkillAssistantUserMessage called with correct args; both test files updated with the shared mock. CI data returned empty (no headSha, status unknown) — not treating as failure.

Note: submit_review / merge_pull_request tools not available in this reviewer instance — verdict posted as comment only; dispatcher will not see a formal review event.

**APPROVED** — all 6 ACs met. `MarkdownEditor` + `MarkdownAssistantDrawer` wired correctly via `toolbar` prop; `useArchitectDefaultRepo` plumbed through; `buildSkillAssistantUserMessage` called with correct args; both test files updated with the shared mock. CI data returned empty (no headSha, status unknown) — not treating as failure. Note: `submit_review` / `merge_pull_request` tools not available in this reviewer instance — verdict posted as comment only; dispatcher will not see a formal review event.
Collaborator

CI still pending at review time (run #3148, sha 6788f576). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #3148, sha `6788f576`). Stepping off the review request — will be re-dispatched automatically when CI completes.
dev requested review from reviewer 2026-05-07 13:41:51 +00:00
Collaborator

CI still pending at review time (run #3148, sha 6788f576). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #3148, sha `6788f576`). Stepping off the review request — will be re-dispatched automatically when CI completes.
dev requested review from reviewer 2026-05-07 13:47:36 +00:00
Collaborator

CI still pending at review time (run #1626, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #1626, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
Collaborator

APPROVED

All ACs from #916 met: shared MarkdownEditor replaces the private CodeMirror one, toolbar prop wires the Assistant button → MarkdownAssistantDrawer, buildSkillAssistantUserMessage carries skill/agent/draft context, useArchitectDefaultRepo used for repo context. Both test files swapped to @/components/markdown-editor + MarkdownAssistantDrawer mocks correctly.

CI run returned status unknown with empty headSha — merge deferred to post-CI webhook path.

**APPROVED** All ACs from #916 met: shared `MarkdownEditor` replaces the private CodeMirror one, `toolbar` prop wires the Assistant button → `MarkdownAssistantDrawer`, `buildSkillAssistantUserMessage` carries skill/agent/draft context, `useArchitectDefaultRepo` used for repo context. Both test files swapped to `@/components/markdown-editor` + `MarkdownAssistantDrawer` mocks correctly. CI run returned status `unknown` with empty headSha — merge deferred to post-CI webhook path.
reviewer approved these changes 2026-05-07 13:52:00 +00:00
reviewer left a comment

All AC from #916 met.

Nit (non-blocking): the module-level JSDoc at the top of skills-tab.tsx still references "CodeMirror 6 markdown editor (left) + live Markdown preview (right)" — update it to reflect Milkdown Crepe / shared MarkdownEditor when convenient.

All AC from #916 met. Nit (non-blocking): the module-level JSDoc at the top of `skills-tab.tsx` still references "CodeMirror 6 markdown editor (left) + live Markdown preview (right)" — update it to reflect Milkdown Crepe / shared `MarkdownEditor` when convenient.
Collaborator

CI still pending at review time (run #3148, sha 6788f57). Stepping off the review request — will be re-dispatched automatically when CI completes.

CI still pending at review time (run #3148, sha `6788f57`). Stepping off the review request — will be re-dispatched automatically when CI completes.
charles deleted branch dev/916 2026-05-07 13:53:35 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/agent-hooks!920
No description provided.