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

One test proves the Lost test: from production and from a preview, the pill says where you are and links home, to comment and to tell the crew #7755

shipped production is serving it opened this has it
opened this

For: P6 Never lost, whose umbrella has no open work. Its test: from any app or preview you know where you are and can get home, comment, or tell the crew. The pill (src/apps/toolbar.ts, injected by src/apps/proxy.ts) has each part, tested piece by piece, but nothing proves the whole test in one place.

Done looks like:

  • [ ] A new test/never-lost.test.ts boots one forge with one app that serves an HTML page, and requests that page through the app proxy twice: once as production, once as the preview of an open pull.
  • [ ] For each, it asserts that the page carries the pill script with the right where-you-are data (env production or pull N, app and repository), that /__forge/crew answers for the signed-in owner, and that the pill's links resolve on the forge's origin: Home, the comment/tell/make-it-yours page with env and pull, and the tell form, each answering 200 signed in.
  • [ ] Signed out, the same page still says where you are and offers sign-in in place of tell, as the app door does.
  • [ ] Where one part is missing in one environment, fix that part and name it in the pull. Change no test that already passes.

Files: test/never-lost.test.ts, and only if a part is missing: src/apps/toolbar.ts or src/apps/proxy.ts. Risks: the proxy may need FORGE_TEST_SOCKET-style ports in the sandbox; follow how test/apps-toolbar-tell.test.ts boots the app.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs