Skip to content

error: rename console error actions to the error.* module#274

Merged
acoshift merged 1 commit into
mainfrom
error-module
Jun 21, 2026
Merged

error: rename console error actions to the error.* module#274
acoshift merged 1 commit into
mainfrom
error-module

Conversation

@acoshift

Copy link
Copy Markdown
Member

Pure rename to track deploys-app/api#106, which promoted the shipped deployment.errors actions into a first-class error.* resource. This is a rename only — no new UI, no behavior change. The per-deployment Errors tab and the project-level Errors view render identically, so there are no visual changes and no screenshots are needed.

Wire-name / permission mapping

old new
deployment.errors (action) error.list
deployment.errorGet (action) error.get
deployment.errorUpdate (action) error.update
read gate deployment.logs error.list (+ error.get for detail)
triage gate deployment.logs error.update

TS type renames (src/types/api.d.ts, field shapes unchanged)

DeploymentErrorKindErrorKind, DeploymentErrorStatusErrorStatus, DeploymentErrorStatusFilterErrorStatusFilter, DeploymentErrorSortErrorSort, DeploymentErrorIssueErrorIssue, DeploymentErrorOccurrenceErrorOccurrence, DeploymentErrorIssueDetailErrorIssueDetail, DeploymentErrorsArgsErrorListArgs, DeploymentErrorsResultErrorListResult, DeploymentErrorGetArgsErrorGetArgs, DeploymentErrorGetResultErrorGetResult, DeploymentErrorUpdateArgsErrorUpdateArgs. Doc comments mentioning the old action names updated. (No ErrorCreate types added — error.create is for apps/SDKs, not the console UI.)

Files changed

  • src/types/api.d.ts — type renames + doc-comment updates.
  • src/routes/(auth)/(project)/deployment/(detail)/errors/+page.svelteapi.invoke wire names, Api.Error* type refs, READ_PERMISSION = error.list / TRIAGE_PERMISSION = error.update consts and GuardedButton gates.
  • src/routes/(auth)/(project)/errors/+page.svelte — same api.invoke + type renames; READ_PERMISSION = error.list.
  • src/lib/server/mock.ts — handler map keys deployment.errorserror.list, deployment.errorGeterror.get, deployment.errorUpdateerror.update, plus mock type refs.

src/lib/nav.ts is intentionally untouched (the /errors route + nav item stay).

Verification

  • bun check — green (0 errors, 0 warnings)
  • bun lint — green (0 errors)
  • Grep confirms zero remaining DeploymentError / quoted deployment.error* action references.

🤖 Generated with Claude Code

https://claude.ai/code/session_011d4bVuGLnCbcJD9ZvastPH

Pure rename to track api#106, which promoted the shipped deployment.errors
actions into a first-class error.* resource. No new UI and no behavior change;
the per-deployment Errors tab and the project-level Errors view render
identically.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011d4bVuGLnCbcJD9ZvastPH
@deploys-app deploys-app Bot temporarily deployed to pr-274 June 21, 2026 15:31 Destroyed
@deploys-app

deploys-app Bot commented Jun 21, 2026

Copy link
Copy Markdown

Preview deleted (PR closed).

@acoshift acoshift merged commit c5eee0e into main Jun 21, 2026
5 checks passed
@acoshift acoshift deleted the error-module branch June 21, 2026 15:58
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