Add read-only Noya admin panel with assignments and UX polish.
Ship admin auth, user overview, assessments, chats, assignment filters/export, security hardening, and a separate desktop admin shell with clearer assessment answers. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,8 +8,7 @@ export const profileNameSchema = z
|
||||
.min(1, 'Name cannot be empty')
|
||||
.max(NAME_MAX_LENGTH, `Name must be at most ${NAME_MAX_LENGTH} characters`);
|
||||
|
||||
export const PROFILE_AGE_MIN = 18;
|
||||
export const PROFILE_AGE_MAX = 100;
|
||||
export const PROFILE_AGE_MIN = 12;
|
||||
|
||||
export const profileAgeSchema = z
|
||||
.number({
|
||||
@@ -17,8 +16,7 @@ export const profileAgeSchema = z
|
||||
invalid_type_error: 'Age must be an integer',
|
||||
})
|
||||
.int('Age must be an integer')
|
||||
.min(PROFILE_AGE_MIN, `Age must be at least ${PROFILE_AGE_MIN}`)
|
||||
.max(PROFILE_AGE_MAX, `Age must be at most ${PROFILE_AGE_MAX}`);
|
||||
.min(PROFILE_AGE_MIN, `Age must be at least ${PROFILE_AGE_MIN}`);
|
||||
|
||||
export const patchProfileSchema = z
|
||||
.object({
|
||||
|
||||
Reference in New Issue
Block a user