From e0d43df7544f4f9ceb759e2a81517b744c5716d0 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Fri, 25 Apr 2025 12:06:33 +0100 Subject: [PATCH 1/2] Refactor file list into separate component --- webapp/src/components/FileList.vue | 99 +++++--------------- webapp/src/components/FileListItem.vue | 121 +++++++++++++++++++++++++ 2 files changed, 144 insertions(+), 76 deletions(-) create mode 100644 webapp/src/components/FileListItem.vue diff --git a/webapp/src/components/FileList.vue b/webapp/src/components/FileList.vue index 96d7ceac0..ae4740100 100644 --- a/webapp/src/components/FileList.vue +++ b/webapp/src/components/FileList.vue @@ -3,66 +3,30 @@
-
- - - - - {{ file.name }} - - - - - - - {{ file.source_server_name }} - - - (updated - {{ - formatDistance(new Date(file.last_modified_remote), new Date(), { - addSuffix: true, - }) - }}, last synced - {{ - formatDistance(new Date(file.last_modified), new Date(), { - addSuffix: true, - }) - }}) - - - - (uploaded - {{ - formatDistance(new Date(file.last_modified), new Date(), { - addSuffix: true, - }) - }}) - -
+
- + Upload files +
@@ -70,10 +34,13 @@ + + From 1dbf4adc1c9420087cb55811ad6a05e3e22ec35f Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Fri, 25 Apr 2025 13:27:57 +0100 Subject: [PATCH 2/2] Fix label --- webapp/cypress/e2e/editPage.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/cypress/e2e/editPage.cy.js b/webapp/cypress/e2e/editPage.cy.js index e86617bc3..8c439d92d 100644 --- a/webapp/cypress/e2e/editPage.cy.js +++ b/webapp/cypress/e2e/editPage.cy.js @@ -252,7 +252,7 @@ describe("Edit Page", () => { cy.get('[data-testid="search-input"]').type("editable_sample"); cy.findByText("editable_sample").click(); - cy.findByText("Upload files...").click(); + cy.findByText("Upload files").click(); cy.get(".uppy-Dashboard-AddFiles-title").should("contain.text", "Drop files here,"); cy.get(".uppy-Dashboard-AddFiles-title").should("contain.text", "browse files"); cy.get(".uppy-Dashboard-AddFiles-title").should("contain.text", "or import from:");