Skip to content

Display server errors in modals, don't use toasts#3192

Merged
david-crespo merged 1 commit intomainfrom
modal-error-display
Apr 22, 2026
Merged

Display server errors in modals, don't use toasts#3192
david-crespo merged 1 commit intomainfrom
modal-error-display

Conversation

@david-crespo
Copy link
Copy Markdown
Collaborator

@david-crespo david-crespo commented Apr 21, 2026

Found this while working on #3178. Instance resize, attach floating IP, and attach ephemeral IP all had onErrors that triggered toasts on server error. The first two also displayed the error in the modal. Ephemeral IP did not. This PR gets rid of the toasts and puts an error display into attach ephemeral IP. It doesn't look very good (maybe we should move the error and give it a little box or something), but it's basically the same as it already was, minus the extra toasts.

(Screenshot is from playwright, hence the weird missing submit button — I think it's right in the middle of switching between the button text and the loading spinner.)

Screenshot 2026-04-21 at 5 20 23 PM

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Apr 21, 2026 10:22pm

Request Review

@david-crespo david-crespo changed the title display server errors in modals, don't use toasts Display server errors in modals, don't use toasts Apr 21, 2026
@david-crespo david-crespo merged commit 59f225e into main Apr 22, 2026
7 checks passed
@david-crespo david-crespo deleted the modal-error-display branch April 22, 2026 09:37
@benjaminleonard
Copy link
Copy Markdown
Contributor

Nice, in the side modals we add it at the top in an error message block. Should probably just follow that pattern.

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.

2 participants