Skip to content

feat(staged): show hashtag dropdown items with subtitle layout#728

Merged
matt2e merged 5 commits into
mainfrom
hashtag-options-style
May 15, 2026
Merged

feat(staged): show hashtag dropdown items with subtitle layout#728
matt2e merged 5 commits into
mainfrom
hashtag-options-style

Conversation

@matt2e
Copy link
Copy Markdown
Contributor

@matt2e matt2e commented May 14, 2026

Summary

  • Refactors hashtag dropdown items to use a two-line subtitle layout instead of inline repo/branch context
  • Adds a subtitle field to HashtagItem for flexible secondary text (repo slug for timeline items, "Project note" for project notes)
  • Widens dropdown to 420px and aligns items to flex-start to accommodate the stacked layout

Test plan

  • Open hashtag dropdown in a session and verify items show title on the first line and subtitle below
  • Confirm timeline items (notes, commits, reviews, images) display the repo slug as subtitle
  • Confirm project notes display "Project note" as subtitle
  • Verify text truncation works correctly for both title and subtitle

🤖 Generated with Claude Code

@matt2e matt2e requested review from baxen and wesbillman as code owners May 14, 2026 07:38
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0a1449bcb1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 103 to 104
subtitle: repoSlug,
branchName,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include branch name in timeline subtitles

When the project-level hashtag picker includes multiple branches from the same repo, buildProjectHashtagItems still passes branch.branchName into timelineToHashtagItems, but the new subtitle uses only repoSlug and the dropdown no longer renders branchName separately. This regresses the previous repo · branch context, making items with the same or similar titles from different branches indistinguishable in the project hashtag dropdown.

Useful? React with 👍 / 👎.

matt2e and others added 5 commits May 15, 2026 17:00
Widen the hashtag dropdown from 340px to 420px and restructure each
option from a single-line layout (title + right-aligned context) to a
two-row layout with the subtitle below the title. Timeline items from
other repos show the repo slug as a subtitle, and project notes show
"Project note" as a subtitle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
Replace plain-text repo slug subtitles with the shared RepoLabel
component, which renders repo+subpath with contrast styling (muted
prefix, primary emphasis on last segment). Pass repoSubpath through
from ProjectRepo to HashtagItem so repos with subpaths (e.g.
block/builderbot / apps/staged) display correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Matt Toohey <contact@matttoohey.com>
Group hashtag suggestions by project notes, branch notes, commits, reviews, and images while preserving flat keyboard selection. Sort suggestions explicitly newest-first within each section and drop the generic project-note subtitle now covered by the section header.

Signed-off-by: Matt Toohey <contact@matttoohey.com>
Group autocomplete sections by project notes and repo/subpath instead of reference type. Remove per-row subtitles now that source context is carried by section headers, and pass repo context into branch-scoped hashtag lists where available.

Signed-off-by: Matt Toohey <contact@matttoohey.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@matt2e matt2e force-pushed the hashtag-options-style branch from 9b81091 to 985be38 Compare May 15, 2026 07:18
@matt2e matt2e merged commit 905010b into main May 15, 2026
5 checks passed
@matt2e matt2e deleted the hashtag-options-style branch May 15, 2026 07:27
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