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

feat(pci.private-network): Add link to string 'En savoir plus ici' on vlan config step #13304

Merged

Conversation

Tsiorifamonjena
Copy link
Contributor

@Tsiorifamonjena Tsiorifamonjena commented Sep 26, 2024

ref: TAPC-735

Question Answer
Branch? develop
Bug fix? no
New feature? no
Breaking change? no
Tickets Fix #TAPC-735
License BSD 3-Clause
  • Try to keep pull requests small so they can be easily reviewed.
  • Commits are signed-off
  • Only FR translations have been updated
  • Branch is up-to-date with target branch
  • Lint has passed locally
  • Standalone app was ran and tested locally
  • Ticket reference is mentioned in linked commits (internal only)
  • Breaking change is mentioned in relevant commits

Description

Related

fredericvilcot
fredericvilcot previously approved these changes Sep 30, 2024
SimonChaumet
SimonChaumet previously approved these changes Sep 30, 2024
Copy link
Contributor

@SimonChaumet SimonChaumet left a comment

Choose a reason for hiding this comment

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

I'm a bit worried about rerendering on the trans component, can you check that there isn't too much rerenders ?

@Tsiorifamonjena
Copy link
Contributor Author

I'm a bit worried about rerendering on the trans component, can you check that there isn't too much rerenders ?

@SimonChaumet that's seem good to me but I'm interested in your point of view. By the way a rework will coming soon for the entire page then I'll make sure we optimize

const

@@ -113,6 +113,10 @@ export default function ConfigurationStep({
GUIDE_LINKS.REGION_AVAILABILITY[ovhSubsidiary] ||
GUIDE_LINKS.REGION_AVAILABILITY.DEFAULT;

// TODO: verify rerender
Copy link
Contributor

Choose a reason for hiding this comment

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

something you forgot or legit to keep this TODO here ?

Comment on lines 396 to 423
<Trans
t={t}
i18nKey="pci_projects_project_network_private_create_vlan_tip"
components={{
link: (
<a
href={VLAN_GUIDE_URL}
target="_blank"
rel="noreferrer"
>
{tCommon('common_find_out_more_here')}
</a>
),
}}
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't want block this PR but why don't use a simple :

Suggested change
<Trans
t={t}
i18nKey="pci_projects_project_network_private_create_vlan_tip"
components={{
link: (
<a
href={VLAN_GUIDE_URL}
target="_blank"
rel="noreferrer"
>
{tCommon('common_find_out_more_here')}
</a>
),
}}
/>
{t('pci_projects_project_network_private_create_vlan_tip")}
<a
href={VLAN_GUIDE_URL}
target="_blank"
rel="noreferrer"
>
{tCommon('common_find_out_more_here')}
</a>

?

Copy link
Contributor

Choose a reason for hiding this comment

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

And replace <a /> by Link component for have unified behaviour 🙂
packages/manager-react-components/src/components/typography/links/links.component.tsx

https://ovh.github.io/manager/storybook-static/index.html?path=/story/typography-links--external-link

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right, nice catch thank you

antonymarion
antonymarion previously approved these changes Oct 4, 2024
Eric-ciccotti
Eric-ciccotti previously approved these changes Oct 4, 2024
SimonChaumet
SimonChaumet previously approved these changes Oct 4, 2024
fredericvilcot
fredericvilcot previously approved these changes Oct 4, 2024
@github-actions github-actions bot added the has conflicts Has conflicts to resolve before merging label Oct 8, 2024
@Tsiorifamonjena Tsiorifamonjena force-pushed the feat/pci-private-network_addLink_tapc-735 branch from ea32ff9 to 8417058 Compare October 8, 2024 13:50
@github-actions github-actions bot removed the has conflicts Has conflicts to resolve before merging label Oct 8, 2024
@anooparveti anooparveti changed the base branch from develop to release/public-cloud-w42 October 10, 2024 14:18
@github-actions github-actions bot added the has conflicts Has conflicts to resolve before merging label Oct 10, 2024
@Tsiorifamonjena Tsiorifamonjena force-pushed the feat/pci-private-network_addLink_tapc-735 branch from 368dee7 to 02249e0 Compare October 10, 2024 14:38
@github-actions github-actions bot removed the has conflicts Has conflicts to resolve before merging label Oct 10, 2024
Copy link

sonarcloud bot commented Oct 10, 2024

@anooparveti anooparveti merged commit 813b00f into release/public-cloud-w42 Oct 10, 2024
11 of 14 checks passed
@anooparveti anooparveti deleted the feat/pci-private-network_addLink_tapc-735 branch October 10, 2024 14:43
@anooparveti anooparveti mentioned this pull request Oct 10, 2024
10 tasks
sachinrameshn pushed a commit that referenced this pull request Oct 14, 2024
… vlan config step (#13304)

ref: TAPC-735

Signed-off-by: tsiorifamonjena <[email protected]>
Co-authored-by: CDS Translator Agent <[email protected]>
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.

8 participants