fix: resolve runtime errors and missing routes
- Fix $effect orphan error: move $effect calls from store constructors to initEffects() methods called from component context - Fix icon rendering: create DynamicIcon component to render Lucide icons from name strings instead of displaying raw text - Add /boards/new route for board creation - Fix seed emails (admin@launcher.local / user@launcher.local) to pass Zod email validation
This commit is contained in:
+4
-4
@@ -29,10 +29,10 @@ async function main() {
|
||||
// --- Admin User ---
|
||||
const adminPassword = await bcrypt.hash('admin123', 12);
|
||||
const admin = await prisma.user.upsert({
|
||||
where: { email: 'admin@localhost' },
|
||||
where: { email: 'admin@launcher.local' },
|
||||
update: {},
|
||||
create: {
|
||||
email: 'admin@localhost',
|
||||
email: 'admin@launcher.local',
|
||||
password: adminPassword,
|
||||
displayName: 'Administrator',
|
||||
role: 'admin',
|
||||
@@ -44,10 +44,10 @@ async function main() {
|
||||
// --- Regular User ---
|
||||
const userPassword = await bcrypt.hash('user123', 12);
|
||||
const regularUser = await prisma.user.upsert({
|
||||
where: { email: 'user@localhost' },
|
||||
where: { email: 'user@launcher.local' },
|
||||
update: {},
|
||||
create: {
|
||||
email: 'user@localhost',
|
||||
email: 'user@launcher.local',
|
||||
password: userPassword,
|
||||
displayName: 'Demo User',
|
||||
role: 'user',
|
||||
|
||||
Reference in New Issue
Block a user