From bc7e702e6ed46a6caa7ee837de0424b14744a201 Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Sun, 8 Feb 2026 10:38:37 +0100 Subject: [PATCH] fix: show stored UUID instead of Directus ID in settings, add hint text --- js/components/pages/page-settings.js | 19 ++++++++++++++----- locales/de.json | 1 + locales/en.json | 1 + locales/es.json | 1 + locales/fr.json | 1 + locales/it.json | 1 + locales/pt.json | 1 + locales/ru.json | 1 + 8 files changed, 21 insertions(+), 5 deletions(-) diff --git a/js/components/pages/page-settings.js b/js/components/pages/page-settings.js index 5c075da..06734c8 100644 --- a/js/components/pages/page-settings.js +++ b/js/components/pages/page-settings.js @@ -92,7 +92,7 @@ class PageSettings extends HTMLElement { const eyeOffIcon = this.querySelector('#toggle-uid-btn .icon-eye-off') if (display) { display.textContent = this.uidVisible - ? this.user?.id + ? auth.getStoredUuid() : '••••••••-••••-••••-••••-••••••••••••' } if (eyeIcon) eyeIcon.style.display = this.uidVisible ? 'none' : 'block' @@ -101,8 +101,9 @@ class PageSettings extends HTMLElement { // Copy UUID this.querySelector('#copy-uid-btn')?.addEventListener('click', async () => { - if (this.user?.id) { - await navigator.clipboard.writeText(this.user.id) + const uuid = auth.getStoredUuid() + if (uuid) { + await navigator.clipboard.writeText(uuid) this.showToast(t('auth.copy') + ' ✓') } }) @@ -225,8 +226,11 @@ class PageSettings extends HTMLElement {

${t('settings.account')}

${this.isLoggedIn ? /* html */` -
- +
+
+ +

${t('settings.userIdHint')}

+
${'•'.repeat(8)}-••••-••••-••••-${'•'.repeat(12)}
@@ -351,6 +355,11 @@ style.textContent = /* css */` padding: var(--space-sm) 0; } + page-settings .setting-item-column { + flex-direction: column; + align-items: stretch; + } + page-settings .setting-item + .setting-item { border-top: 1px solid var(--color-border); margin-top: var(--space-sm); diff --git a/locales/de.json b/locales/de.json index 5097b32..2e7dd25 100644 --- a/locales/de.json +++ b/locales/de.json @@ -259,6 +259,7 @@ "language": "Sprache", "account": "Konto", "userId": "Benutzer-ID", + "userIdHint": "Wird nicht auf dem Server gespeichert. Nur du kennst diese ID.", "logout": "Abmelden", "login": "Anmelden", "notLoggedIn": "Du bist nicht angemeldet.", diff --git a/locales/en.json b/locales/en.json index b22c986..a22c774 100644 --- a/locales/en.json +++ b/locales/en.json @@ -259,6 +259,7 @@ "language": "Language", "account": "Account", "userId": "User ID", + "userIdHint": "Not stored on the server. Only you know this ID.", "logout": "Logout", "login": "Login", "notLoggedIn": "You are not logged in.", diff --git a/locales/es.json b/locales/es.json index 842eb10..de4f31c 100644 --- a/locales/es.json +++ b/locales/es.json @@ -259,6 +259,7 @@ "language": "Idioma", "account": "Cuenta", "userId": "ID de usuario", + "userIdHint": "No se almacena en el servidor. Solo tú conoces este ID.", "logout": "Cerrar sesión", "login": "Iniciar sesión", "notLoggedIn": "No has iniciado sesión.", diff --git a/locales/fr.json b/locales/fr.json index a8a17d2..46bf54d 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -259,6 +259,7 @@ "language": "Langue", "account": "Compte", "userId": "ID utilisateur", + "userIdHint": "Non enregistré sur le serveur. Vous seul connaissez cet identifiant.", "logout": "Déconnexion", "login": "Connexion", "notLoggedIn": "Vous n'êtes pas connecté.", diff --git a/locales/it.json b/locales/it.json index e74a757..07bb6a3 100644 --- a/locales/it.json +++ b/locales/it.json @@ -259,6 +259,7 @@ "language": "Lingua", "account": "Account", "userId": "ID utente", + "userIdHint": "Non memorizzato sul server. Solo tu conosci questo ID.", "logout": "Esci", "login": "Accedi", "notLoggedIn": "Non hai effettuato l'accesso.", diff --git a/locales/pt.json b/locales/pt.json index 56ab85c..0cc0c45 100644 --- a/locales/pt.json +++ b/locales/pt.json @@ -259,6 +259,7 @@ "language": "Idioma", "account": "Conta", "userId": "ID do Usuário", + "userIdHint": "Não armazenado no servidor. Apenas você conhece este ID.", "logout": "Sair", "login": "Entrar", "notLoggedIn": "Você não está logado.", diff --git a/locales/ru.json b/locales/ru.json index 3a070de..927dd4a 100644 --- a/locales/ru.json +++ b/locales/ru.json @@ -259,6 +259,7 @@ "language": "Язык", "account": "Аккаунт", "userId": "ID пользователя", + "userIdHint": "Не хранится на сервере. Только вы знаете этот ID.", "logout": "Выйти", "login": "Войти", "notLoggedIn": "Вы не вошли в аккаунт.",