Pin phone sheets to the visible viewport, and let people correct login and organizer errors.

This commit is contained in:
adilallo committed 2026-11-11 17:01:44 -07:00
1 parent 27d74e510c
commit 39807ef452
17 files changed
+236 -16

No files matched your search

@@ -158,6 +158,7 @@ export default function LoginForm({
setFormError("");
const trimmed = email.trim().toLowerCase();
if (!EMAIL_PATTERN.test(trimmed)) {
setSent(false);
setEmailError(t("errors.emailInvalid"));
return;
}
@@ -173,6 +174,7 @@ export default function LoginForm({
: undefined;
const result = await requestMagicLink(trimmed, nextPath, draft);
if (result.ok === false) {
setSent(false);
if (result.retryAfterMs != null && result.retryAfterMs > 0) {
const seconds = Math.ceil(result.retryAfterMs / 1000);
setFormError(
@@ -190,6 +192,7 @@ export default function LoginForm({
setLinkExpired(false);
setSent(true);
} catch {
setSent(false);
setFormError(t("errors.network"));
} finally {
setSubmitting(false);