Skip to content

Commit

Permalink
📁added new drive migration banner to canary (#2761)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezk2ll committed Feb 27, 2023
1 parent c384db2 commit b2b7069
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions twake/frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
const canaryTag = document.createElement("div");
canaryTag.id = "canary_tag";
document.body.appendChild(canaryTag);
window.canary = true;
}
</script>
</body>
Expand Down
11 changes: 10 additions & 1 deletion twake/frontend/src/app/views/applications/drive/browser.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -123,6 +123,15 @@ export default ({
(loading && !children?.length ? 'opacity-50 ' : '')
}
>
{(window as any).canary && (
<div className="bg-linear-purple w-full hidden sm:block px-4 py-2">
<Info className=" !text-white">
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.
</Info>
</div>
)}
<div className="flex flex-row shrink-0 items-center">
<HeaderPath path={path || []} inTrash={inTrash} setParentId={setParentId} />
<div className="grow" />
Expand Down

0 comments on commit b2b7069

Please sign in to comment.