-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: add page titles using React Helmet #1321
feat: add page titles using React Helmet #1321
Conversation
Hi 👋 Here's a preview environment 🚀 https://front-twentyhq-twenty-1321.env.ergomake.link Environment Summary 📑
Here are your environment's logs. For questions or comments, join Discord. Click here to disable Ergomake. |
Looks great @mustajab-ikram! I think you need to fix the tests (I suspect, you need to also add the HelmetProvider to our Pages Decorators?) To run them: and in another terminal Once they are green, we can merge! |
front/src/utils/title-utils.ts
Outdated
case AppPath.OpportunitiesPage: | ||
return 'Opportunities'; | ||
case `${AppBasePath.Settings}/${SettingsPath.ProfilePage}`: | ||
return 'Profile Settings'; |
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.
Profile
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.
done
front/src/utils/title-utils.ts
Outdated
case `${AppBasePath.Settings}/${SettingsPath.WorkspaceMembersPage}`: | ||
return 'Workspace Members Settings'; | ||
case `${AppBasePath.Settings}/${SettingsPath.Workspace}`: | ||
return 'Workspace Settings'; |
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.
Workspace
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.
done
front/src/utils/title-utils.ts
Outdated
case `${AppBasePath.Settings}/${SettingsPath.Experience}`: | ||
return 'Experience'; | ||
case `${AppBasePath.Settings}/${SettingsPath.WorkspaceMembersPage}`: | ||
return 'Workspace Members Settings'; |
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.
Workspace Members
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.
done
</ShowPageLeftContainer> | ||
<ShowPageRightContainer | ||
<> | ||
<Helmet> |
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.
Maybe extract this to a PageTitle component under @/ui/utilities/page-title
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.
created a separate component for this
7cd0942
to
f0ea902
Compare
@mustajab-ikram Looks good, we still need to fix those tests :) |
done |
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.
Thank you, I like the dev experience
I have completed the task related to Issue #1294. I have added the Page Title functionality using React Helmet Async lib.
Please take a look at the PR when you get a chance @charlesBochet. Let me know if there are any further changes or improvements you would like to see.
closes #1294