feat: Make response notes resolvable (#801)

* update notes ux

* add capability to resolve notes

* add migration

* update text color

* prevent updating unchanged note

* add isEdited to ResponseNote

* combine migrations into one

* simplify services

* fix UI issues

---------

Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
This commit is contained in:
tyjkerr
2023-09-18 10:34:16 +07:00
committed by GitHub
parent 3b0f16878d
commit bf67af4dca
9 changed files with 164 additions and 64 deletions
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "ResponseNote" ADD COLUMN "isEdited" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "isResolved" BOOLEAN NOT NULL DEFAULT false;
+2
View File
@@ -124,6 +124,8 @@ model ResponseNote {
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
userId String
text String
isResolved Boolean @default(false)
isEdited Boolean @default(false)
}
model Tag {