Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Add tooltip to 'dont remember me' on the signin page

Blue Mouse15173258d38d
diff --git a/web/app/pages/Auth/Signin/Signin.tsx b/web/app/pages/Auth/Signin/Signin.tsx
index 4b974af3a..ddafd66f2 100644
--- a/web/app/pages/Auth/Signin/Signin.tsx
+++ b/web/app/pages/Auth/Signin/Signin.tsx
@@ -20,6 +20,7 @@ import Button from '~/ui/Button'
import Checkbox from '~/ui/Checkbox'
import Input from '~/ui/Input'
import { Text } from '~/ui/Text'
+import Tooltip from '~/ui/Tooltip'
import { setAccessToken, removeAccessToken } from '~/utils/accessToken'
import { cn, delay, openBrowserWindow } from '~/utils/generic'
import { setRefreshToken, removeRefreshToken } from '~/utils/refreshToken'
@@ -429,7 +430,12 @@ const Signin = () => {
}))
}
name='dontRemember'
- label={<Text size='sm'>{t('auth.common.noRemember')}</Text>}
+ label={
+ <span className='flex items-center gap-1'>
+ <Text size='sm'>{t('auth.common.noRemember')}</Text>
+ <Tooltip text={t('auth.common.noRememberHint')} className='relative' />
+ </span>
+ }
/>
<Link
to={routes.reset_password}
diff --git a/web/app/ui/Tooltip.tsx b/web/app/ui/Tooltip.tsx
index 8a0517e28..a7da82bee 100644
--- a/web/app/ui/Tooltip.tsx
+++ b/web/app/ui/Tooltip.tsx
@@ -42,7 +42,7 @@ const Tooltip = ({ text, className, tooltipNode, delay = 50 }: TooltipProps) =>
<TooltipTrigger className={className}>
{tooltipNode || (
<CircleHelpIcon
- className='h-5 w-5 fill-slate-700 stroke-gray-50 dark:fill-slate-200 dark:stroke-slate-800'
+ className='size-4.5 fill-slate-700 stroke-gray-50 dark:fill-slate-200 dark:stroke-slate-800'
strokeWidth={1.5}
/>
)}
diff --git a/web/public/locales/de.json b/web/public/locales/de.json
index f7419337c..4f4545961 100644
--- a/web/public/locales/de.json
+++ b/web/public/locales/de.json
@@ -599,6 +599,7 @@
"common": {
"password": "Passwort",
"noRemember": "Nicht erinnern",
+ "noRememberHint": "Aktivieren Sie dieses Kontrollkästchen, um beim Schließen Ihres Browsers abgemeldet zu werden. Ihre Sitzung wird vorübergehend statt dauerhaft gespeichert.",
"repeat": "Passwort wiederholen",
"changePassword": "Passwort ändern",
"hint": "Länger als {{amount}} Zeichen",
diff --git a/web/public/locales/en.json b/web/public/locales/en.json
index a8ab1d93b..27f00045c 100644
--- a/web/public/locales/en.json
+++ b/web/public/locales/en.json
@@ -599,6 +599,7 @@
"common": {
"password": "Password",
"noRemember": "Don't remember me.",
+ "noRememberHint": "Check this box to be logged out when you close your browser. Your session will be stored temporarily instead of permanently.",
"repeat": "Repeat password",
"changePassword": "Change password",
"hint": "Longer than {{amount}} chars",
diff --git a/web/public/locales/fr.json b/web/public/locales/fr.json
index abfc2dfaa..baf940391 100644
--- a/web/public/locales/fr.json
+++ b/web/public/locales/fr.json
@@ -599,6 +599,7 @@
"common": {
"password": "Mot de passe",
"noRemember": "Ne pas se souvenir de moi.",
+ "noRememberHint": "Cochez cette case pour être déconnecté(e) lorsque vous fermez votre navigateur. Votre session sera enregistrée temporairement au lieu de manière permanente.",
"repeat": "Confirmer le mot de passe",
"changePassword": "Changer le mot de passe",
"hint": "Plus de {{amount}} caractères",
diff --git a/web/public/locales/pl.json b/web/public/locales/pl.json
index b46324e72..a5863a51e 100644
--- a/web/public/locales/pl.json
+++ b/web/public/locales/pl.json
@@ -599,6 +599,7 @@
"common": {
"password": "Hasło",
"noRemember": "Nie pamiętaj mnie.",
+ "noRememberHint": "Zaznacz to pole, aby wylogować się po zamknięciu przeglądarki. Twoja sesja zostanie zapisana tymczasowo zamiast na stałe.",
"repeat": "Powtórz hasło",
"changePassword": "Zmień hasło",
"hint": "Dłuższe niż {{amount}} znaków",
diff --git a/web/public/locales/uk.json b/web/public/locales/uk.json
index 2f923ddb7..b1276d034 100644
--- a/web/public/locales/uk.json
+++ b/web/public/locales/uk.json
@@ -599,6 +599,7 @@
"common": {
"password": "Пароль",
"noRemember": "Чужий комп'ютер.",
+ "noRememberHint": "Позначте цей прапорець, щоб вас було виведено з облікового запису після закриття браузера. Ваш сеанс буде збережено тимчасово, а не постійно.",
"repeat": "Повторіть пароль",
"changePassword": "Змінити пароль",
"hint": "Довше {{amount}} символів",