Skip to content

Draw quote blocks in commits and remotes, as the web does - #88

Merged
simonhamp merged 1 commit into
NativePHP:mainfrom
sonalidudhia:feat/quote-blocks
Oct 26, 2026
Merged

simonhamp merged 1 commit into
NativePHP:mainfrom
sonalidudhia:feat/quote-blocks

Conversation

@sonalidudhia

@sonalidudhia sonalidudhia commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

A line that starts with > now draws as a quote, as on the web since dev-null-sh/dev-null.sh#970. Until now the app showed the > markers as plain text.

  • CommitBody splits each paragraph into paragraphs and quotes, following the web's bodyBlocks(): lines next to each other that start with > join one quote, the marker and one space after it are dropped, and a > inside code or anywhere but a line's start stays as written. Mentions, links and inline code inside a quote work as they do anywhere else.
  • BodyBlock gets a quote kind.
  • Commits (log, detail, replies, composer preview) draw a quote behind a 2pt lane-5 rule on the left, the web's amber border-(--lane-5). Remotes do the same, and in your own bubbles the rule takes the bubble's label colour, like the web's pale rule there.

Tests cover the grouping rules from the web PR's tests (code spans, fenced blocks, mid-line >, Windows line breaks, a bare >), and screen tests check the rule on a commit and in both kinds of remote bubble.

Screenshots

The composer preview of a draft, so nothing was posted. iOS only for now: I don't have an Android emulator set up yet, and will add the Android shots before marking this ready.

composer-preview

iOS light iOS dark Android light Android dark
Before
After
  • No visible change

A line that starts with `>` now draws as a quote behind an amber rule on
the left, marker dropped, like the web's blockquote from
dev-null-sh/dev-null.sh#970. Lines next to each other join one quote, a
`>` inside code or mid-line stays as written, and mentions, links and
inline code inside a quote work as anywhere else. In your own remotes
bubbles the rule takes the bubble's label colour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonalidudhia
sonalidudhia marked this pull request as ready for review October 26, 2026 06:40
@simonhamp

Copy link
Copy Markdown
Member

Looks great! Thanks @sonalidudhia

@simonhamp
simonhamp merged commit 9b67047 into NativePHP:main Oct 26, 2026
4 checks passed
simonhamp added a commit to sonalidudhia/dev-null-app that referenced this pull request Oct 26, 2026
The merge from main brought in the quote splitter from NativePHP#88, which
rebuilds every prose run as plain text. It didn't know about color
runs, so every swatch was lost. Color runs now pass through untouched,
the same as mentions, links and wordmarks.

Also puts back the docblock lines the conflict resolution clipped in
CommitBody and the message body partial.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
simonhamp added a commit that referenced this pull request Oct 26, 2026
* Show hex colors with a swatch, as the web does

A hex color in a commit or a remote, like #ff8a4c or #fff, now draws
after a square of that color, as on the web since
dev-null-sh/dev-null.sh#1064. It uses the web's rule: 3, 4, 6 or 8 hex
digits, where 3 or 4 digits need a letter or a leading zero so #123
stays an issue number, as a whole word, and never inside code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep hex colors when splitting bodies into quotes

The merge from main brought in the quote splitter from #88, which
rebuilds every prose run as plain text. It didn't know about color
runs, so every swatch was lost. Color runs now pass through untouched,
the same as mentions, links and wordmarks.

Also puts back the docblock lines the conflict resolution clipped in
CommitBody and the message body partial.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Simon <simon.hamp@me.com>
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.

2 participants