feat(ui): surface @claude in composers; widen reading measure#74
Merged
Conversation
Three small quality-of-life fixes from docs/to-improve/ (specs 10–12). Composer hints (spec 11): both comment composers now advertise the @claude affordance in their placeholder ("@claude to get an AI response") instead of the old Cmd+Enter / "type @claude to ask Claude" wording, so the AI path is discoverable at the point of writing. Wider reading measure (spec 12): trim --page-padding-x 96px → 64px, giving a ~688px measure (~85 chars) without changing the page footprint, so the wider text can't force horizontal scroll against the fixed comment column. The print block flattens the padding, so exported PDF stays US-Letter. Dead print rule (spec 10): drop the now-orphaned `.ProseMirror { background-image: none !important }` print-suppression rule — it suppressed the faux page-break gradient removed in #69, which no longer exists. Guard tests: two CSS/source-reading guards lock these end-states in. pageSurface.test.ts asserts neither .ProseMirror nor .editor-page paints a background-image/linear-gradient (page-break indicator stays gone) and that the widened measure holds, each with a negative control. composerPlaceholders.test.ts asserts every composer placeholder mentions @claude. Adds @types/node (devDep) so the file-reading guards typecheck. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ESi6dnK3Wc1jYRpZN5qfZA
Merged
sam-powers
added a commit
that referenced
this pull request
Jul 10, 2026
Patch release bundling the fixes from PRs #70–#74: - @claude CLI resolution: working PATH + prefer configured binary (#70) - desktop: menu stale-closure, window-close capability, deep-link window surfacing (#71) - retry failed @claude replies in place (#72) - re-run cancelled @claude replies; remove broken new-session (#73) - surface @claude in composer placeholders; widen reading measure (#74) Also removes the stray docs/to-improve and docs/plans files that landed via #70 — those are downstream porting notes, not public-repo content. Claude-Session: https://claude.ai/code/session_01ESi6dnK3Wc1jYRpZN5qfZA Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three quality-of-life fixes from
docs/to-improve/(specs 10–12). Independent of the @claude-flow PRs (#72/#73) — based onmain, non-overlapping hunks.What & why
Composer hints mention @claude (spec 11)
Both comment composers now advertise the AI affordance in their placeholder — "Add a comment… (@claude to get an AI response)" and "Reply… (@claude to get an AI response)" — replacing the old "Cmd+Enter to post" / "type @claude to ask Claude" wording. The @claude path is now discoverable at the point of writing.
Wider reading measure (spec 12)
Trim
--page-padding-x96px → 64px, giving a ~688px measure (~85 characters). Padding is trimmed, not page width, so the page footprint is unchanged and the wider text can't force horizontal scroll against the fixed comment column. The print block flattens the padding, so exported PDF stays US-Letter.Remove dead print rule (spec 10)
Drop the now-orphaned
.ProseMirror { background-image: none !important }inside@media print. It suppressed the faux page-break gradient removed in #69, which no longer exists.Tests
src/test/styles/pageSurface.test.ts(new): asserts neither.ProseMirrornor.editor-pagepaints abackground-image/linear-gradient(page-break indicator stays gone), that.ProseMirrorkeepsmin-height: 912px, and that the widened measure holds (--page-padding-x ≤ 72,--page-max-width ≥ 816). Each with a negative control proving the assertion can fail.ruleBodymatches only page-surface selectors, so a legitimate gradient on a descendant (e.g. the track-changes thread-line) doesn't false-trip.src/test/components/composerPlaceholders.test.ts(new): asserts everyplaceholder="…"in both composer sources contains@claude, with a negative control.@types/node(devDep) +"node"to tsconfigtypesso the file-reading guards typecheck. (?rawimports return empty for.cssunder vitest, so fs is the reliable read.)🤖 Generated with Claude Code