Skip to content

Feature/note detail page#172

Open
SXT230118 wants to merge 20 commits into
developfrom
feature/note-detail-page
Open

Feature/note detail page#172
SXT230118 wants to merge 20 commits into
developfrom
feature/note-detail-page

Conversation

@SXT230118
Copy link
Copy Markdown

@SXT230118 SXT230118 commented Apr 15, 2026

Single notes page design issue; Note page has somewhat matching UI to the Figma. It works but I need to fix some of the proportions.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 15, 2026

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

Project Deployment Actions Updated (UTC)
utd-notebook Ready Ready Preview, Comment May 5, 2026 10:54pm

Request Review

@SXT230118 SXT230118 linked an issue Apr 15, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Member

@TyHil TyHil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is a great start! Just some things to start changing then hit the rerequest review button when you're done.

Let's use the royal color on light more and cornflower-300 color on dark mode for the accents, icons, and things, to match the rest of the site. And make sure your page works on dark mode too. It's ok to deviate from the design some.

Comment thread src/components/sections/PdfViewer.tsx Outdated
Comment thread src/components/sections/SaveButton.tsx Outdated
Comment thread src/components/sections/SaveButton.tsx
Comment thread tsconfig.json Outdated
Comment thread src/app/notes/[id]/page.tsx
Comment thread src/app/notes/[id]/page.tsx Outdated
Comment thread src/components/sections/NoteInfoPanel.tsx Outdated
Comment thread src/components/sections/NoteInfoPanel.tsx Outdated
Comment thread src/components/sections/NoteInfoPanel.tsx Outdated
Comment thread src/components/sections/NoteInfoPanel.tsx
…rthe notes. May change when I figure out how the iFrame works.
… still working on that, but I managed to figure out what was requiring the second reload before the pdf showed up.
Copy link
Copy Markdown
Member

@TyHil TyHil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! I think this is almost there! Just some smaller things I noticed to change before it's done

import { Collapse, IconButton } from '@mui/material';
import Link from 'next/link'; // To link back to specific profiles
import { useState } from 'react';
import NoteEditButton from '@src/components/sections/NoteEditButton';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add the delete and report buttons as well?

{file.publicUrl ? (
{/* Scrollable area with white card background for the PDF */}
<div className="h-hull w-full max-w-6xl">
<div className="mx-auto rounded-2xl overflow-hidden shadow-lg max-w-[1200px] bg-white dark:bg-neutral-800">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of these 2 nested divs over the iframe try:

<BaseCard className="h-hull w-full max-w-6xl">
  <iframe
    src={file.publicUrl}
    title={file.name}
    className="w-full h-[80vh] rounded border-0"
  />
</BaseCard>

That way we're using the standardized corner radius and shadow from the BaseCard


return (
<div className="w-full max-w-6xl">
<div className="pointer-events-auto bg-white dark:bg-neutral-800 rounded-2xl shadow-lg border-l-4 border-royal dark:border-cornflower-300">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of these 2 outer divs try using <Panel className="w-full pb-2 border-l-4 border-royal dark:border-cornflower-300" smallPadding> for the same reasons as the last comment.

<div className="flex items-center gap-3 min-w-0 flex-1">
<SaveButton fileId={fileId} iconOnly />
<h1 className="font-bold text-lg leading-tight truncate text-royal dark:text-cornflower-300">
{displayTitle}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having the course in displayTitle can you just use the {name} here. That way we can add the course down next to the author and professor as another hyperlink!

<div className="w-full max-w-6xl">
<div className="pointer-events-auto bg-white dark:bg-neutral-800 rounded-2xl shadow-lg border-l-4 border-royal dark:border-cornflower-300">
{/* Top piece, always visible, has the class, section, note name, and rating */}
<div className="flex items-center justify-between px-5 pt-4 pb-2 gap-4">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding flex-wrap to this div then removing min-w-0 from the div inside and removing truncate from the div inside that will help with mobile

<div className="w-full max-w-6xl">
<div className="pointer-events-auto bg-white dark:bg-neutral-800 rounded-2xl shadow-lg border-l-4 border-royal dark:border-cornflower-300">
{/* Top piece, always visible, has the class, section, note name, and rating */}
<div className="flex items-center justify-between px-5 pt-4 pb-2 gap-4">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try removing the pt-4 pb-2 here on this div and changing the pb-4 on the next div (inside the Collapse) to a pt-2. This will make the NoteInfoPanel look largely the same but it'll collapse smaller, since the padding is inside the Collapse.

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.

Single notes page design

2 participants