Repository navigation
fix(monitors): say why Next refuses an invalid monitor - #1107
krish-kant wants to merge 4 commits into
Conversation
Heartbeat, synthetic and MCP rules attach errors to fields that render no inline message, so Next did nothing. A failed submit now toasts the first validation message.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Playwright screenshots96 changed · 0 new · 0 failed vs main Open visual review (222 screenshots) · CI run Updated for commit |
The first version also toasted errors already shown under their field, doubling the text (two E2E screenshot specs matched it twice). The toast now runs after the error render and only when no inline message is visible.
|
@coderabbitai review |
Action not completed
|






Some monitor types validate fields that show no inline message: heartbeat interval and grace, the synthetic monitor's selected test, and MCP settings. When those failed, Next did nothing: no request and no message.
The form now passes an invalid handler to
handleSubmit. It shows a "Validation Error" toast with the first validation message. Inline field messages are unchanged.Test:
monitor-form.invalid.spec.tsxsubmits a synthetic monitor with no test selected and expects the toast. It fails without the fix.Summary by CodeRabbit