Skip to content

feat: add 2-line description preview with Show more/less toggle in Ma…#13

Merged
ccchow merged 3 commits intomainfrom
feature/description-2line-preview
Feb 27, 2026
Merged

feat: add 2-line description preview with Show more/less toggle in Ma…#13
ccchow merged 3 commits intomainfrom
feature/description-2line-preview

Conversation

@ccchow
Copy link
Owner

@ccchow ccchow commented Feb 27, 2026

…croNodeCard

Replace single-line truncation with line-clamp-2 preview and inline expand/collapse toggle in both collapsed and expanded card views. Uses useRef + useEffect overflow detection to conditionally show toggle. Expanded content renders full markdown via MarkdownContent. Also adds AgentBadge support, disabled button tooltips, and accessibility improvements.

Summary

Brief description of the changes in this PR.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Refactor (code change that neither fixes a bug nor adds a feature)
  • Documentation update
  • Breaking change (fix or feature that would cause existing functionality to change)

Testing Done

Describe the tests you ran to verify your changes. Provide instructions so reviewers can reproduce.

Checklist

  • I have tested my changes locally (npm run dev)
  • Backend tests pass (cd backend && npx vitest run)
  • Frontend tests pass (cd frontend && npx vitest run)
  • TypeScript compiles without errors (npx tsc --noEmit in both packages)
  • Lint passes (npm run lint)
  • I have updated documentation if needed
  • My changes don't break existing session data or the four-layer data model

ccchow and others added 3 commits February 26, 2026 19:30
…croNodeCard

Replace single-line truncation with line-clamp-2 preview and inline
expand/collapse toggle in both collapsed and expanded card views.
Uses useRef + useEffect overflow detection to conditionally show toggle.
Expanded content renders full markdown via MarkdownContent. Also adds
AgentBadge support, disabled button tooltips, and accessibility improvements.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ix CI typecheck

AgentType, AgentBadge, and blueprintAgentType were referenced in the committed
MacroNodeCard.tsx but their source files (AgentSelector.tsx, api.ts AgentType export)
were not included in this feature branch, causing TypeScript compilation failures in CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ccchow ccchow merged commit 5001d9a into main Feb 27, 2026
4 checks passed
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