# Pull request

A pull request in a code-hosting app: the conversation in markdown with a box to answer in, its commits, the CI run that blocks the merge with its logs, recording and artifacts, and the changed files, each file drawn by the package Content picks for it.

## Guidelines shown here

- [Color](/ui/guidelines/foundations/color/index.md)

  A check's icon is a tick or a cross, named for a screen reader, so colour is never the only sign, and the open job says “failed in 7s” in words. The +/− counts take the diff colours, and the logs the terminal theme. The labels keep the colours the forge stores for them, each drawn at its hue in the theme's tag colours.

- [Typography](/ui/guidelines/foundations/typography/index.md)

  Hashes, branches and logs are monospaced, durations and counts are tabular, and a commit subject truncates rather than wrapping its row.

- [Layout & spacing](/ui/guidelines/foundations/layout-and-spacing/index.md)

  Below lg the details column drops under the conversation. On a phone the jobs become a row above the log, and the pull request's pages that do not fit wait in a ⋯, as the repository's sections do.

- [Feedback](/ui/guidelines/patterns/feedback/index.md)

  Press Re-run failed jobs and move to Files changed: the run ends in a toast, and its Details leads back to the log.

- [Forms](/ui/guidelines/patterns/forms/index.md)

  Merge pull request is disabled with the reason beside it, never without one. Comment stays pressable: with the box empty it says what is missing, and ⌘ or Ctrl and Enter posts too.

- [Writing Markdown](/ui/guidelines/patterns/writing-markdown/index.md)

  The comment is written in a MarkdownEditor and rendered as Markdown once posted. Paste a formatted part of a page into it and the formatting comes through as Markdown.

- [Overlays](/ui/guidelines/patterns/overlays/index.md)

  Recording, and each artifact on the Checks page, opens in the attachment viewer over the page. Escape closes it.

- [Loading, empty & error](/ui/guidelines/patterns/loading-empty-and-error/index.md)

  Reload the page: each log, diff and the comment box shows a skeleton in its shape until it is drawn, so nothing jumps.

- [Desktop & pointer](/ui/guidelines/platforms/desktop-and-pointer/index.md)

  Tab stops once at each of the pull request's pages, each job and each Details, and Enter follows the link or presses the button.

- [Touch & mobile](/ui/guidelines/platforms/touch-and-mobile/index.md)

  Press Touch in the bar above: the jobs' rows make room for a thumb, Details and Re-run keep their size and take hit areas, and a log or a diff scrolls inside its own box.

## Components

- [ui · Avatar](/ui/storybook/?path=/docs/ui-primitives-avatar--docs)
- [ui · Badge](/ui/storybook/?path=/docs/ui-primitives-badge--docs)
- [ui · Button](/ui/storybook/?path=/docs/ui-primitives-button--docs)
- [ui · Card](/ui/storybook/?path=/docs/ui-primitives-card--docs)
- [ui · GroupHeading](/ui/storybook/?path=/docs/ui-primitives-groupheading--docs)
- [ui · InlineCode](/ui/storybook/?path=/docs/ui-primitives-inlinecode--docs)
- [ui · List](/ui/storybook/?path=/docs/ui-primitives-list--docs)
- [ui · Pane](/ui/storybook/?path=/docs/ui-primitives-pane--docs)
- [ui · Separator](/ui/storybook/?path=/docs/ui-primitives-separator--docs)
- [ui · Skeleton](/ui/storybook/?path=/docs/ui-primitives-skeleton--docs)
- [ui · TabNav](/ui/storybook/?path=/docs/ui-primitives-tabnav--docs)
- [ui · Timestamp](/ui/storybook/?path=/docs/ui-primitives-timestamp--docs)
- [ui · Toaster](/ui/storybook/?path=/docs/ui-primitives-toaster--docs)
- [ui · SelectionAction](/ui/storybook/?path=/docs/ui-selectionaction--docs)
- [ui-ansi · Content](/ui/storybook/?path=/docs/ui-ansi-content--docs)
- [ui-asciinema · Content](/ui/storybook/?path=/docs/ui-asciinema-content--docs)
- [ui-code · Content](/ui/storybook/?path=/docs/ui-code-content--docs)
- [ui-codemirror · MarkdownEditor](/ui/storybook/?path=/docs/ui-codemirror-markdowneditor--docs)
- [ui-content · AttachmentList](/ui/storybook/?path=/docs/ui-content-attachmentlist--docs)
- [ui-content · AttachmentViewerProvider](/ui/storybook/?path=/docs/ui-content-attachmentviewerprovider--docs)
- [ui-content · Content](/ui/storybook/?path=/docs/ui-content-content--docs)
- [ui-hex · Content](/ui/storybook/?path=/docs/ui-hex-content--docs)
- [ui-markdown · Markdown](/ui/storybook/?path=/docs/ui-markdown-markdown--docs)
