-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[WEB-2432]fix: project not found state and error page alignment #6095
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
Changes from 2 commits
327d600
44e825e
f249b44
434561a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,8 +7,11 @@ import useSWR from "swr"; | |
|
|
||
| // components | ||
| import { JoinProject } from "@/components/auth-screens"; | ||
| import { EmptyState, LogoSpinner } from "@/components/common"; | ||
| import { LogoSpinner } from "@/components/common"; | ||
| import { EmptyState } from "@/components/empty-state"; | ||
| import { ETimeLineTypeType } from "@/components/gantt-chart/contexts"; | ||
| //constants | ||
| import { EmptyStateType } from "@/constants/empty-state"; | ||
| // hooks | ||
| import { | ||
| useCommandPalette, | ||
|
|
@@ -28,8 +31,6 @@ import { useTimeLineChart } from "@/hooks/use-timeline-chart"; | |
| import { persistence } from "@/local-db/storage.sqlite"; | ||
| // plane web constants | ||
| import { EUserPermissions, EUserPermissionsLevel } from "@/plane-web/constants/user-permissions"; | ||
| // images | ||
| import emptyProject from "@/public/empty-state/onboarding/dashboard-light.webp"; | ||
|
|
||
| interface IProjectAuthWrapper { | ||
| children: ReactNode; | ||
|
|
@@ -164,15 +165,11 @@ export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => { | |
| return ( | ||
| <div className="grid h-screen place-items-center bg-custom-background-100"> | ||
| <EmptyState | ||
| title="No such project exists" | ||
| description="Try creating a new project" | ||
| image={emptyProject} | ||
| primaryButton={{ | ||
| text: "Create Project", | ||
| onClick: () => { | ||
| setTrackElement("Projects page empty state"); | ||
| toggleCreateProjectModal(true); | ||
| }, | ||
| type={EmptyStateType.WORKSPACE_PROJECT_NOT_FOUND} | ||
| layout="screen-detailed" | ||
| primaryButtonOnClick={() => { | ||
| setTrackElement("Projects page empty state"); | ||
| toggleCreateProjectModal(true) | ||
|
Comment on lines
+168
to
+172
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Fix typo in EmptyStateType.WORKSPACE_PROJECT_NOT_FOUND enum value The enum value is indeed misspelled as "workspave-project-no-found" instead of "workspace-project-not-found". This needs to be corrected for consistency.
🔗 Analysis chainEmptyState implementation looks good, but verify enum spelling. The EmptyState component implementation aligns well with the PR objectives to fix the project not found state. The layout and click handler are properly configured. Let's verify the enum value spelling mentioned in the AI summary: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check the enum value spelling in empty-state.ts
rg -A 1 "WORKSPACE_PROJECT_NOT_FOUND" web/core/constants/empty-state.ts
Length of output: 343 |
||
| }} | ||
| /> | ||
| </div> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.