Skip to content

Conversation

@jzgom067
Copy link
Member

@jzgom067 jzgom067 commented Oct 9, 2025

What?

This PR adds a link on the logo to the landing page.

It also further organizes the header components from the /ui/components folder into the /ui/components/header folder.

Why?

It was driving me crazy having to change the URL instead of clicking on the logo when testing.

It's also just a thing that every website does.

How?

The Link component works wonders.

Testing?

I clicked on the logo. It took me to the landing page. Seems fine to me.

liug88 and others added 30 commits June 1, 2025 23:27
note: still need to check mobile functionaility
Updated the app's branding from 'tomeeto' to 'plancake' across layout, header, and metadata. Redesigned the landing page with new sections, improved visual hierarchy, and updated color scheme. Added new CSS utility classes for fonts and text outlines. Refactored header navigation for better accessibility and branding consistency.
Replaces 'tomeeto' branding with 'plancake', updates color variables and classes in globals.css, and introduces new visual styles and assets for the homepage. Feature icons are now images instead of react-icons, and new utility classes are added for text styling. The homepage sections and buttons have updated colors and typography to match the new brand identity.
Replaces image-based logo in the header with a new custom Logo component and updates header layout. Refactors the hero section for improved typography and layout. Adds new color variables and utility classes to globals.css, and introduces a Tailwind config file with custom colors and fonts.
Last thing to do is fix the hamburger menu issues.
Replaced inline styles in ScheduleGrid with Tailwind utility classes and custom grid column utilities. Added support for .mdx files and new gridTemplateColumns to Tailwind config for improved maintainability and consistency.
Co-authored-by: Copilot <[email protected]>
mirmirmirr and others added 26 commits October 8, 2025 13:11
We finally have a real logout button.
This might be a slight accessibility issue, but we'll see.
The log in button was changed to a Link so it wasn't needed.
Now when logging in and out, the account button will update immediately with your new login status.
When on the /new-event page, it will hide the button. Makes sense.
It looked weird to have both the new event and log in buttons be red around the frosted glass theme toggle.

Also, the log in button has an annoying 1.5 padding instead of 2, just to keep the size consistent with the theme toggle and account buttons. The joys of using outlines.
I missed these on the initial header folder creation.
Copilot AI review requested due to automatic review settings October 9, 2025 16:44
@jzgom067 jzgom067 closed this Oct 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a comprehensive refactor that adds a landing page link to the logo while significantly reorganizing the application's component structure. The changes establish a new header layout with navigation and reorganize UI components into more logical folder hierarchies.

  • Implements new header system with logo link, navigation, and user controls
  • Refactors component organization from flat /ui/components to structured /ui/components/header and other specialized folders
  • Adds new authentication pages and scheduling functionality with timezone support

Reviewed Changes

Copilot reviewed 75 out of 79 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
package.json Updates Next.js version and adds new dependencies for UI components
next.config.ts Adds API proxy configuration for backend communication
app/layout.tsx Updates to use new header component and providers structure
app/ui/components/header/ New header components including logo with landing page link
app/ui/components/schedule/ Refactored scheduling components with improved architecture
app/_lib/ New library structure for shared utilities and types

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +35 to +36
console.error("Fetch error:", err);
alert("An error occurred. Please try again.");
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

Generic error message 'An error occurred. Please try again.' is not helpful for debugging email verification issues. Consider providing more specific error messages for different failure scenarios.

Copilot uses AI. Check for mistakes.
}
}

// REPLACE THIS WITH API DATA !!!!!!!!!
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

TODO comment with excessive exclamation marks should be replaced with proper implementation or converted to a more professional TODO/FIXME format.

Suggested change
// REPLACE THIS WITH API DATA !!!!!!!!!
// TODO: Confirm this uses the correct API data source

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +32
<Link href="/">
<div className="font-display text-2xl leading-[20px] font-normal text-lion [-webkit-text-stroke:1px_white]">
plan
</div>
<div className="font-display text-2xl leading-[20px] font-normal text-lion [-webkit-text-stroke:1px_black]">
cake
</div>
</Link>
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

Logo link lacks accessible text for screen readers. Add aria-label='Go to homepage' or similar descriptive text to the Link component.

Copilot uses AI. Check for mistakes.

return (
<div className="relative">
<button type="button" onClick={toggleMenu} className="focus:outline-none">
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

Hamburger menu button lacks accessible labeling. Add aria-label='Toggle navigation menu' and aria-expanded={isOpen} for screen reader users.

Suggested change
<button type="button" onClick={toggleMenu} className="focus:outline-none">
<button
type="button"
onClick={toggleMenu}
className="focus:outline-none"
aria-label="Toggle navigation menu"
aria-expanded={isOpen}
>

Copilot uses AI. Check for mistakes.
Comment on lines +71 to +74
eventLink={
window.location.origin
? `${window.location.origin}/event/${eventCode}`
: ""
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

Accessing window.location.origin during server-side rendering will cause hydration errors. Use useEffect to set this value client-side or use Next.js useRouter hook.

Copilot uses AI. Check for mistakes.
placeholder="add event name"
className="w-full border-b-1 border-violet p-1 text-2xl focus:outline-none md:w-2/4 dark:border-gray-400"
/>
<button className="hidden rounded-full border-2 border-blue bg-blue px-4 py-2 text-sm text-white transition-shadow hover:shadow-[0px_0px_32px_0_rgba(61,115,163,.70)] md:flex dark:border-red dark:bg-red dark:hover:shadow-[0px_0px_32px_0_rgba(255,92,92,.70)]">
Copy link

Copilot AI Oct 9, 2025

Choose a reason for hiding this comment

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

Button is missing type='button' attribute and should have a more descriptive aria-label since it's a primary action button.

Suggested change
<button className="hidden rounded-full border-2 border-blue bg-blue px-4 py-2 text-sm text-white transition-shadow hover:shadow-[0px_0px_32px_0_rgba(61,115,163,.70)] md:flex dark:border-red dark:bg-red dark:hover:shadow-[0px_0px_32px_0_rgba(255,92,92,.70)]">
<button
type="button"
aria-label="Create new event"
className="hidden rounded-full border-2 border-blue bg-blue px-4 py-2 text-sm text-white transition-shadow hover:shadow-[0px_0px_32px_0_rgba(61,115,163,.70)] md:flex dark:border-red dark:bg-red dark:hover:shadow-[0px_0px_32px_0_rgba(255,92,92,.70)]"
>

Copilot uses AI. Check for mistakes.
@jzgom067 jzgom067 deleted the logo-link branch October 14, 2025 16:14
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.

5 participants