Skip to content
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

[CAI-303] fix personal page titles #1337

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

MarBert
Copy link
Collaborator

@MarBert MarBert commented Feb 4, 2025

List of Changes

Some pages were missing the title

Motivation and Context

How Has This Been Tested?

on localhost

Screenshots (if appropriate):

image image image

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: 3748398

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
nextjs-website Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Feb 4, 2025

Jira Pull Request Link

This Pull Request refers to the following Jira issue CAI-303

Copy link
Contributor

github-actions bot commented Feb 4, 2025

Bundle not found for branch main.
It wasn't possible to compare bundles size.

@@ -12,7 +12,7 @@ import {
useTheme,
} from '@mui/material';
import Link from 'next/link';
import React, { ReactNode, useState } from 'react';
import React, { ReactNode, useEffect, useState } from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you adding this import?

@@ -106,6 +106,7 @@ const Agreements = () => {

return (
<>
<title>DevPortal | Agreements</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you should add a new value to it.json file and use a translation to populate the title

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you should use generateMetadata function.
Here is an example in solutions/page.tsx

  return makeMetadata({
    title: 'Soluzioni',
    url: `${baseUrl}/solutions`,
    locale: 'it_IT',
  });
}```

see https://nextjs.org/docs/app/api-reference/functions/generate-metadata

Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe you can use getTranslation

@@ -54,63 +53,69 @@ const ChatbotHistory = () => {

if (sessionId) {
return (
<Box
<>
<title>DevPortal | Chatbot History</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here


return (
<>
<title>DevPortal | Chatbot History</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants