logicsrc/apps/logicsrc-web
Anthony Ettinger aa4a690d60 fix(pwa): the CLI hint printed commands that no longer run
The "Connect the CLI" card handed out:

    LOGICSRC_API=https://app.logicsrc.com logicsrc login
    logicsrc teams push <team> prod --env .env
    logicsrc teams pull <team> prod --env .env

Two things are wrong with that, and both survived a release.

Since #109 addressed vaults as <team> <project> <env>, push and pull take
three positionals. The hint passes two, so pasting it exits with a missing-
argument error -- the card is not merely stale, it is broken.

The LOGICSRC_API prefix sets the variable to the value the CLI already
defaults to (DEFAULT_API_URL, #107), so on the hosted app it does nothing
while reading like a required step. It is now emitted only when the origin
is not the default, which is the case it exists for: self-hosting.

`--env .env` is dropped for the same reason -- it restates the option's own
default, and sitting next to the new <env> positional it made one flag and
one argument look like the same thing.

Same stale two-argument form fixed in the post-install hint (install.sh) and
the accept-invite message, and in the empty-vault-list prompt on the card.

CLI_HINT moves to src/lib/cli-hint.mjs so a test can assert on the rendered
commands without standing up express and the database, matching how the
other lib-level views are covered. The tests pin the argument count rather
than the prose: restyling the card stays free, dropping an argument does not.

apps/pwa: 13/13 pass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 11:43:33 -07:00
..
contract feat(web): serve the CLI login flow from the apex (#106) 2026-07-30 10:25:16 -07:00
e2e feat(web): move Hire Us pricing to $400/hour metered billing (PRD 0002) (#102) 2026-07-28 10:34:49 -07:00
public fix(pwa): the CLI hint printed commands that no longer run 2026-07-30 11:43:33 -07:00
src feat(web): move Hire Us pricing to $400/hour metered billing (PRD 0002) (#102) 2026-07-28 10:34:49 -07:00
.gitignore Migrate logicsrc-web from Vite SPA to Next.js 16 App Router 2026-06-07 03:41:48 +00:00
next.config.ts feat(web): serve the CLI login flow from the apex (#106) 2026-07-30 10:25:16 -07:00
package.json feat(openontology): Phase 2 + Phase 3 — storage, REST/SSE, MCP, RDF/SHACL, adapters, TUI, explorer (#101) 2026-07-28 05:10:33 -07:00
playwright.config.ts Migrate logicsrc-web from Vite SPA to Next.js 16 App Router 2026-06-07 03:41:48 +00:00
tsconfig.json Migrate logicsrc-web from Vite SPA to Next.js 16 App Router 2026-06-07 03:41:48 +00:00
vitest.config.ts Migrate logicsrc-web from Vite SPA to Next.js 16 App Router 2026-06-07 03:41:48 +00:00