Skip to content

Commit fc7c902

Browse files
committed
display auditor organisation in a11y statement
1 parent 72e876d commit fc7c902

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

confiture-rest-api/src/audits/audit-report.dto.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ class ReportContext {
113113
* @example "john-doe@example.com"
114114
*/
115115
auditorEmail: string | null;
116+
/**
117+
* @example "Web Audit Services Corp."
118+
*/
119+
auditorOrganisation: string;
116120

117121
technologies: string[];
118122

confiture-rest-api/src/audits/audit.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ export class AuditService {
768768
auditorEmail: audit.showAuditorEmailInReport
769769
? audit.auditorEmail
770770
: null,
771+
auditorOrganisation: audit.auditorOrganisation,
771772
desktopEnvironments: audit.environments
772773
.filter((e) => e.platform === 'desktop')
773774
.map((e) => ({

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ref, computed } from "vue";
2+
import { ref } from "vue";
33
import { useRoute } from "vue-router";
44
55
import { useWrappedFetch } from "../composables/useWrappedFetch";
@@ -28,11 +28,6 @@ function getA11yLevel() {
2828
const statementRef = ref<HTMLDivElement>();
2929
const showCopyAlert = ref(false);
3030
31-
const auditIsInProgress = computed(() => {
32-
// The `initiator` field is requied on the a11y declaration form so we can check that it's not null
33-
return !report.data?.procedureInitiator;
34-
});
35-
3631
async function copyA11yStatementHTML() {
3732
const tagsWithSpacesRegex = /<(?<tagName>\S+)(\s+)>/g; // "<XX >"
3833
const whitespaceFollowedTags = /<(?<tagName>p)>\s{1}/g; // "<p> "
@@ -241,9 +236,9 @@ function hideCopyAlert() {
241236
<h4 class="fr-h2">Résultats des tests</h4>
242237
<p class="fr-mb-9v fr-mb-md-6w">
243238
L’audit de conformité réalisé par
244-
<strong>{{ report.data.procedureInitiator }}</strong> révèle que
245-
<strong>{{ report.data.accessibilityRate }}%</strong> des critères du
246-
RGAA version 4 sont respectés.
239+
<strong>{{ report.data.context.auditorOrganisation }}</strong> révèle
240+
que <strong>{{ report.data.accessibilityRate }}%</strong> des critères
241+
du RGAA version 4 sont respectés.
247242
</p>
248243
<!--ul class="fr-mb-9v fr-mb-md-6w">
249244
<li>

confiture-web-app/src/types/report.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ interface AuditReportContext {
8080

8181
auditorName: string;
8282
auditorEmail: string | null;
83+
auditorOrganisation: string;
8384

8485
technologies: string[];
8586

0 commit comments

Comments
 (0)