From a22597ca653f6a880f0952c85f70865068c5eff0 Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Mon, 27 Feb 2023 02:52:58 +0100 Subject: [PATCH] added new drive migration banner to canary --- twake/frontend/public/index.html | 1 + .../src/app/views/applications/drive/browser.tsx | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/twake/frontend/public/index.html b/twake/frontend/public/index.html index 26abfc705a..9ad1ae131e 100644 --- a/twake/frontend/public/index.html +++ b/twake/frontend/public/index.html @@ -143,6 +143,7 @@ const canaryTag = document.createElement("div"); canaryTag.id = "canary_tag"; document.body.appendChild(canaryTag); + window.canary = true; } diff --git a/twake/frontend/src/app/views/applications/drive/browser.tsx b/twake/frontend/src/app/views/applications/drive/browser.tsx index 8c622fd919..bd62468038 100644 --- a/twake/frontend/src/app/views/applications/drive/browser.tsx +++ b/twake/frontend/src/app/views/applications/drive/browser.tsx @@ -1,6 +1,6 @@ import { ChevronDownIcon } from '@heroicons/react/outline'; import { Button } from 'app/atoms/button/button'; -import { Base, BaseSmall, Subtitle, Title } from 'app/atoms/text'; +import { Base, BaseSmall, Info, Subtitle, Title } from 'app/atoms/text'; import Menu from 'app/components/menus/menu'; import { getFilesTree } from 'app/components/uploads/file-tree-utils'; import UploadZone from 'app/components/uploads/upload-zone'; @@ -123,6 +123,15 @@ export default ({ (loading && !children?.length ? 'opacity-50 ' : '') } > + {(window as any).canary && ( +
+ + This is the new Drive, your documents are not migrated here yet, you can exit canary + to see all your previous documents. Documents added here will not be visible yet on + production but will be kept after the final migration. + +
+ )}