Skip to content

Handwritten notes filter #120

@TyHil

Description

@TyHil

Overview

Filter by whether a note is handwritten.

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 #117.

After that, filter by this value on the src\app\notes\[...slug]\page.tsx page. Add a dropdown at the top that let's the user leave it blank, filter to only handwritten, or filter to only digital notes. Reference https://github.com/UTDNebula/utd-rooms/blob/develop/src/components/Filters.tsx and https://github.com/UTDNebula/utd-trends/blob/develop/src/components/search/Filters/Filters.tsx. These are much more complicated than your filter needs to be but could be helpful for design and use of MUI.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions