diff --git a/twake/frontend/public/index.html b/twake/frontend/public/index.html index 26abfc705..9ad1ae131 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 8c622fd91..bd6246803 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. + +
+ )}