feat: implementing experience page (#718)

* feat: add color scheme toggle
* feat: colorScheme stored in UserSettings model
* feat: add stories
* fix: AnimatePresence exit not working

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
Jérémy M
2023-07-18 19:47:27 +02:00
committed by GitHub
parent 4ec93d4b6a
commit 19e165fc05
137 changed files with 2792 additions and 75 deletions

View File

@ -172,17 +172,42 @@ model User {
refreshTokens RefreshToken[]
comments Comment[]
authoredCommentThreads CommentThread[] @relation(name: "authoredCommentThreads")
assignedCommentThreads CommentThread[] @relation(name: "assignedCommentThreads")
settings UserSettings @relation(fields: [settingsId], references: [id])
settingsId String @unique
/// @TypeGraphQL.omit(input: true, output: true)
deletedAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
authoredCommentThreads CommentThread[] @relation(name: "authoredCommentThreads")
assignedCommentThreads CommentThread[] @relation(name: "assignedCommentThreads")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@map("users")
}
enum ColorScheme {
Light
Dark
System
}
model UserSettings {
id String @id @default(uuid())
/// @Validator.IsString()
/// @Validator.IsOptional()
colorScheme ColorScheme @default(System)
/// @Validator.IsString()
locale String
user User?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@map("user_settings")
}
/// @TypeGraphQL.omit(input: true)
model Workspace {
/// @Validator.IsString()