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

The platform inventory page has one primary next action and is looked at on phone and desktop widths #16773

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The inventory page already had its one primary action, "Bring ", in the page header. This change fixes the phone layout and adds a test that holds the primary action in place. I did not capture the before/after screenshots at 390 and 1280 that the issue asks for.

Notes

opened this

The inventory page already had its one primary action, "Bring <next app>", in the page header. This change fixes the phone layout and adds a test that holds the primary action in place. I did not capture the before/after screenshots at 390 and 1280 that the issue asks for. I never ran a browser, and no look was checked against the preview.

  • What changed: #inventory in src/web/pages/inventory.ts is now list setting-list. At 640px and below, the existing rule puts each row's state badge and its two buttons ("Bring into this forge", "Into a new forge") on their own line under the title. Before, they sat in a non-wrapping trail beside the title, which squeezed it at 390px. The desktop layout is unchanged.
  • Test: test/origin-inventory.test.ts asserts that the page has exactly one data-variant="primary" button and that the list carries the wrapping class. bun test test/origin-inventory.test.ts, bun x tsc --noEmit and bun scripts/design-lint.ts pass. scripts/gate.ts --fix changed nothing.
  • Reused: the .setting-list trail rule that other pages already use. No new function, class or CSS.
  • Door: the commit says No door: because this is a layout class on an existing page, with no new action, route or tool. The push also needed a Try: commit line, which I added.
  • Left out: I did not change which row gets the primary action, and I added no primary action for when nothing is left to bring over.
  • To try: open /migrate/inventory on this pull's preview at 390px and then at 1280px. At 390px each row's actions sit under its title. At both widths the only filled button is "Bring …" in the header.
[
  {"go":"/migrate/inventory","look":"at 390px wide, each repository row","expect":"title and holds line on top; state badge and the two actions on their own line below; one filled button, 'Bring …', in the header"},
  {"go":"/migrate/inventory","look":"at 1280px wide","expect":"rows unchanged: badge and actions to the right of the title; still one filled button"}
]

🤖 Generated with Claude Code

Closes #13361

4 earlier comments
commented

The inventory page already had its one primary action, "Bring <next app>", in the page header. This change fixes the phone layout and adds a test that holds the primary action in place. I did not capture the before/after screenshots at 390 and 1280 that the issue asks for. I never ran a browser, and no look was checked against the preview.

  • What changed: #inventory in src/web/pages/inventory.ts is now list setting-list. At 640px and below, the existing rule puts each row's state badge and its two buttons ("Bring into this forge", "Into a new forge") on their own line under the title. Before, they sat in a non-wrapping trail beside the title, which squeezed it at 390px. The desktop layout is unchanged.
  • Test: test/origin-inventory.test.ts asserts that the page has exactly one data-variant="primary" button and that the list carries the wrapping class. bun test test/origin-inventory.test.ts, bun x tsc --noEmit and bun scripts/design-lint.ts pass. scripts/gate.ts --fix changed nothing.
  • Reused: the .setting-list trail rule that other pages already use. No new function, class or CSS.
  • Door: the commit says No door: because this is a layout class on an existing page, with no new action, route or tool. The push also needed a Try: commit line, which I added.
  • Left out: I did not change which row gets the primary action, and I added no primary action for when nothing is left to bring over.
  • To try: open /migrate/inventory on this pull's preview at 390px and then at 1280px. At 390px each row's actions sit under its title. At both widths the only filled button is "Bring …" in the header.
[
  {"go":"/migrate/inventory","look":"at 390px wide, each repository row","expect":"title and holds line on top; state badge and the two actions on their own line below; one filled button, 'Bring …', in the header"},
  {"go":"/migrate/inventory","look":"at 1280px wide","expect":"rows unchanged: badge and actions to the right of the title; still one filled button"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages c95030ad677f --> Look pages for c95030a, from the gate:

  • look pages (none): this pull changes src/web/pages/inventory.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

I've pushed a commit with a Looks: /migrate/inventory line, which is the page the gate asked me to name. The gate couldn't trace its way from src/web/pages/inventory.ts to a page by itself. I haven't seen its response to the new line, and no code changed.

The gate said it couldn't trace the route of /settings/security/controls. I think that route is a mismatch: this pull never touches it. The only page it changes is /migrate/inventory.

The pull itself is unchanged: #inventory is now list setting-list, so each row's actions wrap under its title at 390px. A test holds the page to exactly one primary action. I still have not captured the 390 and 1280 screenshots, so the reviewer will need to look at the preview.

[
  {"go":"/migrate/inventory","look":"at 390px wide, each repository row","expect":"title and holds line on top; state badge and the two actions on their own line below; one filled button, 'Bring …', in the header"},
  {"go":"/migrate/inventory","look":"at 1280px wide","expect":"rows unchanged: badge and actions to the right of the title; still one filled button"}
]

🤖 Generated with Claude Code

commented

<!-- look-pages f546fb787007 --> Look pages for f546fb7, from the gate:

  • look pages (none): "Looks: /migrate/inventory" is not a page of app.looks in forge.json; this pull changes src/web/pages/inventory.ts but the forge could not trace the route of /settings/security/controls (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
commented

I pushed a No look: commit line. It explains that /migrate/inventory isn't in app.looks, so the page can't be looked at automatically. I changed no code and haven't seen the gate's response to the new line.

The Looks: line from my last push was wrong because /migrate/inventory isn't in the app.looks list in forge.json. The page needs a connected origin account, and the looks don't seed one. I didn't add it to app.looks, since that would need a seeded account the looks don't have.

I think the gate's note about /settings/security/controls is a tracing miss, since this pull never touches that route. The pull still changes src/web/pages/inventory.ts: the list is now list setting-list, so each row's actions wrap under its title at 390px. A test holds the page to exactly one primary action. The reviewer needs to check the layout on the preview.

[
  {"go":"/migrate/inventory","look":"at 390px wide, each repository row","expect":"title and holds line on top; state badge and the two actions on their own line below; one filled button, 'Bring …', in the header"},
  {"go":"/migrate/inventory","look":"at 1280px wide","expect":"rows unchanged: badge and actions to the right of the title; still one filled button"}
]

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs