Skip to content

Commit 28d28f1

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 0294264 + b91ab83 commit 28d28f1

15 files changed

Lines changed: 53 additions & 58 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- name: Enable Corepack
2727
shell: bash
2828
run: corepack enable
29+
- name: Pin pnpm 10
30+
shell: bash
31+
run: corepack prepare pnpm@10 --activate
2932
- uses: actions/setup-node@v6
3033
with:
3134
node-version: 22

.github/workflows/iframes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
- name: Enable Corepack
1616
shell: bash
1717
run: corepack enable
18+
- name: Pin pnpm 10
19+
shell: bash
20+
run: corepack prepare pnpm@10 --activate
1821
- uses: actions/setup-node@v6
1922
with:
2023
node-version: 22

src/components/Notion/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export const getNotionContentProps = unstable_cache(
88
try {
99
const result = await notion.getPage(id)
1010
return result
11-
} catch {
11+
} catch (e) {
12+
console.error('Unable to get content from Notion', e)
1213
return undefined
1314
}
1415
},

src/components/faq/FaqsOverscreen.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,10 @@ import styles from './FAQsList.module.css'
1717

1818
const faqCategoriesOrder: Record<FAQCategory, number> = {
1919
[FAQCategory.QuestionsGenerales]: 1,
20-
[FAQCategory.GeneralQuestions]: 1,
21-
[FAQCategory.PreguntasGenerales]: 1,
2220
[FAQCategory.ComprendreLeCalcul]: 2,
23-
[FAQCategory.AboutTheCalculation]: 2,
24-
[FAQCategory.EntenderElCálculo]: 2,
2521
[FAQCategory.CestÉtonnant]: 3,
26-
[FAQCategory.ItsSurprising]: 3,
27-
[FAQCategory.EsSorprendente]: 3,
2822
[FAQCategory.IdéesPourAgir]: 4,
29-
[FAQCategory.IdeasForAction]: 4,
30-
[FAQCategory.IdeasParaActuar]: 4,
3123
[FAQCategory.ÀProposDesOutils]: 5,
32-
[FAQCategory.AboutTheTools]: 5,
33-
[FAQCategory.AcercaDeLasHerramientas]: 5,
3424
}
3525

3626
const FaqsOverscreen = ({ filter, page, slug }: { filter: string; slug: string } & Omit<FAQSListProps, 'faqs'>) => {
@@ -115,7 +105,7 @@ const FaqsOverscreen = ({ filter, page, slug }: { filter: string; slug: string }
115105
<ul className={styles.categories}>
116106
{faqsByCategory.map(([category, faqs]) => (
117107
<li key={category} className={styles.category}>
118-
<h2 className={styles.categoryTitle}>{category}</h2>
108+
<h2 className={styles.categoryTitle}>{t(category)}</h2>
119109
<ul>
120110
{faqs.map((faq) => (
121111
<FAQ key={faq.title} faq={faq} page={page} loadingText={t('loading')} withAnchor />

src/components/faq/faqsOrder.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,8 @@ import { FAQCategory } from 'types/faq'
22

33
export const faqCategoriesOrder: Record<FAQCategory, number> = {
44
[FAQCategory.QuestionsGenerales]: 2,
5-
[FAQCategory.GeneralQuestions]: 2,
6-
[FAQCategory.PreguntasGenerales]: 2,
75
[FAQCategory.ComprendreLeCalcul]: 3,
8-
[FAQCategory.AboutTheCalculation]: 3,
9-
[FAQCategory.EntenderElCálculo]: 3,
106
[FAQCategory.CestÉtonnant]: 4,
11-
[FAQCategory.ItsSurprising]: 4,
12-
[FAQCategory.EsSorprendente]: 4,
137
[FAQCategory.IdéesPourAgir]: 5,
14-
[FAQCategory.IdeasForAction]: 5,
15-
[FAQCategory.IdeasParaActuar]: 5,
168
[FAQCategory.ÀProposDesOutils]: 1,
17-
[FAQCategory.AboutTheTools]: 1,
18-
[FAQCategory.AcercaDeLasHerramientas]: 1,
199
}

src/components/form/Select.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ const Select = ({
4040
data-testid={`text-select-${id}`}
4141
{...selectProps}
4242
id={`text-select-${id}`}>
43-
<>
44-
{selectProps.required && (
45-
<option value='' disabled hidden>
46-
Choisir une option
47-
</option>
48-
)}
49-
{children}
50-
</>
43+
{selectProps.required && (
44+
<option value='' disabled hidden>
45+
Choisir une option
46+
</option>
47+
)}
48+
{children}
5149
</select>
5250
</div>
5351
</div>

src/components/outils/FruitsEtLegumesSimulator.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const FruitsEtLegumesSimulator = () => {
2424

2525
const t = useTranslations('flds')
2626
const tMonth = useTranslations('overscreen.month')
27+
2728
return (
2829
<>
2930
<div className={styles.simulator}>
@@ -36,9 +37,9 @@ const FruitsEtLegumesSimulator = () => {
3637
trackOnce('Mois')
3738
setMonth(Number(e.target.value))
3839
}}>
39-
{monthsOptions.map((month) => (
40-
<option key={month.value} value={month.value}>
41-
{tMonth(month.label)}
40+
{monthsOptions.map(({ value, label }) => (
41+
<option key={value} value={value}>
42+
{tMonth(label)}
4243
</option>
4344
))}
4445
</Select>

src/components/outils/equivalents/EquivalentCardContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const EquivalentCardContent = ({
2525
return (
2626
<div className={styles.content}>
2727
<div>
28-
<p className={styles.title}>{getName(language, equivalent, equivalent.category === 8)}</p>
28+
<p className={styles.title}>{getName(language, equivalent, equivalent.category === 8, 1, false, true)}</p>
2929
<Result form={output}>
3030
<CO2Quantity
3131
quantity={equivalent.carpool ? equivalent.value / (equivalent.carpool + 1) : equivalent.value}

src/providers/locales/en.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"allFAQs": "All questions",
77
"search": "Search for a topic, a question...",
88
"exemple": "For example:",
9+
"Questions générales": "General questions",
10+
"Comprendre le calcul": "About the calculations",
11+
"C'est étonnant !": "It’s surprising!",
12+
"Idées pour agir": "Ideas for action",
13+
"À propos des outils": "About the tools",
914
"Transport": {
1015
"exemple-1": "construction",
1116
"exemple-2": "occupancy rate",

src/providers/locales/es.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"allFAQs": "Todas las preguntas",
77
"search": "Buscar un tema, una pregunta...",
88
"exemple": "Por ejemplo:",
9+
"Questions générales": "Preguntas generales",
10+
"Comprendre le calcul": "Entender los cálculos",
11+
"C'est étonnant !": "¡Es sorprendente!",
12+
"Idées pour agir": "Ideas para actuar",
13+
"À propos des outils": "Acerca de las herramientas",
914
"Transport": {
1015
"exemple-1": "construcción",
1116
"exemple-2": "índice de ocupación",

0 commit comments

Comments
 (0)