Skip to content

fix(ui): handle unusable trigger test error responses - #1241

Closed
scttbnsn wants to merge 1 commit into
dev/v1.8from
fix/v1.8-trigger-response-errors
Closed

scttbnsn wants to merge 1 commit into
dev/v1.8from
fix/v1.8-trigger-response-errors

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

What changed

Trigger tests no longer show a JavaScript exception when an unsuccessful response contains JSON null. Missing, blank and non-string error messages use the existing translated failure text and HTTP status. Nonblank provider diagnostics are preserved.

POST routing, credentials, request bodies, exact HTTP 200 success behavior, successful payloads and existing JSON/network diagnostics are unchanged. No automatic retries and no backend, scanner or authorization changes.

Verification

  • Test-first: 32 genuine regression failures before implementation, six preservation checks already passing.
  • 183 focused tests across nine suites pass, plus Vue typechecking and Biome.
  • Full normal pre-push gate passed in 361.59 seconds, including backend/UI coverage thresholds, both builds, script/workflow/website tests, lint, static analysis and workflow security checks.
  • Service cases cover all 17 existing locale keys, JSON null/primitive/array/object bodies, unusable error fields, preserved provider diagnostics, encoded local/agent paths and unchanged success/network/parse behavior.
  • Real TriggersView and service tests in French and Arabic show the failure and recover after a second explicit click. Requests are intercepted with fake fetch; no real triggers ran and no live-browser QA is claimed.

Review scope is frontend response handling, not trigger execution policy or new subsystems.

@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

Deployment failed for project drydock-website with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/codeswhat?upgradeToPro=build-rate-limit

@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: afd22db2-759e-43ed-a3d6-15169c0ef69d

📥 Commits

Reviewing files that changed from the base of the PR and between 6bfc736 and 90ac90b.

⛔ Files ignored due to path filters (1)
  • CHANGELOG.md is excluded by !CHANGELOG.md
📒 Files selected for processing (4)
  • ui/src/services/trigger.ts
  • ui/tests/services/trigger-response-errors.spec.ts
  • ui/tests/services/trigger.spec.ts
  • ui/tests/views/TriggersView.response-errors.spec.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

Consolidated into #1243 at ac1dbe0. Original commit and authorship are preserved. The combined 14-file change passed 298 focused tests and the full normal pre-push gate. Closing this duplicate review entry, not claiming the fix merged. Branch preserved.

@scttbnsn scttbnsn closed this Sep 18, 2026
@scttbnsn
scttbnsn deleted the fix/v1.8-trigger-response-errors branch October 3, 2026 13:04
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