mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
chore: dashboard empty state improvement
This commit is contained in:
parent
a18d77dd69
commit
0954db0fcb
@ -55,17 +55,19 @@ export const WorkspaceDashboardView = observer(() => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<IssuePeekOverview />
|
||||
{currentUser && !currentUser.is_tour_completed && (
|
||||
<div className="fixed left-0 top-0 z-20 grid h-full w-full place-items-center bg-custom-backdrop bg-opacity-50 transition-opacity">
|
||||
<TourRoot onComplete={handleTourCompleted} />
|
||||
</div>
|
||||
)}
|
||||
{homeDashboardId && joinedProjectIds ? (
|
||||
<div className="space-y-7 p-7 bg-custom-background-90 h-full w-full flex flex-col overflow-y-auto">
|
||||
{currentUser && <UserGreetingsView user={currentUser} />}
|
||||
<>
|
||||
{joinedProjectIds.length > 0 ? (
|
||||
<DashboardWidgets />
|
||||
<div className="space-y-7 p-7 bg-custom-background-90 h-full w-full flex flex-col overflow-y-auto">
|
||||
<IssuePeekOverview />
|
||||
{currentUser && <UserGreetingsView user={currentUser} />}
|
||||
{currentUser && !currentUser.is_tour_completed && (
|
||||
<div className="fixed left-0 top-0 z-20 grid h-full w-full place-items-center bg-custom-backdrop bg-opacity-50 transition-opacity">
|
||||
<TourRoot onComplete={handleTourCompleted} />
|
||||
</div>
|
||||
)}
|
||||
<DashboardWidgets />
|
||||
</div>
|
||||
) : (
|
||||
<EmptyState
|
||||
image={emptyStateImage}
|
||||
@ -85,7 +87,7 @@ export const WorkspaceDashboardView = observer(() => {
|
||||
disabled={!isEditingAllowed}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
) : (
|
||||
<div className="h-full w-full grid place-items-center">
|
||||
<Spinner />
|
||||
|
Loading…
Reference in New Issue
Block a user