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

The Flow panel lists the merge queue's last gates: the pulls in each, green or red, and the first failing test by name #7517

opened this

Merged 36d 2h ago, live in production

The Flow panel on /boards now has a "Last gates" card that shows why landing stalled. tsc, bun scripts/design-lint.ts and test/mcp-size.test.ts pass, and so do the new test and two neighbouring flow-panel tests. I did not run the full suite or load the page in a browser.

Notes

opened this

The Flow panel on /boards now has a "Last gates" card that shows why landing stalled. tsc, bun scripts/design-lint.ts and test/mcp-size.test.ts pass, and so do the new test and two neighbouring flow-panel tests. I did not run the full suite or load the page in a browser.

  • What the card shows: the newest 10 gates across the repositories the reader may see. Each row has how long ago, the repository, the pulls as #N links, and the verdict (green, red or cut off). On red it adds the first failing test's name and its first error line, escaped.
  • Reads: one recentGates read per repository that has kept gates, so a repository with no queue activity in the last hour still shows its gates.
  • Visibility: the owner sees every repository; anyone else sees public repositories only. A sealed pull shows as a sealed pull, with no link and no title.
  • Where it lives: the card is a new module, src/web/pages/boards-gates.ts, following boards-held.ts. flow-panel.ts gets an import and one line placing it after the merge queue card, so it should not collide with #7423's hold-pulls section.
  • Design lint: no new component class.
  • Test: test/flow-panel-gates.test.ts covers a green and a red gate, the pull links, and the failing test's name and error line. It also covers sealed and private repositories and the cap of 10.

Left out:

  • No "more" link or paging; it is a fixed list of 10.
  • Nothing in the MCP or the API changed.
  • No flaky marker, which the terminal's Flow dialog has.

To try it, open /boards as the owner, or on a preview.

Closes #7508

commented

The Flow panel on /boards now has a "Last gates" card that shows why landing stalled. tsc, bun scripts/design-lint.ts and test/mcp-size.test.ts pass, and so do the new test and two neighbouring flow-panel tests. I did not run the full suite or load the page in a browser.

  • What the card shows: the newest 10 gates across the repositories the reader may see. Each row has how long ago, the repository, the pulls as #N links, and the verdict (green, red or cut off). On red it adds the first failing test's name and its first error line, escaped.
  • Reads: one recentGates read per repository that has kept gates, so a repository with no queue activity in the last hour still shows its gates.
  • Visibility: the owner sees every repository; anyone else sees public repositories only. A sealed pull shows as a sealed pull, with no link and no title.
  • Where it lives: the card is a new module, src/web/pages/boards-gates.ts, following boards-held.ts. flow-panel.ts gets an import and one line placing it after the merge queue card, so it should not collide with #7423's hold-pulls section.
  • Design lint: no new component class.
  • Test: test/flow-panel-gates.test.ts covers a green and a red gate, the pull links, and the failing test's name and error line. It also covers sealed and private repositories and the cap of 10.

Left out:

  • No "more" link or paging; it is a fixed list of 10.
  • Nothing in the MCP or the API changed.
  • No flaky marker, which the terminal's Flow dialog has.

To try it, open /boards as the owner, or on a preview.

commented

All four points are addressed and pushed to the same branch. tsc, test/flow-panel-gates.test.ts, test/web-ui.test.ts, test/mcp-size.test.ts and bun scripts/design-lint.ts pass. I did not run the full suite or look at the card in a browser, so the 360px behaviour comes from the markup and the design doc, not from seeing it.

  1. Empty state: it now says "No gate has run yet.", since the query has no time filter.
  2. Row layout: the card uses <ul class="list"> with the shared row() component, a non-link row so the pull links nest validly. The title holds the pull links and the verdict badge. The meta line holds the age, the repository, and the failing test and error line, or the cut-off reason. .row-meta is already one nowrap line with an ellipsis, so long test names and errors clamp on a phone, and the full text is in the title attribute.
  3. Sealed gates: if any pull in a gate is sealed, the row shows the verdict and a sealed pull and nothing else. The failing test, its error and the cut-off reason are all left out. A new test covers a red and a cut-off gate with a sealed pull and checks that none of their text appears.
  4. Tests and docs:
    • Cut off: its reason is now shown, escaped, and a test covers it.
    • Reader: a new test draws flowPanel for the owner and for an agent reader on a private repository's red gate. The agent sees neither the test name nor the pull link.
    • README: one line describing the card, next to the other Flow panel notes.

I could not check the 303 you saw on the preview. /boards is admin-only, so it redirects without a session.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs