-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds a layout for the app route group #42
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I receive the following warnings in the console. I would highly recommend that we handle warnings as errors in the development process.
hook.js:608 Image with src "/logos/sokosumi-logo-black.svg" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
Read more: https://nextjs.org/docs/api-reference/next/image#priority
dashboard:1 The resource http://localhost:3000/_next/static/css/app/layout.css?v=1741330991996 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
web-app/src/app/(app)/components/left-panel/mobile-left-panel.tsx
Outdated
Show resolved
Hide resolved
I am checking this warnings now |
About preload warning: I just fixed. (caused by image src being "#") About image priority issue: I am going to fix that in another PR which update logo components |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should componetize this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this component simple using nav-menu
and nav-link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets also extract the component here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I extracted nav-menu
from main-nav
and mobile-nav
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we implement a specific mobile design? As I understand it, we are focusing on a responsive design for desktop that should work reasonably well on mobile. However, there should not be an explicit mobile implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend to name it just header.tsx
, because we are already in the (app)
folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why I prefixed app
before header
and sidebar
, is that
we have Sidebar
(from shadcn), which makes name conflicts
So that is why I named it as app-sidebar
Well do you prefer the say import Sidebar as ShadcnSidebar
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the issue with the Sidebar, that makes sense to name the export it as AppSidebar
, but I would rename the folder.
Sorry but naming is for me important... I proposed a change how I think it makes it clear to understand even in 6 months.
Rename AppHeader
to Header
-> 7734386
Rename app-sidebar
folder to sidebar
-> 57a2704
What do you think? Any opinion about these changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, then Let's stick to that convention.
Never prefix components folder or exported name with parent folder
Then we can use import as
and default export Sidebar
instead of AppSidebar
Also the folder |
I don't implement any specific mobile design. If you are talking about Main nav is top sticky nav bar, |
Make app layout (with responsiveness)