From e4f01575971b6280209c1493cc4cc37e960ce575 Mon Sep 17 00:00:00 2001 From: Anthony Tarlao Date: Tue, 29 Aug 2023 12:32:58 +0200 Subject: [PATCH] UX refinements (#8) * Fix modal transition * Fix export translations and select input * Animate transition * Animation when expanding related documents * Animation when expanding related documents * Default value for container height * Import Modal UX refinements * Lint * Fix translation * Add constants for section height calculation * lint * Use ref for container and limit container height --- i18n/en.json | 13 ++- ui/apos/components/AposExportModal.vue | 137 ++++++++++++++++++------- ui/apos/components/AposImportModal.vue | 42 +++++++- 3 files changed, 145 insertions(+), 47 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index cc5e14b9..5088b5f8 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1,8 +1,8 @@ { - "export": "Export", - "exported": "Exported {{ count }} {{ type }}", - "exporting": "Exporting {{ type }}...", - "exportModalDescription": "You've selected {{ count }} {{ type }} for export", + "export": "Download {{ type }}", + "exported": "Downloaded {{ count }} {{ type }}", + "exporting": "Downloading {{ type }}...", + "exportModalDescription": "You've selected {{ count }} {{ type }} for download", "exportModalRelatedDocumentDescription": "Include the following document types where applicable", "exportModalSettingsLabel": "Export Settings", "exportModalDocumentFormat": "Document Format", @@ -10,7 +10,6 @@ "exportModalIncludeChildren": "Include children of this page", "exportModalIncludeRelatedSettings": "Related Documents Settings", "exportModalNoRelatedTypes": "No Related Types", - "import": "Import", - "importDocuments": "Import Documents", - "importModalDescription": "Importing content requires a zip file. See our guide to importing content in Apostrophe." + "import": "Upload {{ type }}", + "importModalDescription": "Uploading content requires a zip file. See our guide to importing content in Apostrophe." } diff --git a/ui/apos/components/AposExportModal.vue b/ui/apos/components/AposExportModal.vue index 232844b5..eebfe6ec 100644 --- a/ui/apos/components/AposExportModal.vue +++ b/ui/apos/components/AposExportModal.vue @@ -12,7 +12,7 @@