Player functionality will be implemented here
+{error.message}
} + {errors.username &&{errors.username.message}
}This is your public display name. It can be your real name or a pseudonym. You can only change this once every 30 days.
@@ -18,10 +18,10 @@{error.message}
} + {errors.email &&{errors.email.message}
}You can manage verified email addresses in your email settings.
@@ -31,11 +31,11 @@{error.message}
} + {errors.bio &&{errors.bio.message}
}You can @mention other users and organizations to link to them.
@@ -58,10 +58,18 @@ import './style.css'; export default { // Reactive state - username: '', - email: '', - bio: '', - error: null, + data() { + return { + username: '', + email: '', + bio: '', + errors: { + username: null, + email: null, + bio: null + } + } + }, // Validation schema schema: z.object({ @@ -77,10 +85,20 @@ export default { email: this.email, bio: this.bio }); + + // Clear previous errors + this.errors = { + username: null, + email: null, + bio: null + }; + if (result.success) { callback(result.data); } else { - this.error = result.error.errors[0]; + result.error.errors.forEach(err => { + this.errors[err.path[0]] = err; + }); } }, diff --git a/web/app/settings/style.css b/web/app/settings/style.css new file mode 100644 index 00000000..b833d162 --- /dev/null +++ b/web/app/settings/style.css @@ -0,0 +1,18 @@ +/* Settings page styles */ +.settings-container { + padding: 20px; + max-width: 1200px; + margin: 0 auto; +} + +.settings-section { + margin-bottom: 30px; + border-bottom: 1px solid #eee; + padding-bottom: 20px; +} + +.settings-title { + font-size: 1.5rem; + margin-bottom: 15px; + color: #333; +} diff --git a/web/desktop/dashboard/dashboard.css b/web/desktop/dashboard/dashboard.css index 0ea2d223..fc6dd156 100644 --- a/web/desktop/dashboard/dashboard.css +++ b/web/desktop/dashboard/dashboard.css @@ -71,3 +71,7 @@ .download-btn:hover { background: #2563eb; } + +.dashboard-section { + padding: 1rem; +} diff --git a/web/desktop/dashboard/dashboard.html b/web/desktop/dashboard/dashboard.html index afa7c2d1..a882218e 100644 --- a/web/desktop/dashboard/dashboard.html +++ b/web/desktop/dashboard/dashboard.html @@ -1,16 +1,8 @@ - - - -