Skip to content

Render nodespace:// URIs as rich node cards in AI chat - #1047

Merged
malibio merged 3 commits into
mainfrom
feature/issue-1037-rich-node-cards
Apr 5, 2026
Merged

malibio merged 3 commits into
mainfrom
feature/issue-1037-rich-node-cards

Conversation

@malibio

@malibio malibio commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

Closes #1037

malibio and others added 3 commits April 5, 2026 17:27
…loses #1037)

Replace plain styled links with rich inline node cards that show type
icon, node title, type badge, and task status. Uses placeholder spans
in the marked.js renderer that are hydrated with Svelte 5 mount() to
render NodeCardInline components. Cards are clickable via the existing
global click handler.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Address code review:
- Add createLogger to node-card-inline.svelte per project logging policy
- Add tests verifying script tag handling and quote escaping in display text

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
…turn

Address review nits:
- Merge render + cleanup into one $effect with return cleanup function
- Use first line of content for title instead of arbitrary slice(0, 80)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@malibio
malibio merged commit e959916 into main Apr 5, 2026
@malibio
malibio deleted the feature/issue-1037-rich-node-cards branch April 5, 2026 16:11
@malibio malibio mentioned this pull request Apr 5, 2026
12 tasks
malibio added a commit that referenced this pull request Jun 22, 2026
* feat: Render nodespace:// URIs as rich inline node cards in AI chat (closes #1037)

Replace plain styled links with rich inline node cards that show type
icon, node title, type badge, and task status. Uses placeholder spans
in the marked.js renderer that are hydrated with Svelte 5 mount() to
render NodeCardInline components. Cards are clickable via the existing
global click handler.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* fix: Add logger to NodeCardInline and XSS safety tests

Address code review:
- Add createLogger to node-card-inline.svelte per project logging policy
- Add tests verifying script tag handling and quote escaping in display text

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

* refactor: Consolidate dual $effect into single effect with cleanup return

Address review nits:
- Merge render + cleanup into one $effect with return cleanup function
- Use first line of content for title instead of arbitrary slice(0, 80)

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
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.

Render nodespace:// URIs as rich node cards in AI chat

1 participant