From b2b70696f8542249f16b9173a606602f04469704 Mon Sep 17 00:00:00 2001 From: Khaled Ferjani Date: Mon, 27 Feb 2023 09:53:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=81added=20new=20drive=20migration=20b?= =?UTF-8?q?anner=20to=20canary=20(#2761)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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. + +
+ )}