Skip to content

add pdf uploads to workspace ,SO CooL bro#748

Merged
moehdotdev merged 2 commits into
mainfrom
home-uiux-changes
May 12, 2026
Merged

add pdf uploads to workspace ,SO CooL bro#748
moehdotdev merged 2 commits into
mainfrom
home-uiux-changes

Conversation

@moehdotdev

@moehdotdev moehdotdev commented May 12, 2026

Copy link
Copy Markdown
Member

what changed

pdf support in workspace

  • pdfs now live alongside notes in each table fetched, displayed, and sorted together by updatedAt
  • added PdfGridCard and PdfListCard components that match the existing note card patterns (grid/list views, mobile fallback to grid)
  • PdfCardMenu handles open, open original file, and delete with a confirmation dialog
  • double-click to rename works on both card variants, same as notes

new create button

  • replaced the old single "new note" button with a split WorkingspaceNewDropdownBtn
  • primary action is either "new note" or "upload pdf" it remembers your last choice via localStorage
  • pdf upload goes through convex storage: generates an upload url → posts the file → saves the record

backend (convex)

  • pdfs schema now has a notesTableId field and a matching index so pdfs can be scoped to a table
  • added getPdfsByTableId, getPdfById, updatePdf, deletePdf queries/mutations
  • sendPdf now validates workspace + table ownership before inserting
  • deleteTable now cleans up pdfs (storage + db records) when a table is deleted
  • added getOrCreateTable mutation for upsert-style table creation

layout & ui fixes

  • pdf routes (/home/[id]/pdf/...) skip the scroll container padding and top fade the pdf viewer needs the full height
  • GlobalFolderDropUpload added to HomeClientLayout (drop-to-upload support)
  • breadcrumb now renders "PDF" correctly for the pdf path segment
  • search placeholder updated to "search notes and uploads..."
  • empty state copy updated to mention uploads
  • added @anaralabs/lector and pdfjs-dist for pdf rendering

small polish

  • fixed missing newline at end of globals.css
  • added ::selection styles scoped to .pdf-viewer-shell so text selection color matches the theme in the pdf viewer
  • toast and dialog close button spacing/style tweaks
  • destructive toast now uses card background instead of red bg for a softer look

@vercel

vercel Bot commented May 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
notevo Ready Ready Preview, Comment May 12, 2026 7:03pm

@moehdotdev moehdotdev merged commit aeb928b into main May 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant