diff --git a/web/components/common/new-empty-state.tsx b/web/components/common/new-empty-state.tsx index d11604d37..b1f769ef7 100644 --- a/web/components/common/new-empty-state.tsx +++ b/web/components/common/new-empty-state.tsx @@ -46,7 +46,7 @@ export const NewEmptyState: React.FC = ({

{title}

{description &&

{description}

}
- {primaryButton?.text + {primaryButton?.text
diff --git a/web/components/pages/pages-list/list-view.tsx b/web/components/pages/pages-list/list-view.tsx index 71148408e..d87e7dc57 100644 --- a/web/components/pages/pages-list/list-view.tsx +++ b/web/components/pages/pages-list/list-view.tsx @@ -5,12 +5,12 @@ import { Plus } from "lucide-react"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // components -import { EmptyState } from "components/common"; import { PagesListItem } from "./list-item"; +import { NewEmptyState } from "components/common/new-empty-state"; // ui import { Loader } from "@plane/ui"; // images -import emptyPage from "public/empty-state/page.svg"; +import emptyPage from "public/empty-state/empty_page.webp"; // types import { IPage } from "types"; @@ -41,13 +41,19 @@ export const PagesListView: FC = observer(({ pages }) => { ))} ) : ( - , - text: "New Page", + text: "Create your first page", onClick: () => commandPaletteStore.toggleCreatePageModal(true), }} /> diff --git a/web/components/pages/pages-list/recent-pages-list.tsx b/web/components/pages/pages-list/recent-pages-list.tsx index 38779cabf..475cb5db2 100644 --- a/web/components/pages/pages-list/recent-pages-list.tsx +++ b/web/components/pages/pages-list/recent-pages-list.tsx @@ -5,11 +5,11 @@ import { Plus } from "lucide-react"; import { useMobxStore } from "lib/mobx/store-provider"; // components import { PagesListView } from "components/pages/pages-list"; -import { EmptyState } from "components/common"; +import { NewEmptyState } from "components/common/new-empty-state"; // ui import { Loader } from "@plane/ui"; // assets -import emptyPage from "public/empty-state/page.svg"; +import emptyPage from "public/empty-state/empty_page.webp"; // helpers import { replaceUnderscoreIfSnakeCase } from "helpers/string.helper"; @@ -51,13 +51,19 @@ export const RecentPagesList: FC = observer(() => { ) : ( <> - , - text: "New Page", + text: "Create your first page", onClick: () => commandPaletteStore.toggleCreatePageModal(true), }} /> diff --git a/web/components/views/views-list.tsx b/web/components/views/views-list.tsx index 69ac6aaf2..433b93593 100644 --- a/web/components/views/views-list.tsx +++ b/web/components/views/views-list.tsx @@ -6,11 +6,11 @@ import { observer } from "mobx-react-lite"; import { useMobxStore } from "lib/mobx/store-provider"; // components import { ProjectViewListItem } from "components/views"; -import { EmptyState } from "components/common"; +import { NewEmptyState } from "components/common/new-empty-state"; // ui import { Input, Loader } from "@plane/ui"; // assets -import emptyView from "public/empty-state/view.svg"; +import emptyView from "public/empty-state/empty_view.webp"; // icons import { Plus, Search } from "lucide-react"; @@ -59,13 +59,18 @@ export const ProjectViewsList = observer(() => { )}
) : ( - , - text: "New View", + text: "Build your first view", onClick: () => commandPaletteStore.toggleCreateViewModal(true), }} /> diff --git a/web/pages/[workspaceSlug]/analytics.tsx b/web/pages/[workspaceSlug]/analytics.tsx index 9bba42c77..484b7e756 100644 --- a/web/pages/[workspaceSlug]/analytics.tsx +++ b/web/pages/[workspaceSlug]/analytics.tsx @@ -8,11 +8,11 @@ import { AppLayout } from "layouts/app-layout"; // components import { CustomAnalytics, ScopeAndDemand } from "components/analytics"; import { WorkspaceAnalyticsHeader } from "components/headers"; -import { EmptyState } from "components/common"; +import { NewEmptyState } from "components/common/new-empty-state"; // icons import { Plus } from "lucide-react"; // assets -import emptyAnalytics from "public/empty-state/analytics.svg"; +import emptyAnalytics from "public/empty-state/empty_analytics.webp"; // constants import { ANALYTICS_TABS } from "constants/analytics"; // type @@ -58,13 +58,20 @@ const AnalyticsPage: NextPageWithLayout = observer(() => { ) : ( <> - , - text: "New Project", + text: "Create Cycles and Modules first", onClick: () => { setTrackElement("ANALYTICS_EMPTY_STATE"); toggleCreateProjectModal(true); diff --git a/web/public/empty-state/empty_analytics.webp b/web/public/empty-state/empty_analytics.webp new file mode 100644 index 000000000..46174fff2 Binary files /dev/null and b/web/public/empty-state/empty_analytics.webp differ diff --git a/web/public/empty-state/empty_modules.webp b/web/public/empty-state/empty_modules.webp index 745dce48d..49050b53b 100644 Binary files a/web/public/empty-state/empty_modules.webp and b/web/public/empty-state/empty_modules.webp differ diff --git a/web/public/empty-state/empty_page.webp b/web/public/empty-state/empty_page.webp new file mode 100644 index 000000000..a0d1863b5 Binary files /dev/null and b/web/public/empty-state/empty_page.webp differ diff --git a/web/public/empty-state/empty_view.webp b/web/public/empty-state/empty_view.webp new file mode 100644 index 000000000..aa0f5a65e Binary files /dev/null and b/web/public/empty-state/empty_view.webp differ