From 4d81f573a3a3503422780a406e058a40fa08d775 Mon Sep 17 00:00:00 2001
From: Simon K <6615834+simon-20@users.noreply.github.com>
Date: Fri, 9 Jan 2026 08:22:25 +0000
Subject: [PATCH 1/2] chore: run missing linting
---
cypress/integration/validationReport.spec.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cypress/integration/validationReport.spec.js b/cypress/integration/validationReport.spec.js
index e5c806b2..59eae6c3 100644
--- a/cypress/integration/validationReport.spec.js
+++ b/cypress/integration/validationReport.spec.js
@@ -146,7 +146,11 @@ describe("The Validation Report page", () => {
fixture: "validationReport01ares.json",
}).as("validation");
cy.visit("/report/ares-activities?id=BE-BCE_KBO-0546740696-PG2017-2021_CD");
- cy.get("[data-cy='document-url-anchor']").should("have.attr", "href", "https://aidstream.s3.us-west-2.amazonaws.com/xml/ares-activities.xml");
+ cy.get("[data-cy='document-url-anchor']").should(
+ "have.attr",
+ "href",
+ "https://aidstream.s3.us-west-2.amazonaws.com/xml/ares-activities.xml",
+ );
cy.get("[data-cy='document-url-anchor']").should("have.text", "ares-activities.xml");
});
});
From bac071abe59c1fb7af9bde9a1b89f14bb5a02396 Mon Sep 17 00:00:00 2001
From: Simon K <6615834+simon-20@users.noreply.github.com>
Date: Fri, 9 Jan 2026 08:22:56 +0000
Subject: [PATCH 2/2] fix: stop paging resetting on page re-focus
This stops SWRV revalidating the data on the page refocus event and so
avoids the paging resetting when switching away and back to the page.
Resolves #984
---
src/pages/ReportPage.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/pages/ReportPage.vue b/src/pages/ReportPage.vue
index 9c0f25df..452f234e 100644
--- a/src/pages/ReportPage.vue
+++ b/src/pages/ReportPage.vue
@@ -33,12 +33,14 @@
const { data: documentResponse, error: documentError } = useSWRV(
!isTestFile ? getDocumentURL(route.params?.name) : null,
() => fetchDocument(route.params.name),
+ { revalidateOnFocus: false },
);
const headerClassNames = "hidden border-0 border-b border-solid border-gray-300 p-2.5 font-bold sm:block";
const { data: organisation, error: organisationError } = useSWRV(
() => document.value && getOrganisationURL(document.value.publisher, "id"),
() => fetchOrganisationByID(document.value.publisher),
+ { revalidateOnFocus: false },
);
const { data: datasetResponse, error: datasetError } = useSWRV(
() =>
@@ -46,6 +48,7 @@
? document.value && validationReportURL(route.params.name, "name")
: validationReportURL(route.params.name, "id"),
() => fetchValidationReport(route.params.name, isTestFile),
+ { revalidateOnFocus: false },
);
provide("organisation", organisation);
@@ -135,7 +138,7 @@