feat(mobile,ui-native): fold a long pull request description behind Show more
Merged
DA
4d ago+124+124+012345678901234567890123456789-4-4-0123456789
What
Step (b) of STAG-3903. On iOS, a pull request's description stays inline above the Checks and Files changed rows. A long one stands folded, the way GitHub's app folds a long body, so the rows and the conversation below stay a short scroll away.
- When it folds: over 12 lines with words, or over 900 characters.
descriptionFoldsin@repo/features/pull-request-modeldecides this from the Markdown alone, so nothing is measured before the page draws. - How it looks folded:
WordsRowtakes a newfoldedprop. The words stand about twelve body lines tall (264 pt, scaled with Dynamic Type) and fade into the ground at the foot. They're laid out whole and cut by their frame, so no Markdown block is split. - Show more / Show less: a
LinkRowunder the words opens it whole and folds it back.SHOW_MORE_WORDSsits besideSHOW_LESS_WORDSin@repo/features/words. - Fixture and flow: the fixture's queued pull request (#126) now carries a long description.
pull-request.yamlshows it folded (pull-request-description-folded) and open (pull-request-description-open).
Stacked on #10552, which is stacked on #10549.
Checks
turbo run typecheck --filter=@repo/mobilepassed.- biome and oxlint are clean.
vitest run packages/host/src/fixture-pull-requests.test.tspassed.- No Swift changed. Frames will come from the Mac queue with #10552's lane.
š¤ Generated with Claude Code