Skip to content

Commit cbeaf0c

Browse files
feat(texts): updates apps texts v2 (#51)
1 parent 0fb5ddd commit cbeaf0c

File tree

7 files changed

+57
-20
lines changed

7 files changed

+57
-20
lines changed

e2e/tutor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ test.describe('Tutor', () => {
185185
const fileInput = page.getByTestId('file-input');
186186
await fileInput.click();
187187
await fileInput.setInputFiles('./e2e/files/test_tutor.pdf');
188-
await page.getByRole('button', { name: 'suivant' }).click();
188+
await page.getByTestId('tutor-next-button').click();
189189
await expect(page.getByTestId('secondStepTitle')).toBeVisible();
190190

191-
await page.getByRole('button', { name: 'suivant' }).click();
191+
await page.getByTestId('tutor-next-button').click();
192192
await expect(page.getByTestId('thirdStepTitle')).toBeVisible();
193193
});
194194
});

src/components/CardComponent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ const corpusDetails = computed(() => props.details.journal || props.details.publ
101101
{{ displayedDescription }}
102102
</div>
103103
<details v-if="slice" class="mt-2 is-clickable" @click.stop>
104-
<summary class="is-capitalized">{{ $t('extract') }}</summary>
104+
<summary>{{ $t('extract') }}</summary>
105105
<blockquote class="is-italic">{{ slice }}</blockquote>
106106
</details>
107107
</div>
108108
</div>
109109

110110
<footer class="card-footer" v-if="(sdg || []).length">
111-
<div class="subtitle is-6 footer-element">{{ $t('SDGs') }}</div>
111+
<div class="subtitle is-6 footer-element">{{ $t('sdgsAcronym') }}</div>
112112
<Pill class="footer-element" v-for="item in sdg" :key="item" :content="item.toString()" />
113113
</footer>
114114
</div>

src/localisation/en.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export const en = {
22
':': ':',
33
adaptedTo: 'Adapted to:',
44
addBookmark: 'Add to bookmarks',
5+
back: 'Back',
56
bookmarks: 'Bookmarks',
67
cardArticle: {
78
seeDetails: 'See details',
@@ -35,6 +36,7 @@ export const en = {
3536
uved: 'UVED',
3637
wikipedia: 'Wikipedia'
3738
},
39+
download: 'Download',
3840
defaultQueues: [
3941
'Which SDGs align with a module on circular economy for undergraduates?',
4042
'Compare carbon pricing and cap-and-trade: how do they work, and what are their pros and cons?'
@@ -66,6 +68,7 @@ export const en = {
6668
filterBySource: 'Filter by source',
6769
filterSDG: 'Filter by SDG',
6870
filteredBySDG: 'Filtered by SDG: | Filtered by SDGs:',
71+
genSyllabus: 'Generate syllabus',
6972
goToSources: 'View sources',
7073
goToTop: 'Back to top',
7174
gotIt: 'Got it!',

src/localisation/fr.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ export const fr = {
22
':': ' :',
33
adaptedTo: 'Adapté à :',
44
addBookmark: 'Ajouter aux favoris',
5+
back: 'Retour',
56
bookmarks: 'Favoris',
67
cardArticle: {
78
seeDetails: 'Voir les détails',
@@ -35,6 +36,7 @@ export const fr = {
3536
uved: 'UVED',
3637
wikipedia: 'Wikipedia'
3738
},
39+
download: 'Télécharger',
3840
defaultQueues: [
3941
'Quels ODD sont liés à un module de niveau Licence sur l’économie circulaire ?',
4042
'Compare la tarification du carbone et le système « cap-and-trade » : fonctionnement, avantages et limites.'
@@ -67,6 +69,7 @@ export const fr = {
6769
filterBySource: 'Filtrer par source',
6870
filterSDG: 'Filtrer par ODD',
6971
filteredBySDG: 'Filtré par l’ODD : | Filtré par les ODD :',
72+
genSyllabus: 'Générer le syllabus',
7073
goToSources: 'Voir les sources',
7174
goToTop: 'Retour en haut',
7275
gotIt: 'Compris !',

src/views/AboutPage.vue

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="wrapper">
2+
<div class="wrapper py-6">
33
<div class="presentation is-flex is-fullwidth is-justify-content-center is-align-items-center">
44
<div class="call-to-action is-flex is-flex-direction-column is-justify-content-space-between">
55
<div class="is-size-1 has-text-weight-bold has-text-centered is-uppercase">
@@ -9,22 +9,24 @@
99
{{ $t('landing.description') }}
1010
</p>
1111

12-
<div class="is-flex mb-6 is-justify-content-space-around is-align-items-center">
13-
<p class="is-size-5 has-text-weight-semibold">+ 500 000 Documents</p>
14-
<p class="is-size-5 has-text-weight-semibold">+ 500 000 Documents</p>
15-
<p class="is-size-5 has-text-weight-semibold">+ 500 000 Documents</p>
16-
</div>
12+
<!-- <div class="is-flex mb-6 is-justify-content-space-around is-align-items-center"> -->
13+
<!-- <p class="is-size-5 has-text-weight-semibold">+ 5 000 000 documents traités</p> -->
14+
<!-- <p class="is-size-5 has-text-weight-semibold">+ {{ totalDocs }} documents retenus</p> -->
15+
<!-- <p class="is-size-5 has-text-weight-semibold"> -->
16+
<!-- À partir de{{ sourcesList.length }} corpus -->
17+
<!-- </p> -->
18+
<!-- </div> -->
1719
</div>
1820
</div>
1921

2022
<div class="has-text-centered partnership">
21-
<h1 class="mb-4">{{ $t('landing.partnership') }}</h1>
2223
<div class="is-flex my-4 is-justify-content-space-between is-align-items-center">
2324
<img alt="logo" class="partner-logo mx-4" src="@/assets/lpi_logo.png" />
2425
<img alt="logo" class="partner-logo mx-4" src="@/assets/uved.png" />
2526
<img alt="logo" class="partner-logo mx-4" src="@/assets/cy_logo.png" />
2627
<img alt="logo" class="partner-logo mx-4" src="@/assets/france2030.png" />
2728
</div>
29+
<h1 class="subtitle is-6 mt-6">{{ $t('landing.partnership') }}</h1>
2830
</div>
2931

3032
<div class="product-description has-text-centered">
@@ -37,7 +39,7 @@
3739
<div class="section mt-6">
3840
<div class="is-flex is-fullwidth is-justify-content-space-evenly">
3941
<div class="description">
40-
<p class="subtitle has-text-weight-bold mb-2 is-clickable">
42+
<p class="subtitle has-text-weight-bold mb-2">
4143
{{ $t('landing.horizontal.section_one.title') }}
4244
<span class="is-size-4 ml-4">></span>
4345
</p>
@@ -50,7 +52,7 @@
5052
<div class="section">
5153
<div class="is-flex is-fullwidth is-justify-content-space-evenly">
5254
<div class="description">
53-
<p class="subtitle has-text-weight-bold mb-2 is-clickable">
55+
<p class="subtitle has-text-weight-bold mb-2">
5456
{{ $t('landing.horizontal.section_two.title') }}
5557
<span class="is-size-4 ml-4">></span>
5658
</p>
@@ -63,7 +65,7 @@
6365
<div class="section">
6466
<div class="is-flex is-fullwidth is-justify-content-space-evenly">
6567
<div class="description">
66-
<p class="subtitle has-text-weight-bold mb-2 is-clickable">
68+
<p class="subtitle has-text-weight-bold mb-2">
6769
{{ $t('landing.horizontal.section_three.title') }}
6870
<span class="is-size-4 ml-4">></span>
6971
</p>
@@ -73,6 +75,28 @@
7375
</div>
7476
</div>
7577
</div>
78+
<div class="section px-6 pb-6">
79+
<div class="is-flex mx-6">
80+
<div class="px-4">
81+
<p class="subtitle has-text-weight-bold">
82+
{{ $t('landing.vertical.section_one.title') }}
83+
</p>
84+
<p class="subtitle">{{ $t('landing.vertical.section_one.content') }}</p>
85+
</div>
86+
<div class="px-6">
87+
<p class="subtitle has-text-weight-bold">
88+
{{ $t('landing.vertical.section_two.title') }}
89+
</p>
90+
<p class="subtitle">{{ $t('landing.vertical.section_two.content') }}</p>
91+
</div>
92+
<div class="px-6">
93+
<p class="subtitle has-text-weight-bold">
94+
{{ $t('landing.vertical.section_three.title') }}
95+
</p>
96+
<p class="subtitle">{{ $t('landing.vertical.section_three.content') }}</p>
97+
</div>
98+
</div>
99+
</div>
76100
</div>
77101
</template>
78102

@@ -85,13 +109,11 @@
85109
width: 60%;
86110
height: 100%;
87111
margin: auto;
88-
margin-top: 2%;
89112
}
90113
91114
.partnership {
92-
width: 40%;
115+
width: 45%;
93116
margin: auto;
94-
margin-top: 8px;
95117
}
96118
97119
.partner-logo {

src/views/TutorPage.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const getI18nText = computed(() => {
2323
};
2424
});
2525
26+
const nextButtonText = ['next', 'genSyllabus', 'download'];
27+
2628
const stepToAction: Record<1 | 2 | 3, () => Promise<void>> = {
2729
1: store.handleSearch,
2830
2: store.handleCreateSyllabus,
@@ -83,15 +85,21 @@ const stepToAction: Record<1 | 2 | 3, () => Promise<void>> = {
8385
/>
8486
</div>
8587
<div class="actions">
86-
<button class="button" v-if="store.step > 1" @click="store.goBack">
87-
{{ $t('previous') }}
88+
<button
89+
data-testid="tutor-back-button"
90+
class="button"
91+
v-if="store.step > 1"
92+
@click="store.goBack"
93+
>
94+
{{ $t('back') }}
8895
</button>
8996
<button
9097
class="button"
98+
data-testid="tutor-next-button"
9199
v-if="store.step <= 3"
92100
@click="stepToAction[store.step as 1 | 2 | 3]()"
93101
>
94-
{{ store.step < 3 ? $t('next') : $t('download') }}
102+
{{ $t(nextButtonText[store.step - 1]) }}
95103
</button>
96104
</div>
97105
</div>

src/views/__tests__/__snapshots__/TutorPage.test.ts.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ exports[`TutorPage > renders properly 1`] = `
264264
<!--v-if-->
265265
<button
266266
class="button"
267+
data-testid="tutor-next-button"
267268
data-v-8a8621cb=""
268269
>
269270
next

0 commit comments

Comments
 (0)