# Repository

A repository's working tree in a code-hosting app: its files in a tree marked with what git says of each, a filter that hides, opens or closes folders around the matches, and the file or folder picked beside it, a changed file with its diff a click away.

## Guidelines shown here

- [Navigation](/ui/guidelines/patterns/navigation/index.md)

  The files are a FileTree, each file and folder a link to its path, so a middle click opens it in a new tab and a reload stays on it. The path above the file links each folder on the way. Type retry in the filter, then switch the filter mode from the menu beside it: Hide other files keeps the matches, Open folders with matches keeps every row, and Close other folders opens only the matches' folders.

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

  A changed file's name and letter take the status colour, and the letter says it without the colour: M for README.md, A for src/retry.ts, D for docs/old-guide.md, struck through.

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

  Open scripts/ for an empty folder, docs/old-guide.md for a file deleted from disk, and filter for a word no path holds.

- [Comparing images](/ui/guidelines/patterns/comparing-images/index.md)

  docs/assets/settings.svg changed in the working tree: its Changes view sets the committed version beside the one on disk, and a click on either opens both in the viewer at one zoom.

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

  On a phone the tree fills the screen; a file or folder replaces it, with a link back to the files at the top.

## Components

- [ui · EmptyState](/ui/storybook/?path=/docs/ui-emptystate--docs)
- [ui · FileTree](/ui/storybook/?path=/docs/ui-filetree--docs)
- [ui · Badge](/ui/storybook/?path=/docs/ui-primitives-badge--docs)
- [ui · Breadcrumb](/ui/storybook/?path=/docs/ui-primitives-breadcrumb--docs)
- [ui · DropdownMenu](/ui/storybook/?path=/docs/ui-primitives-dropdownmenu--docs)
- [ui · Input](/ui/storybook/?path=/docs/ui-primitives-input--docs)
- [ui · List](/ui/storybook/?path=/docs/ui-primitives-list--docs)
- [ui · NavList](/ui/storybook/?path=/docs/ui-primitives-navlist--docs)
- [ui · Pane](/ui/storybook/?path=/docs/ui-primitives-pane--docs)
- [ui · SegmentedControl](/ui/storybook/?path=/docs/ui-primitives-segmentedcontrol--docs)
- [ui · Skeleton](/ui/storybook/?path=/docs/ui-primitives-skeleton--docs)
- [ui · Toaster](/ui/storybook/?path=/docs/ui-primitives-toaster--docs)
- [ui · Tooltip](/ui/storybook/?path=/docs/ui-primitives-tooltip--docs)
- [ui · SelectionBar](/ui/storybook/?path=/docs/ui-selectionbar--docs)
- [ui · Toolbar](/ui/storybook/?path=/docs/ui-toolbar--docs)
- [ui-asciinema · Content](/ui/storybook/?path=/docs/ui-asciinema-content--docs)
- [ui-code · Content](/ui/storybook/?path=/docs/ui-code-content--docs)
- [ui-content · Content](/ui/storybook/?path=/docs/ui-content-content--docs)
- [ui-content · MediaCompare](/ui/storybook/?path=/docs/ui-content-mediacompare--docs)
- [ui-hex · Content](/ui/storybook/?path=/docs/ui-hex-content--docs)
- [ui-markdown · Content](/ui/storybook/?path=/docs/ui-markdown-content--docs)
