Skip to content

feat: add status badge to Linear ticket selector#1137

Merged
arnestrickmann merged 2 commits intomainfrom
emdash/add-status-to-linear-tickets-5b7
Feb 27, 2026
Merged

feat: add status badge to Linear ticket selector#1137
arnestrickmann merged 2 commits intomainfrom
emdash/add-status-to-linear-tickets-5b7

Conversation

@arnestrickmann
Copy link
Contributor

Summary

  • Extract LinearStatusPill into a reusable component from LinearIssuePreviewTooltip
  • Render the status badge inline in the LinearIssueSelector dropdown
  • Add color field to Linear status type for proper badge coloring
  • Simplify LinearStatusPill styling and pass status color from the Linear API

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Building Building Preview, Comment Feb 27, 2026 0:52am

Request Review

@greptile-apps
Copy link

greptile-apps bot commented Feb 27, 2026

Greptile Summary

Extracted LinearStatusPill into a reusable component and added status badges to the Linear issue selector dropdown. The new component uses actual colors from the Linear API instead of hardcoded status type mappings, providing a more accurate and flexible visual representation.

  • Extracted status pill from LinearIssuePreviewTooltip into standalone LinearStatusPill component
  • Added color field to LinearStateRef type and GraphQL queries
  • Rendered status badges inline in LinearIssueSelector dropdown items
  • Simplified styling to use muted theme with colored dot indicator
  • Maintained null-safety with proper optional chaining

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • Clean refactoring with proper type safety, consistent implementation across all files, and improved code reusability. No breaking changes or logical issues detected.
  • No files require special attention

Important Files Changed

Filename Overview
src/renderer/components/LinearStatusPill.tsx New reusable component that displays Linear status with a colored dot from the API
src/renderer/types/linear.ts Added color field to LinearStateRef interface for status color support
src/main/services/LinearService.ts Updated GraphQL queries to fetch color field from Linear API for both initial fetch and search
src/renderer/components/LinearIssuePreviewTooltip.tsx Removed local StatusPill component and replaced with reusable LinearStatusPill
src/renderer/components/LinearIssueSelector.tsx Added status badge to dropdown items and adjusted title spacing to accommodate the badge

Last reviewed commit: a3627b0

@arnestrickmann arnestrickmann merged commit 5f55e2a into main Feb 27, 2026
5 checks passed
@arnestrickmann arnestrickmann deleted the emdash/add-status-to-linear-tickets-5b7 branch February 27, 2026 01:15
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