Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added new drive migration banner to canary #2761

Merged
merged 1 commit into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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