Skip to content

fix(staged): resolve hashtag badge showing raw IDs instead of titles#636

Merged
matt2e merged 4 commits intomainfrom
id-showing-in-hashtag-badge
Apr 16, 2026
Merged

fix(staged): resolve hashtag badge showing raw IDs instead of titles#636
matt2e merged 4 commits intomainfrom
id-showing-in-hashtag-badge

Conversation

@matt2e
Copy link
Copy Markdown
Contributor

@matt2e matt2e commented Apr 15, 2026

Summary

  • Fix hashtag badges in BranchCard timeline to resolve titles properly by splitting buildBranchHashtagItems into reactive timeline-derived items and once-loaded project note items
  • Export timelineToHashtagItems and projectNotesToHashtagItems for direct use in BranchCard
  • Remove redundant "Review of" prefix in hashtag badge fallback for reviews
  • Render hashtag badge HTML in BranchTimeline rows when hashtag tokens are present

Test plan

  • Verify hashtag badges in timeline rows display resolved titles instead of raw IDs
  • Verify review hashtag badges show commit SHA without "Review of" prefix
  • Confirm project note hashtag badges still resolve correctly

🤖 Generated with Claude Code

@matt2e matt2e requested review from baxen and wesbillman as code owners April 15, 2026 10:07
matt2e and others added 4 commits April 16, 2026 09:36
hashtagItems were loaded once at mount via a separate API call and never
refreshed, so references to items created after mount showed raw IDs
instead of titles.  Derive hashtagItems reactively from the timeline
state that is already kept up-to-date, and render badges for pending
session items that previously skipped titleHtml entirely.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove unused ProjectNote type import from BranchCard.svelte
- Export projectNotesToHashtagItems from hashtagItems.ts and reuse it
  in BranchCard.svelte instead of duplicating the filter+map logic

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…lback

The badge already renders with a "Review:" label prefix, so the fallback
title only needs the short SHA — not "Review of <SHA>" which produced
the redundant "Review: Review of abc1234".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the inline filter+map logic in BranchCard.svelte with a call to
the already-exported projectNotesToHashtagItems helper from
hashtagItems.ts, completing the refactor stated in commit 1475783.
@matt2e matt2e force-pushed the id-showing-in-hashtag-badge branch from 6f4c17f to 4a8327d Compare April 16, 2026 03:05
@matt2e matt2e merged commit a353c6d into main Apr 16, 2026
5 checks passed
@matt2e matt2e deleted the id-showing-in-hashtag-badge branch April 16, 2026 03:26
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