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(contribution): passage au DSFR #6428

Open
wants to merge 258 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
258 commits
Select commit Hold shift + click to select a range
9b5940d
fix: tests
maxgfr Aug 28, 2024
6b8bbc3
fix: tests
maxgfr Aug 29, 2024
39725b4
fix: tests
maxgfr Aug 29, 2024
fa27e26
fix: dernier titi
maxgfr Aug 29, 2024
730c547
fix: autoclick
maxgfr Aug 29, 2024
8959e95
fix: bug
maxgfr Aug 29, 2024
5e70276
feat(css): ajout de la lib `panda-css` (zero-runtime) (#6085)
maxgfr Sep 2, 2024
84fd66c
feat(dsfr): ajout de la page stats (#6090)
maxgfr Sep 2, 2024
a1bc36f
fix: tests
maxgfr Sep 2, 2024
205f24d
fix: tests
maxgfr Sep 2, 2024
9fa7db2
Update packages/code-du-travail-frontend/src/modules/mentions-legales…
carolineBda Sep 3, 2024
34ad3a4
fix(recherche): remonter les pré-qualifiés dans la recherche (#6082)
m-maillot Aug 30, 2024
811d51c
chore(release): version 4.151.1
SocialGroovyBot Aug 30, 2024
3a18228
fix(csp): remove reporting on sentry (#6092)
maxgfr Sep 3, 2024
632ad2d
fix: config
maxgfr Sep 3, 2024
dc60c8a
fix: config
maxgfr Sep 3, 2024
3c964c6
fix: config
maxgfr Sep 3, 2024
49e3218
empty
maxgfr Sep 3, 2024
66af4ac
fix: config
maxgfr Sep 3, 2024
b89df9e
empty
maxgfr Sep 3, 2024
7d74e34
Update packages/code-du-travail-frontend/src/modules/mentions-legales…
maxgfr Sep 3, 2024
50029c0
Update packages/code-du-travail-frontend/src/modules/mentions-legales…
maxgfr Sep 3, 2024
4cf46ee
fix: config
maxgfr Sep 3, 2024
4422345
Merge branch 'dev' into maxgfr/dsfr-header
maxgfr Sep 3, 2024
56bde01
chore(dsfr): mise à jour de la version DSFR
m-maillot Sep 5, 2024
0dcdb11
fix(dsfr): ignore les exceptions d'hydratation
m-maillot Sep 10, 2024
eb9af7a
Merge branch 'dev' into maxgfr/dsfr-header
m-maillot Sep 10, 2024
f7ccd02
feat(tests): ajout du module de testing (#6096)
maxgfr Sep 10, 2024
f146a58
fix(dsfr): ignore les exceptions d'hydratation
m-maillot Sep 10, 2024
1ab139e
empty
maxgfr Sep 10, 2024
b9ae448
Merge branch 'dev' into maxgfr/dsfr-header
maxgfr Sep 10, 2024
e43a732
fix: readme
maxgfr Sep 10, 2024
222395d
feat(DSFR): migration de la page article du code du travail (#6099)
carolineBda Sep 16, 2024
e1b2b85
feat: 6093 dsfr page politique de confidentialit (#6094)
Viczei Sep 16, 2024
c4033af
Merge branch 'dev' into maxgfr/dsfr-header
m-maillot Sep 16, 2024
9c7536b
feat(dsfr): ajout des liens d'évitement (#6120)
m-maillot Sep 16, 2024
75b9216
feat(dsfr): migration de la page plan du site (#6097)
m-maillot Sep 16, 2024
13ba1aa
feat(dsfr): mise à jour des snapshots
m-maillot Sep 16, 2024
aee0955
feat(dsfr): mise à jour des snapshots
m-maillot Sep 16, 2024
abecbd2
chore(dsfr): mise à jour de la lib DSFR
m-maillot Sep 17, 2024
a5c5bdc
feat(dsfr): ajout du composant "Avez-vous trouvé une réponse à votre …
maxgfr Sep 18, 2024
6709c1e
fix: tests
maxgfr Sep 18, 2024
919318a
fix: retours
maxgfr Sep 19, 2024
1f81741
fix: tests
maxgfr Sep 19, 2024
75cddcf
feat: nouvelle API pour les articles du code du travail (#6132)
m-maillot Sep 19, 2024
e830c52
fix: merge date
maxgfr Sep 20, 2024
1935bcf
fix(spec) : fix de la spec article-code-du-travail.spec.ts
carolineBda Sep 23, 2024
b250d45
fix(dsfr): ajout de la config pour supprimer le `insafe-inline` des `…
maxgfr Sep 26, 2024
3d0967c
feat(dsfr): ajout de matomo pour tracker les events (#6157)
maxgfr Sep 26, 2024
177b731
Merge branch 'dev' into maxgfr/dsfr-header
m-maillot Sep 26, 2024
f87c8ad
fix(feedback): ajout d'une logique de caractères restants (#6156)
maxgfr Sep 26, 2024
c4c92cb
feat(dsfr): ajout du nouveau logo (#6159)
carolineBda Sep 30, 2024
29ec0d6
feat(dsfr): ajout des pages d'erreurs (404 + 500) (#6146)
maxgfr Oct 3, 2024
70c41a0
feat: séparation des anciennes API et des nouvelles (#6183)
m-maillot Oct 3, 2024
16ed3e8
fix(article code du travail): retrait du tag Code du travail (#6182)
carolineBda Oct 3, 2024
7f329e0
feat(config): correction de `husky`, ajout de `prettier` pour le form…
maxgfr Oct 9, 2024
68ea2cf
Merge branch 'dev' into maxgfr/dsfr-header
maxgfr Oct 9, 2024
0ebc402
fix: branch
maxgfr Oct 9, 2024
6cefcfb
merge dev
carolineBda Oct 10, 2024
36697b3
merge dev
carolineBda Oct 10, 2024
fb4a99a
feat: implémentation simulateur brut net
Oct 11, 2024
0a35960
chore: fix ts
Oct 11, 2024
6eb422c
chore: snap
Oct 11, 2024
26bad05
chore: clean
Oct 11, 2024
8afa8bc
chore: clean
Oct 11, 2024
5839013
chore: clean
Oct 11, 2024
1520482
chore: review
Oct 14, 2024
cd15bc7
feat: update responsive
Oct 15, 2024
0748928
Merge branch 'dev' into simulateur-brut-net-dsfr
Oct 15, 2024
fe39518
Revert "Merge branch 'dev' into simulateur-brut-net-dsfr"
Oct 15, 2024
0731fc3
chore: clean
Oct 15, 2024
002ae75
feat: chore clean
Oct 15, 2024
66875a5
chore: clean
Oct 15, 2024
282063a
Merge branch 'dev' into simulateur-brut-net-dsfr
Oct 15, 2024
bb5da2f
chore: remove undesired files
Oct 15, 2024
cab0a48
chore: remove undesired files
Oct 15, 2024
ef094cf
chore: clean
Oct 15, 2024
8809b88
feat: implementation page convention collective
Oct 16, 2024
4fcbfb2
feat: update button link
Oct 17, 2024
6e7f2c0
fix: meta description share
Oct 17, 2024
4965bae
feat: switch simu brut net couleur par defaut
Oct 17, 2024
c33bfcd
feat: ajout de l'icone
Oct 17, 2024
0352cfc
feat: update svg
Oct 21, 2024
5c7f10f
fix: ts
Oct 21, 2024
dfe2380
Merge branch 'simulateur-brut-net-dsfr' into 6208-développer-la-page-…
Oct 21, 2024
5270d52
fix: bug load
Oct 21, 2024
cd3fa62
Merge branch 'simulateur-brut-net-dsfr' into 6208-développer-la-page-…
Oct 21, 2024
c632048
chore: review
Oct 21, 2024
2a79178
fix: mobile display
Oct 22, 2024
f1fc182
Merge branch 'dev' into 6208-développer-la-page-convention-collective
Oct 22, 2024
24717fa
chore: review
Oct 22, 2024
305466d
chore: review
Oct 22, 2024
110f94b
chore: review
Oct 22, 2024
a5c477d
feat: implémentation trouver cc
Oct 25, 2024
eec0cc4
feat: implementation trouver CC
Oct 30, 2024
522af71
chore: common style
Nov 7, 2024
8e2c763
feat: add error alert entreprise search
Nov 7, 2024
dd33ad6
feat: disable card
Nov 8, 2024
cc8e30b
feat: ajout TU + fix
Nov 12, 2024
d17fac7
Merge branch 'dev' into 6231-module-trouver-sa-cc
Nov 12, 2024
6cdf0ee
chore: clean
Nov 12, 2024
4141195
fix: e2e tests
Nov 12, 2024
32a8755
chore: clean
Nov 13, 2024
a2312d1
Merge branch 'dev' into 6231-module-trouver-sa-cc
Nov 13, 2024
430dfa9
feat: implementation contribution dsfr
Nov 13, 2024
7a02cf5
fix: widget
Nov 13, 2024
cf31b15
fix: error
Nov 14, 2024
e410252
feat: info bulle
Nov 14, 2024
0dac89d
fix: widget
Nov 14, 2024
9cc3244
fix: home fetch agreement
Nov 14, 2024
d4c3207
feat: add postmessage searchCC
Nov 14, 2024
96b7fa7
fix: home cc
Nov 14, 2024
0385beb
feat: change contenu lié search cc
Nov 14, 2024
3bb82bc
fix: related items
Nov 14, 2024
1a4bc60
fix: message erreur lors de la recherche
Nov 14, 2024
473039b
fix: error message
Nov 15, 2024
8c5cc64
fix: relatedItems
Nov 15, 2024
2a850f8
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 15, 2024
9782c1f
chore: add TU
Nov 15, 2024
da49d80
refactor: move files to folders
Nov 18, 2024
831cc19
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 18, 2024
a16c584
fix: build
Nov 19, 2024
9c30f65
chore: review
Nov 19, 2024
211d760
chore: clean
Nov 19, 2024
6c69a40
fix: ajout des canonicals
Nov 19, 2024
1ca5f26
fix: input info
Nov 19, 2024
d9cf3ef
fix: canonicals
Nov 19, 2024
a953056
feat: ajout d'un spinner
Nov 19, 2024
b770a78
fix: tests
Nov 19, 2024
e3649d5
chore: review
Nov 19, 2024
a697f00
feat: add spinner to enterprise search
Nov 19, 2024
2b7f0eb
feat: contribution search cc
Nov 19, 2024
a7a1ccf
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 19, 2024
0fd1de6
refactor: queries
Nov 20, 2024
973fd8a
fix: load on select item autocomplete
Nov 20, 2024
bfb67e2
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 20, 2024
81f6c29
fix: bug widget selection entreprise
Nov 20, 2024
1ad5cb4
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 20, 2024
6ae8be0
feat: implement alert message
Nov 20, 2024
8f2f068
fix: disabled rule
Nov 20, 2024
e9a7b29
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 20, 2024
82d6931
feat: localstorage
Nov 21, 2024
d30f0d6
chore: review
Nov 22, 2024
fe30b70
chore: review
Nov 22, 2024
aeed234
chore: review
Nov 22, 2024
02ae084
chore: review
Nov 25, 2024
1d2264e
chore: review
Nov 25, 2024
53bed58
chore: review
Nov 25, 2024
d5f1f76
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 25, 2024
0fabe69
feat: implement content
Nov 26, 2024
3cc0033
chore: review
Nov 26, 2024
2c91db2
fix: garder la recherche entrerprise au click precedent
Nov 26, 2024
b773b1e
chore: review
Nov 26, 2024
25f856c
chore: review
Nov 26, 2024
fd45a6b
fix: TU + some styles
Nov 26, 2024
4f0efb6
fix: e2e
Nov 26, 2024
e41c00a
refactor
Nov 26, 2024
d67511d
fix: TU
Nov 26, 2024
7cea474
fix: TU
Nov 26, 2024
e38cd23
chore: review
Nov 27, 2024
ee8b031
chore: review
Nov 27, 2024
923af5e
chore: review
Nov 27, 2024
41f85a7
chore: review postalcode
Nov 27, 2024
12dc309
chore: review
Nov 27, 2024
b9b49a4
chore: review
Nov 27, 2024
9f679fa
fix: cypress test
Nov 27, 2024
edab7a6
chore: add widgetMode TU
Nov 27, 2024
4844ede
chore: fix test
Nov 27, 2024
6d141d9
fix: cypress test
Nov 27, 2024
50927c8
fix: cypress test
Nov 27, 2024
61ea30a
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 27, 2024
4aedbac
feat: implement
Nov 28, 2024
5047503
chore: cy
Nov 28, 2024
d56f2e8
chore: fix cy
Nov 28, 2024
be89fdc
Merge branch 'dev' into 6231-module-trouver-sa-cc
Nov 28, 2024
ff86281
Merge branch 'dev' into 6231-module-trouver-sa-cc
Nov 28, 2024
7c4d058
refactor
Nov 28, 2024
b104d8d
refactor
Nov 28, 2024
66f54d9
chore: review
Nov 28, 2024
fad136e
chore: clean
Nov 28, 2024
f498c5d
chore: review
Nov 29, 2024
485eeec
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Nov 29, 2024
9bc765d
fix: largeur champs recherche entreprise
Dec 2, 2024
a11f23d
feat: ajout d'un message d'erreur pour les codes naf
Dec 2, 2024
e3fa9da
feat: update design
Dec 2, 2024
c617dcd
chore: clean
Dec 2, 2024
b70b9e3
feat: implement
Dec 2, 2024
c91d916
chore: design review
Dec 3, 2024
0282272
chore: review
Dec 3, 2024
27a4440
chore: test noindex
Dec 3, 2024
0a85f37
chore: nbsp
Dec 3, 2024
6f6159f
chore: review
Dec 3, 2024
8fa8a6c
chore: review
Dec 3, 2024
cbc20ba
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Dec 3, 2024
3189795
chore: fix test e2e
Dec 4, 2024
85fb67b
Merge branch '6231-module-trouver-sa-cc' into 6233-contribution-dsfr
Dec 4, 2024
ccc2593
Merge branch 'dev' into 6233-contribution-dsfr
Dec 6, 2024
045c8ef
fix: previous
Dec 6, 2024
1203afc
feat: implement input CC search form
Dec 9, 2024
7ec59ae
fix: design
Dec 9, 2024
5df6f55
chore: clean
Dec 9, 2024
81e7953
feat: ajout du localstorage
Dec 10, 2024
5730dc6
fix: bug recherche cc selectionne
Dec 10, 2024
026a22a
fix: don't set cc for enterprise form
Dec 10, 2024
6794496
fix: localstorage wrong load
Dec 10, 2024
f6103a4
feat: add alert on CC select
Dec 10, 2024
16e919c
fix: localstorage preload
Dec 10, 2024
95529e2
fix: wrong slug
Dec 10, 2024
7df7c1d
Merge branch 'dev' into 6233-contribution-dsfr
Dec 10, 2024
d488e4a
fix: goBack not removing cc
Dec 10, 2024
d6eeeec
chore: review
Dec 11, 2024
1971ea5
chore: review
Dec 13, 2024
6b1716c
Merge branch 'dev' into 6233-contribution-dsfr
Jan 8, 2025
9e07f01
chore: TU
Jan 8, 2025
e595818
feat: add fiche SP
Jan 8, 2025
ce8f016
fix: design
Jan 8, 2025
e9cd917
feat: tracking
Jan 8, 2025
e903723
chore: TU fix
Jan 8, 2025
844dc3d
fix: cc entreprise select
Jan 9, 2025
3175ea5
feat: add tracking on radio agreement select
Jan 9, 2025
7ab21d0
chore: tracking p1 et p2
Jan 9, 2025
cbb025f
fix: doublon tracking
Jan 9, 2025
441a008
chore: snap
Jan 9, 2025
26ca99d
chore: review
Jan 9, 2025
c7b9834
fix: tracking event enterprise
Jan 9, 2025
30bf7b5
fix: TU
Jan 9, 2025
ac01419
fix: emit tracking enterprise recherche CC
Jan 9, 2025
63e6192
chore: add TU tracking
Jan 9, 2025
070e654
feat: mise à jour design
Jan 13, 2025
78e92f0
fix(contributions): affichage du nom de la CC dans le H1 des contribs…
carolineBda Jan 13, 2025
aab5b88
fix: CC non traité message
Jan 13, 2025
ea6292a
Merge branch 'dev' into 6233-contribution-dsfr
Jan 15, 2025
3c72da2
fix: merge
Jan 15, 2025
c1b521b
refactor: contribution generic specific (#6421)
Viczei Jan 21, 2025
3c1fd5a
Merge branch 'dev' into 6233-contribution-dsfr
carolineBda Jan 21, 2025
1c8345f
clean
carolineBda Jan 21, 2025
eb37ec8
clean
carolineBda Jan 21, 2025
c4c30e7
fix: add TU contribution content
Jan 21, 2025
f4e6645
fix: localstorage for enterprise search & noCdt description
Jan 21, 2025
52e1eed
refactor: localstorage
Jan 21, 2025
cf3f530
fix: margin references
Jan 21, 2025
8499aa0
fix: tracking on display button click
Jan 21, 2025
6350687
fix: radio unchecked by default
Jan 21, 2025
0542095
Merge branch 'dev' into linked/contribution-dsfr
Jan 23, 2025
9af3e44
fix: localstorage should select radio
Jan 23, 2025
64b18a8
fix: design
Jan 23, 2025
15feb50
fix: date mise à jour fiche SP
Jan 23, 2025
cd6dec3
chore: add localstorage tests
Jan 23, 2025
a98a410
refactor: localstorage should not send events
Jan 23, 2025
633a64b
chore: snap
Jan 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions packages/code-du-travail-frontend/__tests__/contributions.test.tsx

This file was deleted.

39 changes: 39 additions & 0 deletions packages/code-du-travail-frontend/app/contribution/[slug]/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from "react";
import { DsfrLayout } from "../../../src/modules/layout";
import { notFound } from "next/navigation";
import { generateDefaultMetadata } from "../../../src/modules/common/metas";
import { fetchRelatedItems } from "../../../src/modules/documents";
import {
ContributionLayout,
fetchContributionBySlug,
} from "../../../src/modules/contributions";

export async function generateMetadata({ params }) {
const { metas } = await getContribution(params.slug);

return generateDefaultMetadata({
title: metas.title,
description: metas.description,
path: `/contribution/${params.slug}`,
});
}

async function Contribution({ params }) {
const contribution = await getContribution(params.slug);
return (
<DsfrLayout>
<ContributionLayout contribution={contribution} />
</DsfrLayout>
);
}

const getContribution = async (slug: string) => {
const contribution = await fetchContributionBySlug(slug);

if (!contribution) {
return notFound();
}
return contribution;
};

export default Contribution;
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { notFound } from "next/navigation";
import { generateDefaultMetadata } from "../../../../../src/modules/common/metas";
import { ElasticTool } from "../../../../../src/modules/outils/type";
import { EnterpriseAgreementSelection } from "../../../../../src/modules/enterprise";
import { EnterpriseAgreementSelectionLink } from "../../../../../src/modules/enterprise";
import { searchEnterprises } from "../../../../../src/modules/enterprise/queries";
import { agreementRelatedItems } from "../../../../../src/modules/convention-collective/agreementRelatedItems";
import { SITE_URL } from "../../../../../src/config";
Expand Down Expand Up @@ -38,7 +38,7 @@ async function AgreementSelectionPage({ params }) {
relatedItems={agreementRelatedItems}
description={tool.description}
>
<EnterpriseAgreementSelection enterprise={enterprise} />
<EnterpriseAgreementSelectionLink enterprise={enterprise} />
</FindAgreementLayout>
</DsfrLayout>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
import { notFound } from "next/navigation";
import { generateDefaultMetadata } from "../../../../../src/modules/common/metas";
import { ElasticTool } from "../../../../../src/modules/outils/type";
import { EnterpriseAgreementSelection } from "../../../../../src/modules/enterprise";
import { EnterpriseAgreementSelectionLink } from "../../../../../src/modules/enterprise";
import { searchEnterprises } from "../../../../../src/modules/enterprise/queries";
import { SITE_URL } from "../../../../../src/config";

Expand All @@ -27,7 +27,7 @@ async function AgreementSelectionPage({ params }) {
});
return (
<FindAgreementWidgetLayout>
<EnterpriseAgreementSelection enterprise={enterprise} widgetMode />
<EnterpriseAgreementSelectionLink enterprise={enterprise} widgetMode />
</FindAgreementWidgetLayout>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,8 @@ describe("Contributions", () => {
"La période d’essai peut-elle être renouvelée ?"
);

cy.get("div > p > span")
.invoke("text")
.should("match", /Mis à jour le/);
cy.get("div > p > span")
.invoke("text")
.should("match", /\d\d\/\d\d\/\d\d\d\d/);

cy.contains(
"Accéder aux informations générales sans renseigner ma convention collective"
"Afficher les informations sans sélectionner une convention collective"
).click();
cy.get("body").should("contain", "Que dit le code du travail");
cy.get("body").should(
Expand All @@ -45,18 +38,17 @@ describe("Contributions", () => {
);
cy.get("body").should("contain", "Références");
cy.get("body").should("contain", "L1221-21");
cy.get("body").should("contain", "Pour aller plus loin");
});

it("je vois une page contribution pour une CC", () => {
cy.visit("/contribution/675-la-periode-dessai-peut-elle-etre-renouvelee");
cy.get("h1").should(
"have.text",
"La période d’essai peut-elle être renouvelée ?"
"La période d’essai peut-elle être renouvelée ? Maisons à succursales de vente au détail d'habillement"
);
cy.get("h2").should(
"contain",
"Votre convention collective est Maisons à succursales de vente au détail d'habillement (IDCC 0675)"
"Maisons à succursales de vente au détail d'habillement (IDCC 0675)"
);

cy.get("body").should(
Expand All @@ -65,16 +57,14 @@ describe("Contributions", () => {
);

cy.get("a")
.contains(
"la convention collective Maisons à succursales de vente au détail d'habillement"
)
.contains("Maisons à succursales de vente au détail d'habillement")
.should(
"have.attr",
"href",
"/convention-collective/675-maisons-a-succursales-de-vente-au-detail-dhabillement"
);
cy.get("h2").should("contain", "Pour aller plus loin");
cy.get("h3").should(

cy.get("a").should(
"contain",
"Demande d’accord du salarié pour le renouvellement d’une période d’essai"
);
Expand All @@ -86,8 +76,8 @@ describe("Contributions", () => {
);
cy.get("h1").should(
"have.text",
"Combien de fois le contrat de travail peut-il être renouvelé ?"
"Combien de fois le contrat de travail peut-il être renouvelé ? Métallurgie"
);
cy.get('[aria-expanded="true"]').find("h3").should("contain", "CDD");
cy.get('[aria-expanded="true"]').should("contain", "CDD");
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("Outil - Trouver sa convention collective", () => {
cy.canonicalUrlEqual("/outils/convention-collective");
cy.contains("BOUILLON PIGALLE").click();

cy.contains("1 convention collective trouvée pour :");
cy.contains("1 convention collective trouvée :");

cy.contains("Précédent").click();
cy.selectByLabel("Nom de votre entreprise ou numéro Siren/Siret")
Expand All @@ -54,7 +54,7 @@ describe("Outil - Trouver sa convention collective", () => {
cy.selectByLabel("Code postal ou Ville (optionnel)").clear();
cy.get('button[type="submit"]').last().click();
cy.contains("CARREFOUR BANQUE").click();
cy.contains("2 conventions collectives trouvées pour :");
cy.contains("2 conventions collectives trouvées :");
cy.contains("Banque")
.should("have.prop", "href")
.and(
Expand Down
66 changes: 0 additions & 66 deletions packages/code-du-travail-frontend/pages/contribution/[slug].tsx

This file was deleted.

5 changes: 5 additions & 0 deletions packages/code-du-travail-frontend/panda.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ export default defineConfig({
},
},
},
globalCss: {
".fr-table__content table, .fr-table__content table *": {
whiteSpace: "normal",
},
},
outdir: "src/styled-system",
outExtension: "js",
importMap: "@styled-system",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { render } from "@testing-library/react";
import DisplayContentContribution from "../DisplayContentContribution";
import { ReferencesJuridiques } from "../References";

describe("ReferencesJuridiques", () => {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const LocationSearchInput = ({
defaultValue,
}: Props) => {
const [postalCode, setPostalCode] = useState<string | undefined>();
function itemToString(item: ApiGeoResult | null) {
function itemToString(item: ApiGeoResult | undefined) {
return item
? `${item.nom} (${postalCode ?? (item.codesPostaux.length > 1 ? item.codeDepartement : item.codesPostaux[0])})`
: "";
Expand Down
Loading
Loading