Skip to content

fix(frontend): pass empty query to reinit mutation; add typecheck script#56

Open
tobias-gp wants to merge 1 commit into
mainfrom
fix/frontend-typecheck-and-reinit-query
Open

fix(frontend): pass empty query to reinit mutation; add typecheck script#56
tobias-gp wants to merge 1 commit into
mainfrom
fix/frontend-typecheck-and-reinit-query

Conversation

@tobias-gp
Copy link
Copy Markdown
Contributor

Summary

  • Pass query: {} when calling the reinit mutation. The route uses zValidator("query", reinitQuerySchema) with an optional reset flag, so Hono's RPC client makes the query argument required (even though every field is optional). The call site was a real TypeScript error on main.
  • Add a typecheck script (tsc --noEmit) to @archmax/frontend. Without it, pnpm typecheck (and the CI Lint & Typecheck job) silently skipped this package, and the Docker build runs vite build directly (no tsc), which is how the error reached main unnoticed.

Test plan

  • pnpm typecheck — now runs across 8 packages (was 7) and passes
  • pnpm build — full workspace build succeeds, including tsc && vite build for frontend
  • No lints introduced
  • CI Lint & Typecheck passes
  • CI Docker build passes

Made with Cursor

The connections reinit route uses zValidator("query", ...) with an
optional `reset` flag. The Hono client's inferred type makes the
`query` argument required even when all fields are optional, so the
call site was a TypeScript error.

CI never caught this because the frontend lacked a `typecheck` script
(so `pnpm typecheck` skipped it) and the Docker build runs
`vite build` directly, which doesn't type-check. Add the missing
script so future regressions surface in the Lint & Typecheck job.

Co-authored-by: Cursor <cursoragent@cursor.com>
@railway-app
Copy link
Copy Markdown

railway-app Bot commented May 11, 2026

🚅 Deployed to the archmax-pr-56 environment in archmax SemLayer

Service Status Web Updated (UTC)
archmax_standalone_with_volume ✅ Success (View Logs) May 11, 2026 at 5:16 am
archmax_external_dbs ✅ Success (View Logs) May 11, 2026 at 5:15 am
archmax_standalone ✅ Success (View Logs) May 11, 2026 at 5:15 am

@github-actions
Copy link
Copy Markdown

Docker image ready

docker pull ghcr.io/archmaxai/archmax:pr-56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant