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.
Overview
Filter by whether a note is handwritten.
Proposal
In
src\server\db\schema\file.tsaddhandwirtten: boolean().notNull().default(false),to the file schema. Then push these changes to the database by running these commands in the terminal.The above will also be done in #117.
After that, filter by this value on the
src\app\notes\[...slug]\page.tsxpage. 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.