Skip to content

feat: display worktree comments with line wrapping - #431

Merged
AmethystLiang merged 1 commit into
mainfrom
display-comment-in-line-wrapping-way
Apr 10, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
display-comment-in-line-wrapping-way

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Replace HoverCard tooltip with inline whitespace-pre-wrap rendering so multi-line worktree comments are visible at a glance without hovering
  • Update estimateRowHeight to dynamically calculate comment row height based on content length and newline count (~35 chars/line wrap estimate, 16.5px line-height)
  • Add tests for multi-line and long-line wrapping comment height estimation

Test plan

  • Verify single-line comments render inline without truncation
  • Verify multi-line comments (with newlines) display all lines wrapped
  • Verify long single-line comments wrap correctly at sidebar width
  • Verify virtualizer scroll doesn't jump/jank with variable-height comment rows
  • Run pnpm test — all estimate tests pass

Replace the HoverCard tooltip with inline whitespace-pre-wrap rendering
so multi-line comments are visible at a glance. Update estimateRowHeight
to dynamically calculate comment height based on content length and
newline count.
@AmethystLiang
AmethystLiang merged commit acaacd3 into main Apr 10, 2026
1 check passed
@AmethystLiang
AmethystLiang deleted the display-comment-in-line-wrapping-way branch April 10, 2026 05:46
BorjaLL added a commit to BorjaLL/orca that referenced this pull request Jun 15, 2026
Render the worktree comment as a single truncated (text-ellipsis)
line on the card body, instead of only on hover via WorktreeCardMeta.
Gated on a non-empty comment and the existing 'comment' card property,
using existing STYLEGUIDE tokens (no new colors/sizes).

Unlike the reverted stablyai#431 (commit 474db0e), which wrapped multi-line
comments and drove a dynamic, content-dependent virtualizer row height
(the likely jank/revert cause), this line is fixed-height regardless of
comment length, so the list virtualizer row height stays stable.

Updated WorktreeCard.pr-display.test to reflect that the comment text
now renders inline on the closed card while meta badges stay icon-only.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…ard (stablyai#431)

Replace the HoverCard tooltip with inline whitespace-pre-wrap rendering
so multi-line comments are visible at a glance. Update estimateRowHeight
to dynamically calculate comment height based on content length and
newline count.
Thundernerd added a commit to Thundernerd/orca that referenced this pull request Nov 18, 2026
… of tickets

Each implemented ticket handed over one to three findings in the area it had
just touched, and each of those did the same, so the tracker filled with
narrowing variations on one theme (on Cronk: stablyai#421 → stablyai#430 → stablyai#442/stablyai#443 →
stablyai#448/stablyai#454 → stablyai#460/stablyai#461, and similar chains for closing, query binding and
From Transcript kinds). Some were review points on code still on the
unmerged branch (stablyai#450, stablyai#453) or /code-review judgement calls (stablyai#467).

- The implementing brief, local and cloud, now counts only real bugs and
  gaps as findings. Problems in code the branch adds are fixed in its PR;
  judgement calls, tidy-ups and further passes over freshly reworked code
  are left with a reason in the report instead of handed over.
- The finding check also searches tickets closed in the last two weeks and
  the findings already filed up the "Found while implementing" chain, and
  files nothing for code that exists only on the origin's branch.
- A finding whose title is already recorded on its origin is not filed
  again, which is how stablyai#431 duplicated stablyai#430.
- The filed body no longer repeats "Found while implementing" and the
  triage line when the agent's draft already opens with them.
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