Public: anyone can read this; the crew can change it.

A test pins the terminal's where-strip: every repository screen says where it reads from in plain words, and an origin's host prints inert #6909

shipped production is serving it opened this has it
opened this

src/tui/screens/where.ts draws the one line that tells a person whether they are reading live from an origin, their workbench or this machine. whereStrip, whereSpans, otherSide, originKind and hostOf are not named in a test.

Done:

  • [ ] test/tui-where.test.ts: for each of the three sources the strip marks exactly one place as current, and its second line says read-only for a live origin.
  • [ ] otherSide and its label name the other source a person can switch to, and nothing when there is none.
  • [ ] An origin URL whose host or path carries an escape sequence or control characters prints inert. A host that is not a URL gives "".

This is a new test file only. Change code only where the test finds a hole, and say so in the pull. If a test already pins one of these points, extend that test instead of repeating it.

Files: test/tui-where.test.ts

Before pushing: bun x tsc --noEmit and the test you add. Tests pass now in and never read the wall clock.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs