Skip to content

Handwritten notes selection #117

@TyHil

Description

@TyHil

Overview

Add a handwritten boolean to notes.

Proposal

In src\server\db\schema\file.ts add handwirtten: boolean().notNull().default(false), to the file schema. Then push these changes to the database by running these commands in the terminal.

npm run drizzle:generate
npm run drizzle:push

The above will also be done in #120.

After that, set this boolean when a user creates a new note. Update the createFileFormSchema in src\utils\formSchemas.ts to take a handwritten value. Update the create trpc procedure in src\server\api\routers\file.ts to insert that handwritten value into the db. Finally, add a MUI checkbox to src\app\notes\create\NoteForm.tsx to allow the user to select whether their note is handwritten.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions