From e7d1a949e8378c51041595a2747f5fb3111a7845 Mon Sep 17 00:00:00 2001 From: BT Date: Mon, 4 May 2026 00:43:50 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20**Nostr=20Login:**=20Improved=20use?= =?UTF-8?q?r=20feedback=20and=20accessibility=20for=20login=20flow.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 🔄 Added `x-effect` to lock page scrolling during login progress. - 🛡️ Disabled login button and added loading indicators when `nostrLoginInProgress`. - 🖼️ Introduced full-viewport progress overlay with accessible attributes and transitions. - 🌐 Updated translations for signing states and instructions. --- lang/en.json | 4 ++ resources/views/livewire/auth/login.blade.php | 52 ++++++++++++++++++- 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/lang/en.json b/lang/en.json index 7472c72..87ce1b9 100644 --- a/lang/en.json +++ b/lang/en.json @@ -306,6 +306,10 @@ "Log in": "Log in", "log in": "log in", "Log in mit Nostr": "Log in with Nostr", + "Signiere…": "Signing…", + "Signiere mit deinem Nostr-Wallet": "Signing with your Nostr wallet", + "Bitte bestätige die Login-Anfrage in deiner Browser-Extension. Du wirst gleich automatisch weitergeleitet.": "Please confirm the login request in your browser extension. You will be redirected automatically.", + "Schließe dieses Fenster nicht.": "Do not close this window.", "Log in to your account": "Log in to your account", "Log Out": "Log Out", "Log out": "Log out", diff --git a/resources/views/livewire/auth/login.blade.php b/resources/views/livewire/auth/login.blade.php index 371381e..190ae67 100644 --- a/resources/views/livewire/auth/login.blade.php +++ b/resources/views/livewire/auth/login.blade.php @@ -339,6 +339,7 @@ class extends Component {
@@ -361,8 +362,18 @@ class extends Component {
- {{ __('Log in mit Nostr') }} + + {{ __('Log in mit Nostr') }} + + +
{{ __('Login with lightning ⚡') }} @@ -433,4 +444,41 @@ class extends Component { + + {{-- Full-viewport progress overlay. Visible while the wallet-signing + round-trip is running. Locks input by capturing pointer events and + intercepting Escape/Tab so the user cannot interact with anything + underneath until the redirect resolves (or the flow errors out). --}} +