🧑‍💻 feat(dx): improve local development experience

- Add dev credentials pre-fill on login page (dev@manacore.local)
- Add initialPassword prop to LoginPage component
- Add seed script for dev user (pnpm db:seed:dev in mana-core-auth)
- Add OLLAMA_URL to .env.development for Mac Mini connection
This commit is contained in:
Till-JS 2026-01-27 16:58:11 +01:00
parent ca00672016
commit e72f3b7865
5 changed files with 138 additions and 4 deletions

View file

@ -80,6 +80,8 @@
verified?: boolean;
/** Pre-fill email field (e.g., after email verification) */
initialEmail?: string;
/** Pre-fill password field (for dev mode) */
initialPassword?: string;
}
let {
@ -102,6 +104,7 @@
translations = {},
verified = false,
initialEmail = '',
initialPassword = '',
}: Props = $props();
const t = $derived({ ...defaultTranslations, ...translations });
@ -110,7 +113,7 @@
let error = $state<string | null>(null);
let errorField = $state<'email' | 'password' | 'general' | null>(null);
let email = $state(initialEmail);
let password = $state('');
let password = $state(initialPassword);
let showPassword = $state(false);
let rememberMe = $state(false);
let showSuccess = $state(false);