-
Notifications
You must be signed in to change notification settings - Fork 86
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
feat(next): done - add title to pages #539
Conversation
Graphite Automations"Auto-assign PRs to author" took an action on this PR • (07/04/24)1 assignee was added to this PR based on Rahul Mishra's automation. |
Hey @chrisdadev13 |
This reverts commit de8892b.
Sure thing! I already have the changes there 🙂 I just have to prepare it |
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 bug opening convos because the "TooltipProvider" wasn't present
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 fixed this issue in a recent PR, this issue was introduced in a previous PR. The fixed PR is not merged yet.
You can fix the issue in your PR for now. I will rebase this PR before merging
There's a different way to add metadata to client components, but I didn't want to change too much the structure or add too many files in the PR so far. Anyway, it could have been done like they do in Dub.co and Cal.com (I think). They have two pages, a client component page and a server component page (in this case the parent component). So instead of adding a "Metadata" componenent as I did here, we would have something like: // web/src/app/page-client.tsx
"use client";
export default function ClientPage(){
return (
<>
<h1>Client page</h1>
</>
)
}
// web/src/app/page.tsx
import { Metadata } from 'next'
import ClientPage from "./page-client";
export const metadata: Metadata = {
title: '...',
description: '...',
}
export default function Page(){
return <ClientPage />
} I think this way is better and if you guys are willing to review like 30(?) files change from a completely strange, I can do it like this 😀👍 @McPizza0 |
Thats an interesting approach @chrisdadev13 we're generally using |
Yes, that is true, and sadly at this time the That example I left in the comment, is how they actually recommend adding |
I'll close this one to make the changes more focused, here is the PR to add metadata dynamically on convo routes and statically on the page to create a new convo #542 |
What does this PR do?
Hi everyone! This PR adds document titles to each page indicating information about the page/convo. I started this task in the NextJS workspace, but when I saw that the issue was specified for Nuxt/Vue I decided to add the change here too, I'm not as good at Nuxt as I am at Next (even though the change is pretty straight forward) I would appreciate your feedback 🙏 (this is my first pr ever too)
Fixes (#215)
Type of change
Checklist
Required
console.logs
git pull origin main
Appreciated