feat(web): Add Linear issue link card UI for chat responses#1060
feat(web): Add Linear issue link card UI for chat responses#1060
Conversation
- Add Linear logo SVG asset - Create LinearIssueCard component with card-style UI showing: - Linear logo - Issue identifier (e.g. SOU-818) in monospace font - Humanized title from URL slug - External link icon - Add custom anchor renderer to MarkdownRenderer that detects Linear issue URLs and renders them as cards instead of plain links - Regular links continue to work normally with new-tab behavior Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
WalkthroughThis PR introduces a feature that displays Linear issue links in chat responses as rich card-style UI components with Linear logo, identifier, and title instead of plain hyperlinks. Three files are modified: CHANGELOG.md documents the feature, a new LinearIssueCard component renders the card UI, and the markdown renderer detects Linear issue URLs and renders them using the new component. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
Overview
When Ask Sourcebot generates a response that references a Linear issue (i.e., a
linear.applink), the link now renders as a rich card-style UI instead of a plain markdown hyperlink.Changes
packages/web/public/linear.svg) - Using the official Linear logomark withcurrentColorfor theme supportLinearIssueCardcomponent (packages/web/src/features/chat/components/chatThread/linearIssueCard.tsx) - Card-style UI showing:SOU-818) in monospace fontMarkdownRenderer- Detects Linear issue URLs with patternhttps://linear.app/<org>/issue/<IDENTIFIER>/<slug>and renders them as cardsScreenshots
Linear Issue Card Rendered in Chat
Linear issue card rendered in chat
Card Details (Zoomed)
Zoomed view showing Linear logo, identifier, title, and external link icon
Hover State
Card hover state showing the full Linear URL
Acceptance Criteria
SOU-818), and humanized titledark:invert)Testing Notes
To test with an LLM, add an Anthropic model to your
config.json:{ "models": [ { "provider": "anthropic", "model": "claude-sonnet-4-20250514", "displayName": "Claude Sonnet 4" } ] }And ensure
ANTHROPIC_API_KEYis set in your environment or.env.development.local.Fixes SOU-823
To show artifacts inline, enable in settings.
Linear Issue: SOU-823
Summary by CodeRabbit