Redesign notes list and editor to match Keep-style mockups.

Add checklist, activity link, location, analyze flag, and audio attachments with a real API-backed masonry UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 19:13:01 +03:30
co-authored by Cursor
parent 32af147237
commit 4e3dbb4e00
7 changed files with 2049 additions and 838 deletions
@@ -0,0 +1,21 @@
-- AlterTable
ALTER TABLE "Note" ADD COLUMN IF NOT EXISTS "checklist" JSONB;
ALTER TABLE "Note" ADD COLUMN IF NOT EXISTS "activityId" TEXT;
ALTER TABLE "Note" ADD COLUMN IF NOT EXISTS "locationText" TEXT;
ALTER TABLE "Note" ADD COLUMN IF NOT EXISTS "analyzeEnabled" BOOLEAN NOT NULL DEFAULT true;
-- CreateIndex
CREATE INDEX IF NOT EXISTS "Note_activityId_idx" ON "Note"("activityId");
-- AddForeignKey
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1 FROM pg_constraint WHERE conname = 'Note_activityId_fkey'
) THEN
ALTER TABLE "Note"
ADD CONSTRAINT "Note_activityId_fkey"
FOREIGN KEY ("activityId") REFERENCES "Activity"("id")
ON DELETE SET NULL ON UPDATE CASCADE;
END IF;
END $$;