You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(webapp): make the new-organization form submit work on the first click
The form submitted through the client-side router, which receives the
action's redirect as a bodiless response it has to interpret itself. If
that redirect was lost on the way, the router committed empty action data
and left the user sitting on /orgs/new with the typed name still in the
field and no error shown — while the organization had in fact been
created, so clicking Create again made a second one.
Submit the form as a document POST instead. The server then returns an
ordinary redirect and the browser follows it, so completing the form no
longer depends on the client interpreting the response. A genuine failure
is rendered server-side, keeping the submitted values and showing the
error message.
Co-Authored-By: Claude <noreply@anthropic.com>
Creating an organization sometimes left you on the form with the name still filled in and no error shown, even though the organization had already been created, so clicking Create again made a duplicate. Creating an organization now reliably takes you to it, and if it genuinely fails you get an error message instead of silence.
0 commit comments