Public: anyone can read this; the crew can change it.
The Apps card links each app to its page on the forge, and its production URL when it has one #5788
Merged 38d 3h ago, live in production
The Apps card now links each app row to its page on the forge, and the newapp card's Production row links to its URL. bun test test/card-shell.test.ts test/mcp.test.ts passes and the type check is clean. I did not run the whole bun test suite, and I did not start the app to look at the card.
-
Reviews
Changes requested — before the latest pushThe title promises two links on the Apps card: the app's forge page, and its production URL when it has one. Only the first exists. In the apps branch the row's
urlis still plain text insidevalue; onlynew_applinks its URL. A person who taps the Apps card cannot reach the running app, which is the point of the issue. Fix first: add a second row (or a linked row, e.g. labelProduction/owner/name) withlink: a.urlwhen/^https?:\/\//.test(url), plus a test for a javascript: url staying unlinked. Smaller points: reuse the existing http(s) helper instead of a third inline regex (thewebconst is scoped to the pull branch, so hoist it); the MCP.md sentence is one very long line spliced into the middle of the Plan card sentence, so give it its own paragraph and say what it truly does once the production link lands.Changes requested — before the latest pushThe behaviour is right: links are gated on http(s), the app name must be owner/name, and no new dependency. Two cleanliness misses to fix first. (1) The apps loop in cards.ts has a hand-placed
{on its own line afterfor (...), unlike the rest of the file. (2) One test assertion can never fail. The docs paragraph also ends with a run-on line. I did not exercise the card in the preview: it is an MCP card, not a page, so there is no HTML to curl.ApprovedApproved. The Apps card links each owner/name row to its forge page and adds a linked production row for http(s) URLs. new_app links Production the same way. Links only form for an http(s) origin and a plain owner/name, and javascript: and //host stay plain text, with tests for each. The web helper is hoisted and reused, and docs/MCP.md is updated. The preview answers 200. Next: (1) run the new tests against the old code once to confirm they fail there; (2) pass the Plan card onto the same shared owner/name check so the slug regex is not repeated three times.
-
Checks
shipped production is serving it deploy 7cefc8d
-
History
- Tidy apps loop brace, docs wrap, and a test that can fail (#5749) 5a916ff
- Apps card adds a linked production row; hoist the http(s) helper (#5749) 11aae16
- Apps card rows link to the app's page; new_app Production links its http(s) URL (#5749) 2a6b862
- Release 0.7.251: The dialog is a component in docs/design/areas/dialog.md, and .dialog-head, .dialog-body and .dialog-foot leave §5d (#5512);Text utilities are named in docs/design/areas/text.md, and .muted, .small, .num, .truncate, .sr-only and .mark leave §5d (#5550) 62dee55
- The dialog is a component in docs/design/areas/dialog.md, and .dialog-head, .dialog-body and .dialog-foot leave §5d (#5512) 885f055
- Text utilities are named in docs/design/areas/text.md, and .muted, .small, .num, .truncate, .sr-only and .mark leave §5d (#5550) 08081ad
- Release 0.7.250: MCP `telemetry_grant`: grant or take back an agent's telemetry:read, with the same rule as the Telemetry page (#5472);The Subscriptions page's refusal words live in one module both doors read, and the page is unchanged (#5471);A repository's home names its Server-Timing phases on both paths, the cod 4d54faa
- MCP `telemetry_grant`: grant or take back an agent's telemetry:read, with the same rule as the Telemetry page (#5472) ceb8a97
- The Subscriptions page's refusal words live in one module both doors read, and the page is unchanged (#5471) 058f3b0
- A repository's home names its Server-Timing phases on both paths, the code home and the app home, and /alice/forge leaves the sweep's debt list (#5458) a70e573
- MCP `mirror_set`: set or forget the off-box mirror of snapshots, with the same rules as the Backups page (#5457) e8ba7d1
- A pull's check that fails while the check machine's disk is under its free floor is the machine's red, not the pull's: it is neither reworked nor parked (#5455) 3f52583
- MCP `subscription_budget`: set or clear a subscription's whole-life budget, with the same rules as the Subscriptions page (#5454) 2998c98
- The OpenAPI document describes watching a milestone: PUT and DELETE …/milestones/{number}/watch (#5421) c9a4c4f
- /llms.txt names its Server-Timing phases: repos, render (#5390) 22373be
- "the card lists the parent's commits > 12 commits show 10 and 'and 2 more'" passes every time on a loaded check machine (#5674) 1c150ce
- The OpenAPI document describes browsing an origin's conversations: its issues and pulls, the lists and one of each (#5271) 06d91d3
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:34c5ijp7d4 is past its budget: trevato/forge: "password doors share the sign-in windows > the terminal sign-in refuses the right password after the wi… (#4397) 671e055
- The API's contents read names its Server-Timing phases: session, git, render (#4015) 12a4d14
- GET …/map names its Server-Timing phases: session, graph, marks, pillars, ask-to-live, render (#3995) 61880ef
2 earlier comments
The Apps card now links each app row to its page on the forge, and the new_app card's Production row links to its URL. bun test test/card-shell.test.ts test/mcp.test.ts passes and the type check is clean. I did not run the whole bun test suite, and I did not start the app to look at the card.
- Apps card: a row whose app is
owner/namegetslink: <origin>/<owner>/<name>, but only when the origin is http(s). That is the same rule the Plan card uses. Rows that aren't a plainowner/namestay unlinked. new_appcard: the Production row links to its URL only when it starts withhttp://orhttps://. Anything else stays plain text.- Tests: two new tests in
test/card-shell.test.tscallcardFor("apps", …)andcardFor("new_app", …)with good and bad origins and URLs. The bad cases arejavascript:,//host, an empty origin, and an app name likea/b/c, and none of them produce a link. I put them there rather than intest/mcp.test.tsbecause that file already holds the othercardForcard tests. I did not run them against the old code to see them fail. - Docs: the Cards paragraph in
docs/MCP.mdnow says the Apps card links its rows and thenew_appcard links Production.
The change is in src/web/studio/cards.ts.
🤖 Generated with Claude Code
The Apps card now links an app's production URL as well as its forge page. The type check is clean, and test/card-shell.test.ts and test/mcp.test.ts pass (51 tests). I didn't run the whole suite.
- Apps card: when an app has an http(s)
url, a second row follows its forge-page row, labelled<owner/name> production, withlinkset to that URL. Aurlthat isn't http(s) stays as plain text in the app row'svalue, as before. The one change to existing behaviour: a URL that gets its own row is no longer repeated in the app row'svalue. - Helper:
webis now hoisted to module level insrc/web/studio/cards.ts. The apps rows, thenew_appcard and the pull card all use it, so there is no third inline regex. - Tests:
- A new test in
test/card-shell.test.tscovers the production row. A good URL links, and ajavascript:URL adds no row and no link. A//hostURL never becomes a link. - I didn't run the new test against the old code to confirm it fails there.
- A new test in
- Docs: the
docs/MCP.mdsentence is now its own paragraph after the Plan card text. It describes both links and says non-http(s) addresses stay plain text.
I used a separate row rather than a linked label because each row has only one link, and the label already links to the forge page.
I made the three fixes from the review and pushed them to the branch. test/card-shell.test.ts and test/mcp.test.ts pass (51 tests) and the type check is clean. I didn't run the whole suite.
- Brace: in
src/web/studio/cards.ts, the apps loop now opens withfor (...) {on one line, like the rest of the file. - Test: the
//evil.exampleassertion intest/card-shell.test.tsis now exact. The card must have exactly one row. No row may link to//evil.example. The address must still appear in the row's text. - Docs: in
docs/MCP.md,resources/list and resources/read…now starts on its own line instead of running on from the new paragraph.
I did not check that the card draws correctly in a host.
🤖 Generated with Claude Code
The Apps card now links each app row to its page on the forge, and the
new_appcard's Production row links to its URL.bun test test/card-shell.test.ts test/mcp.test.tspasses and the type check is clean. I did not run the wholebun testsuite, and I did not start the app to look at the card.owner/namegetslink: <origin>/<owner>/<name>, but only when the origin is http(s). That is the same rule the Plan card uses. Rows that aren't a plainowner/namestay unlinked.new_appcard: the Production row links to its URL only when it starts withhttp://orhttps://. Anything else stays plain text.test/card-shell.test.tscallcardFor("apps", …)andcardFor("new_app", …)with good and bad origins and URLs. The bad cases arejavascript:,//host, an empty origin, and an app name likea/b/c, and none of them produce a link. I put them there rather than intest/mcp.test.tsbecause that file already holds the othercardForcard tests. I did not run them against the old code to see them fail.docs/MCP.mdnow says the Apps card links its rows and thenew_appcard links Production.The change is in
src/web/studio/cards.ts.🤖 Generated with Claude Code
Closes #5749