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(DSFR): salaire brut / net #6260

Merged
merged 11 commits into from
Nov 12, 2024
Merged

Conversation

carolineBda
Copy link
Contributor

@carolineBda carolineBda commented Nov 4, 2024

@carolineBda carolineBda changed the title Revert "fix(simulateur embauche): revert DSFR sur simulateur embauche… feat(DSFR): salaire brut / net Nov 4, 2024
@carolineBda carolineBda marked this pull request as draft November 4, 2024 14:45
@carolineBda carolineBda changed the title feat(DSFR): salaire brut / net feat(DSFR): salaire brut / net => useEffect / memo Nov 5, 2024
"have.text",
"Calculer le salaire brut/net"
);
cy.findByRole("heading", { level: 1 }).click();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

c'est ça qui fixe le test 🤷‍♀️

@@ -82,7 +82,7 @@ const StyledDiv = styled.div`
height: 1.4rem;
margin: 0 ${spacings.tiny} 0 ${spacings.small};
transition: transform ${theme.animations.transitionTiming} linear;
fill: ${theme.primary};
fill: ${theme.colors.primary};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

j'ai fixé un warning qui apparaissait dans la console

@carolineBda carolineBda changed the title feat(DSFR): salaire brut / net => useEffect / memo feat(DSFR): salaire brut / net Nov 5, 2024
Copy link
Member

@maxgfr maxgfr left a comment

Choose a reason for hiding this comment

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

top

const tool = await getTool();
const relatedItems = await fetchRelatedItems(
{ _id: tool._id },
"simulateur-embauche"
Copy link
Member

Choose a reason for hiding this comment

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

peut être passer cela en const

Comment on lines +19 to +20
const tool = await getTool();
const relatedItems = await fetchRelatedItems(
Copy link
Member

Choose a reason for hiding this comment

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

c'est dommage qu'on fasse les deux calls en asynchrone. il faudra voir comment optimiser cette page en utilisant la logique statique de nextjs avec du cache.

car en soit, je pense pas que les info de l'outil et les related items changent tous les jours

ça pourrait drastiquement augmenter nos performances sur cette page

@m-maillot m-maillot merged commit 43505f5 into dev Nov 12, 2024
23 checks passed
@m-maillot m-maillot deleted the carolineBda/dsfr-salaire-brut-net branch November 12, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration du simulateur brut/net
5 participants