From 55dbc8ad3b2ce69b9e32a17f4b542fc92902512e Mon Sep 17 00:00:00 2001 From: tzhangchi Date: Thu, 5 Jan 2023 17:11:24 +0800 Subject: [PATCH 1/3] feat: adjust modal height --- packages/app/src/components/workspace-modal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/components/workspace-modal/index.tsx b/packages/app/src/components/workspace-modal/index.tsx index 05b1f6632b..24d9782c06 100644 --- a/packages/app/src/components/workspace-modal/index.tsx +++ b/packages/app/src/components/workspace-modal/index.tsx @@ -29,7 +29,7 @@ export const WorkspaceModal = ({ open, onClose }: LoginModalProps) => { return (
- +
My Workspace List Date: Thu, 5 Jan 2023 17:38:23 +0800 Subject: [PATCH 2/3] feat: improve the ui of workspace item --- .../src/components/create-workspace/index.tsx | 1 - .../src/components/workspace-modal/index.tsx | 66 ++++++++++++++++--- 2 files changed, 56 insertions(+), 11 deletions(-) diff --git a/packages/app/src/components/create-workspace/index.tsx b/packages/app/src/components/create-workspace/index.tsx index 1a04d3ce9a..9059d9bec1 100644 --- a/packages/app/src/components/create-workspace/index.tsx +++ b/packages/app/src/components/create-workspace/index.tsx @@ -4,7 +4,6 @@ import { Button } from '@/ui/button'; import { useState } from 'react'; import { createWorkspace } from '@/hooks/mock-data/mock'; import Input from '@/ui/input'; - interface ModalProps { open: boolean; onClose: () => void; diff --git a/packages/app/src/components/workspace-modal/index.tsx b/packages/app/src/components/workspace-modal/index.tsx index 24d9782c06..ab0df439c0 100644 --- a/packages/app/src/components/workspace-modal/index.tsx +++ b/packages/app/src/components/workspace-modal/index.tsx @@ -8,6 +8,11 @@ import { setActiveWorkspace, } from '@/hooks/mock-data/mock'; import { CreateWorkspaceModal } from '../create-workspace'; +import { + CloudUnsyncedIcon, + CloudInsyncIcon, + UsersIcon, +} from '@blocksuite/icons'; interface LoginModalProps { open: boolean; @@ -29,9 +34,9 @@ export const WorkspaceModal = ({ open, onClose }: LoginModalProps) => { return (
- +
- My Workspace List + My Workspaces { }} key={item.id} > - {item.name}/ - {item.type === 'local' && local} - {item.type === 'join' && join}/ - {item.isPublish ? 'isPublish' : 'isPrivate'}/ - {item.isLocal ? 'isLocal' : ''}/ + + + + + + {item.name} + + + {item.type === 'local' && ( + + )} + {item.type === 'cloud' && ( + + )} + {item.isPublish && } + + {/* {item.isLocal ? 'isLocal' : ''}/ */} ); })} @@ -66,12 +107,16 @@ export const WorkspaceModal = ({ open, onClose }: LoginModalProps) => { setCreateWorkspaceOpen(true); }} > - Create Workspace + Create Or Import
+

+ Tips:Workspace is your virtual space to capture, create and plan + as just one person or together as a team. +

Date: Thu, 5 Jan 2023 17:55:00 +0800 Subject: [PATCH 3/3] feat: add icons --- packages/app/src/components/workspace-modal/index.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/app/src/components/workspace-modal/index.tsx b/packages/app/src/components/workspace-modal/index.tsx index 46cd1a9182..de0ae36fa3 100644 --- a/packages/app/src/components/workspace-modal/index.tsx +++ b/packages/app/src/components/workspace-modal/index.tsx @@ -16,10 +16,10 @@ import { CloudUnsyncedIcon, CloudInsyncIcon, UsersIcon, + AddIcon, } from '@blocksuite/icons'; import { useConfirm } from '@/providers/confirm-provider'; import { toast } from '@/ui/toast'; - interface LoginModalProps { open: boolean; onClose: () => void; @@ -76,6 +76,7 @@ export const WorkspaceModal = ({ open, onClose }: LoginModalProps) => { style={{ float: 'left', marginTop: '6px', + marginLeft: '10px', marginRight: '10px', }} width="24" @@ -122,6 +123,14 @@ export const WorkspaceModal = ({ open, onClose }: LoginModalProps) => { setCreateWorkspaceOpen(true); }} > + Create Or Import