Skip to content

Commit fd054cb

Browse files
authored
Merge branch 'main' into 271-espacement-des-caractères
2 parents 0346d82 + 86d674c commit fd054cb

7 files changed

Lines changed: 93 additions & 39 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Tous les changements notables de Ara sont documentés ici avec leur date, leur c
77
### Correction 🐛
88

99
- Améliore la lisibilité du texte lorsque l'espacement des caractères est agrandi ([#305](https://github.com/DISIC/Ara/pull/305))
10+
- Corrige l’affichage des longues URL dans le rapport ([#306](https://github.com/DISIC/Ara/pull/306))
1011

1112
## 15/02/2023
1213

confiture-web-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
},
1414
"dependencies": {
1515
"@gouvfr/dsfr": "1.7.2",
16-
"@sentry/tracing": "^7.27.0",
17-
"@sentry/vue": "^7.27.0",
16+
"@sentry/tracing": "^7.37.2",
17+
"@sentry/vue": "^7.37.2",
1818
"@vueuse/head": "^1.0.22",
1919
"chart.js": "^4.1.0",
2020
"dompurify": "^2.4.1",

confiture-web-app/src/components/ReportA11yStatement.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ function hideCopyAlert() {
374374
</h5>
375375
<ul class="fr-mb-9v fr-mb-md-6w">
376376
<li v-for="page in report.data.context.samples" :key="page.name">
377-
{{ page.name }} <strong>{{ page.url }}</strong>
377+
{{ page.name }} <strong class="page-url">{{ page.url }}</strong>
378378
</li>
379379
</ul>
380380
<h4 class="fr-h2">Retour d’information et contact</h4>
@@ -433,4 +433,8 @@ function hideCopyAlert() {
433433
border: 1px solid var(--border-default-grey);
434434
max-width: 58rem;
435435
}
436+
437+
.page-url {
438+
word-break: break-all;
439+
}
436440
</style>

confiture-web-app/src/components/ReportErrors.vue

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -377,15 +377,18 @@ function updateActiveAnchorLink(id: string, event: MouseEvent) {
377377
>
378378
{{ page.pageName }}
379379
</h2>
380-
<a
381-
:href="page.pageUrl"
382-
class="fr-mb-4w page-url"
383-
target="_blank"
384-
rel="noopener"
385-
>
386-
{{ page.pageUrl }}
387-
<span class="sr-only">(nouvelle fenêtre)</span>
388-
</a>
380+
<!-- FIXME: remove this <div> with DSFR >= 1.8 -->
381+
<div class="fr-mb-4w">
382+
<a
383+
:href="page.pageUrl"
384+
class="page-url"
385+
target="_blank"
386+
rel="noopener"
387+
>
388+
{{ page.pageUrl }}
389+
<span class="sr-only">(nouvelle fenêtre)</span>
390+
</a>
391+
</div>
389392

390393
<div
391394
v-for="(topic, i) in page.topics"
@@ -519,7 +522,7 @@ function updateActiveAnchorLink(id: string, event: MouseEvent) {
519522
}
520523
521524
.page-url {
522-
display: inline-block;
525+
word-break: break-all;
523526
}
524527
525528
.criterium-title {

confiture-web-app/src/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,22 @@ if (import.meta.env.VITE_SENTRY_DSN) {
5757
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
5858
tracePropagationTargets: [window.location.hostname, /^\//],
5959
}),
60+
new Sentry.Replay({
61+
// anonymization settings
62+
maskAllText: true,
63+
maskAllInputs: true,
64+
blockAllMedia: true,
65+
}),
6066
],
6167

6268
// Set to a value between 0 and 1.0 to enable performance monitoring
6369
// 0.5 means half the events will be transferred
6470
tracesSampleRate: 0,
6571

72+
// When an error happen save a replay of what happened similar to birdeatsbug
73+
// See https://docs.sentry.io/platforms/javascript/guides/react/session-replay/#replay-captures-on-errors-only
74+
replaysOnErrorSampleRate: 1,
75+
6676
/*
6777
Differentiate between the various environments of the app
6878
example values :

confiture-web-app/src/pages/consult/ContextPage.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ useWrappedFetch(() => report.fetchReport(uniqueId));
153153
<td>{{ i + 1 }}</td>
154154
<td>{{ page.name }}</td>
155155
<td>
156-
<a class="fr-link" target="_blank" :href="page.url">
156+
<a class="fr-link page-url" target="_blank" :href="page.url">
157157
{{ page.url }} <span class="sr-only">(nouvelle fenêtre)</span>
158158
</a>
159159
</td>
@@ -334,4 +334,8 @@ useWrappedFetch(() => report.fetchReport(uniqueId));
334334
.content > *:not(.fr-table) {
335335
max-width: 49.5rem;
336336
}
337+
338+
.page-url {
339+
word-break: break-all;
340+
}
337341
</style>

confiture-web-app/yarn.lock

Lines changed: 57 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@
187187
"@nodelib/fs.scandir" "2.1.5"
188188
fastq "^1.6.0"
189189

190-
"@sentry/browser@7.27.0":
191-
version "7.27.0"
192-
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.27.0.tgz#540d292d418abbf0ac7cabb39fe1863b8fa0c85f"
193-
integrity sha512-6z+q+omLqmdEvy+9i4j7xzIT6zgmWJnXqEiLCURnE34KsPq6wr6Nij1XHsTlApMcohOpPlo+C3nMTmz+oYUf5w==
194-
dependencies:
195-
"@sentry/core" "7.27.0"
196-
"@sentry/replay" "7.27.0"
197-
"@sentry/types" "7.27.0"
198-
"@sentry/utils" "7.27.0"
190+
"@sentry/browser@7.37.2":
191+
version "7.37.2"
192+
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.37.2.tgz#355dd28ad12677d63e0b12c5209d12b3f98ac3a4"
193+
integrity sha512-UvKfpx6+BUdV+rGAXqDBznagfz44Ut+x2h/i0OZPNCEpXaH9KAQOlv06I66861aXiucWFRb1lAMrN4+cE9aJIg==
194+
dependencies:
195+
"@sentry/core" "7.37.2"
196+
"@sentry/replay" "7.37.2"
197+
"@sentry/types" "7.37.2"
198+
"@sentry/utils" "7.37.2"
199199
tslib "^1.9.3"
200200

201201
"@sentry/bundler-plugin-core@0.3.0":
@@ -229,6 +229,15 @@
229229
"@sentry/utils" "7.27.0"
230230
tslib "^1.9.3"
231231

232+
"@sentry/core@7.37.2":
233+
version "7.37.2"
234+
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.37.2.tgz#959b2bf953f442b07f8377d90f4f7735cf260ae4"
235+
integrity sha512-LjofMDSTyVeBErl9N7TTqlyEVuW1g6U4iuJtdZ75JohnvVxzWdpZfWfddwQ6h7nGWfe9dNg0fGs1wxKtMhY+MA==
236+
dependencies:
237+
"@sentry/types" "7.37.2"
238+
"@sentry/utils" "7.37.2"
239+
tslib "^1.9.3"
240+
232241
"@sentry/node@^7.19.0":
233242
version "7.27.0"
234243
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-7.27.0.tgz#a43ca519b2cbcbc5eade9bae98cf1c26da7cb82f"
@@ -242,16 +251,16 @@
242251
lru_map "^0.3.3"
243252
tslib "^1.9.3"
244253

245-
"@sentry/replay@7.27.0":
246-
version "7.27.0"
247-
resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.27.0.tgz#9529dd2603c6581ffc88857a1f43fc875c80857b"
248-
integrity sha512-Db1TBx4JZWWbsAXSzWfAE55d4ekpPspZheyF66j84xq8jaFxgmlMMO7wBD8P7CHuQ6VUkgwa4glMkcamj/sfSg==
254+
"@sentry/replay@7.37.2":
255+
version "7.37.2"
256+
resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.37.2.tgz#eb49b7a1286335c1a4de49b386d0258e5c789682"
257+
integrity sha512-y8Gfc7EGfGU4eVae5HAtch2YgkiTzNPi16dcqPX9jtIHDwiurGqWcaOgs5HoGJm45eMfl6LvcE7MPbwqcDkPIA==
249258
dependencies:
250-
"@sentry/core" "7.27.0"
251-
"@sentry/types" "7.27.0"
252-
"@sentry/utils" "7.27.0"
259+
"@sentry/core" "7.37.2"
260+
"@sentry/types" "7.37.2"
261+
"@sentry/utils" "7.37.2"
253262

254-
"@sentry/tracing@^7.19.0", "@sentry/tracing@^7.27.0":
263+
"@sentry/tracing@^7.19.0":
255264
version "7.27.0"
256265
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.27.0.tgz#455a032c6ccf9bc8e27905dc8e624e6e2f45737b"
257266
integrity sha512-lxAiGAajbZgZkaViwYuxavbu/c8JUp56XOYzSAi7Km9jGnTFLNF4JCoyG0INy7lXipFJiWSd0Xq3aej0Lb+Cvg==
@@ -261,11 +270,26 @@
261270
"@sentry/utils" "7.27.0"
262271
tslib "^1.9.3"
263272

273+
"@sentry/tracing@^7.37.2":
274+
version "7.37.2"
275+
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.37.2.tgz#88f149aea6a4d5a3cfb9145868d885fac9fffb52"
276+
integrity sha512-XBVvxbV5TADq2rHg/kJqGqDfOP8n2myMUxMMpfHMb38NrxkxQwXy+gDe41bA8FJKA2k7Y3Wkn8ZC/PelQ8c+ag==
277+
dependencies:
278+
"@sentry/core" "7.37.2"
279+
"@sentry/types" "7.37.2"
280+
"@sentry/utils" "7.37.2"
281+
tslib "^1.9.3"
282+
264283
"@sentry/types@7.27.0":
265284
version "7.27.0"
266285
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.27.0.tgz#1af8eae05465ad00722e319c066c950cc389b585"
267286
integrity sha512-vapN3jchu3/WEMWQkrCOy2XDlOLj0l7IewYXKMr15Q21dlfM1QZMigU/r5rtYj5L8a2ISIHx+cRECxX5UIKH7w==
268287

288+
"@sentry/types@7.37.2":
289+
version "7.37.2"
290+
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.37.2.tgz#99fd76230d7c1d3c6901ed4c0bea35be7d6fe26d"
291+
integrity sha512-SxKQOCX94ZaQM4C2ysNjHdJsjYapu/NYZCz1cnPyCdDvYfhwiVge1uq6ZHiQ/ARfxAAOmc3R4Mh3VvEz7WUOdw==
292+
269293
"@sentry/utils@7.27.0":
270294
version "7.27.0"
271295
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.27.0.tgz#1a0b4e62db32fb56e737c59bd67c847bb888fa8a"
@@ -274,22 +298,30 @@
274298
"@sentry/types" "7.27.0"
275299
tslib "^1.9.3"
276300

301+
"@sentry/utils@7.37.2":
302+
version "7.37.2"
303+
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.37.2.tgz#14dea644454e3df247fb113fc834f509c1f0e48c"
304+
integrity sha512-5irN1nN/mtdOoWwsJiwBK0gPgNMkciUubEMbCaaXqJaGyGz8+yfDvXj7L+xGYiU57z+7+QkkSKxKEZ/IcBpjVQ==
305+
dependencies:
306+
"@sentry/types" "7.37.2"
307+
tslib "^1.9.3"
308+
277309
"@sentry/vite-plugin@^0.3.0":
278310
version "0.3.0"
279311
resolved "https://registry.yarnpkg.com/@sentry/vite-plugin/-/vite-plugin-0.3.0.tgz#37d6a99ab7bf307b6ac3a5dc85ca16c52c2fff9c"
280312
integrity sha512-clu0yfVk9ejk3l22NHrFUPqHzR9ukYccm7Q5qBKgMyLXnWGLRf4WahmzzuW9XHDu4s3tYVjV/rTTxGxLPT9dMQ==
281313
dependencies:
282314
"@sentry/bundler-plugin-core" "0.3.0"
283315

284-
"@sentry/vue@^7.27.0":
285-
version "7.27.0"
286-
resolved "https://registry.yarnpkg.com/@sentry/vue/-/vue-7.27.0.tgz#294d81372c79980f7c5ea54f0103083faec12196"
287-
integrity sha512-8ZTfXo+s+oq3/7+c2qbiX+J5j3BpMya1a9ESeekx+bS7iwlRxMZWQslWDEJKheoS0J6/wy43fhb+8OS5cKvc6g==
316+
"@sentry/vue@^7.37.2":
317+
version "7.37.2"
318+
resolved "https://registry.yarnpkg.com/@sentry/vue/-/vue-7.37.2.tgz#8bc5768b6849a9214ce6479be774d641326190d5"
319+
integrity sha512-cX2DXHC40pI8dBlGd95iPVHGZb0qwFiz1rFnrOdb3M3ekTHgVnqcG0wsdL6Z5UD0by6zhGqBbS2Lw2Y/pHUztw==
288320
dependencies:
289-
"@sentry/browser" "7.27.0"
290-
"@sentry/core" "7.27.0"
291-
"@sentry/types" "7.27.0"
292-
"@sentry/utils" "7.27.0"
321+
"@sentry/browser" "7.37.2"
322+
"@sentry/core" "7.37.2"
323+
"@sentry/types" "7.37.2"
324+
"@sentry/utils" "7.37.2"
293325
tslib "^1.9.3"
294326

295327
"@types/dompurify@^2.4.0":

0 commit comments

Comments
 (0)