diff --git a/apps/web/core/components/issues/workspace-draft/empty-state.tsx b/apps/web/core/components/issues/workspace-draft/empty-state.tsx index 3cd990d07a..20acd2f322 100644 --- a/apps/web/core/components/issues/workspace-draft/empty-state.tsx +++ b/apps/web/core/components/issues/workspace-draft/empty-state.tsx @@ -23,7 +23,7 @@ export const WorkspaceDraftEmptyState: FC = observer(() => { [EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER], EUserPermissionsLevel.WORKSPACE ); - const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/cycles" }); + const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/draft/draft-issues-empty" }); return ( diff --git a/apps/web/core/components/pages/pages-list-main-content.tsx b/apps/web/core/components/pages/pages-list-main-content.tsx index 53d1747215..ab804a6498 100644 --- a/apps/web/core/components/pages/pages-list-main-content.tsx +++ b/apps/web/core/components/pages/pages-list-main-content.tsx @@ -12,9 +12,6 @@ import { useCommandPalette, useUserPermissions } from "@/hooks/store"; import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path"; // plane web hooks import { EPageStoreType, usePageStore } from "@/plane-web/hooks/store"; -// assets -import AllFiltersImage from "@/public/empty-state/pages/all-filters.svg"; -import NameFilterImage from "@/public/empty-state/pages/name-filter.svg"; const storeType = EPageStoreType.PROJECT; @@ -113,13 +110,18 @@ export const ProjectPagesListMainContent: React.FC = observer((props) => /> ); } + const resolvedFiltersImage = useResolvedAssetPath({ basePath: "/empty-state/pages/all-filters", extension: "svg" }); + const resolvedNameFilterImage = useResolvedAssetPath({ + basePath: "/empty-state/pages/name-filter", + extension: "svg", + }); // if no pages match the filter criteria if (filteredPageIds?.length === 0) return (
0 ? NameFilterImage : AllFiltersImage} + src={filters.searchQuery.length > 0 ? resolvedNameFilterImage : resolvedFiltersImage} className="h-36 sm:h-48 w-36 sm:w-48 mx-auto" alt="No matching modules" /> diff --git a/apps/web/core/components/project/card-list.tsx b/apps/web/core/components/project/card-list.tsx index d2c1f7dad8..9803ebe658 100644 --- a/apps/web/core/components/project/card-list.tsx +++ b/apps/web/core/components/project/card-list.tsx @@ -12,9 +12,6 @@ import { captureClick } from "@/helpers/event-tracker.helper"; // hooks import { useCommandPalette, useProject, useProjectFilter, useUserPermissions } from "@/hooks/store"; import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path"; -// assets -import AllFiltersImage from "@/public/empty-state/project/all-filters.svg"; -import NameFilterImage from "@/public/empty-state/project/name-filter.svg"; type TProjectCardListProps = { totalProjectIds?: string[]; @@ -74,12 +71,18 @@ export const ProjectCardList = observer((props: TProjectCardListProps) => { /> ); + const resolvedFiltersImage = useResolvedAssetPath({ basePath: "/empty-state/project/all-filters", extension: "svg" }); + const resolvedNameFilterImage = useResolvedAssetPath({ + basePath: "/empty-state/project/name-filter", + extension: "svg", + }); + if (filteredProjectIds.length === 0) return (
No matching projects diff --git a/apps/web/ee/components/pages/list/root.tsx b/apps/web/ee/components/pages/list/root.tsx index a70a1fe70b..e8afb8e2cf 100644 --- a/apps/web/ee/components/pages/list/root.tsx +++ b/apps/web/ee/components/pages/list/root.tsx @@ -16,9 +16,6 @@ import { useCommandPalette, useUserPermissions } from "@/hooks/store"; import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path"; // plane web hooks import { EPageStoreType, usePageStore } from "@/plane-web/hooks/store"; -// assets -import AllFiltersImage from "@/public/empty-state/pages/all-filters.svg"; -import NameFilterImage from "@/public/empty-state/pages/name-filter.svg"; type Props = { pageType: TPageNavigationTabs; @@ -172,13 +169,19 @@ export const WikiPagesListLayoutRoot: React.FC = observer((props) => { ); } + const resolvedFiltersImage = useResolvedAssetPath({ basePath: "/empty-state/pages/all-filters", extension: "svg" }); + const resolvedNameFilterImage = useResolvedAssetPath({ + basePath: "/empty-state/pages/name-filter", + extension: "svg", + }); + // if no pages match the filter criteria if (filters.searchQuery && pageIds.length === 0) return (
0 ? NameFilterImage : AllFiltersImage} + src={filters.searchQuery.length > 0 ? resolvedNameFilterImage : resolvedFiltersImage} className="h-36 sm:h-48 w-36 sm:w-48 mx-auto" alt="No matching pages" /> diff --git a/apps/web/ee/components/projects/layouts/project-layout-HOC.tsx b/apps/web/ee/components/projects/layouts/project-layout-HOC.tsx index bf4d7e5aa7..83cde1fd7c 100644 --- a/apps/web/ee/components/projects/layouts/project-layout-HOC.tsx +++ b/apps/web/ee/components/projects/layouts/project-layout-HOC.tsx @@ -16,7 +16,6 @@ import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path"; import { useProjectFilter, useWorkspaceProjectStates } from "@/plane-web/hooks/store"; import { EProjectLayouts } from "@/plane-web/types/workspace-project-filters"; // assets -import AllFiltersImage from "@/public/empty-state/project/all-filters.svg"; const ActiveLoader = (props: { layout: EProjectLayouts }) => { const { layout } = props; @@ -54,6 +53,8 @@ export const ProjectLayoutHOC = observer((props: Props) => { const { allowPermissions } = useUserPermissions(); // derived values const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/projects" }); + const resolvedFiltersImage = useResolvedAssetPath({ basePath: "/empty-state/project/all-filters", extension: "svg" }); + const hasProjectMemberPermissions = allowPermissions( [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER], EUserPermissionsLevel.WORKSPACE @@ -89,7 +90,7 @@ export const ProjectLayoutHOC = observer((props: Props) => { return (
- No matching projects + No matching projects
No matching projects

{`No projects detected with the matching\ncriteria. Create a new project instead`} diff --git a/apps/web/ee/components/teamspaces/list/teamspaces-list.tsx b/apps/web/ee/components/teamspaces/list/teamspaces-list.tsx index 8bcd743891..8c7e47a847 100644 --- a/apps/web/ee/components/teamspaces/list/teamspaces-list.tsx +++ b/apps/web/ee/components/teamspaces/list/teamspaces-list.tsx @@ -13,9 +13,6 @@ import { useCommandPalette, useUserPermissions } from "@/hooks/store"; // plane web hooks import { useResolvedAssetPath } from "@/hooks/use-resolved-asset-path"; import { useTeamspaces, useTeamspaceFilter } from "@/plane-web/hooks/store"; -// assets -import AllFiltersImage from "@/public/empty-state/project/all-filters.svg"; -import NameFilterImage from "@/public/empty-state/project/name-filter.svg"; // components import { TeamsLoader } from "./loader"; import { TeamspaceListItem } from "./teamspace-list-item"; @@ -40,6 +37,11 @@ export const TeamspacesList = observer((props: TTeamspacesListProps) => { EUserPermissionsLevel.WORKSPACE ); const resolvedPath = useResolvedAssetPath({ basePath: "/empty-state/teams/teams" }); + const resolvedFiltersImage = useResolvedAssetPath({ basePath: "/empty-state/project/all-filters", extension: "svg" }); + const resolvedNameFilterImage = useResolvedAssetPath({ + basePath: "/empty-state/project/name-filter", + extension: "svg", + }); if (!allTeamSpaceIds || loader === "init-loader") return ; @@ -67,7 +69,7 @@ export const TeamspacesList = observer((props: TTeamspacesListProps) => {

No matching teamspace diff --git a/apps/web/public/empty-state/pages/all-filters-dark.svg b/apps/web/public/empty-state/pages/all-filters-dark.svg new file mode 100644 index 0000000000..037a2fd6f2 --- /dev/null +++ b/apps/web/public/empty-state/pages/all-filters-dark.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/public/empty-state/pages/all-filters-light.svg b/apps/web/public/empty-state/pages/all-filters-light.svg new file mode 100644 index 0000000000..8ecd8d2e63 --- /dev/null +++ b/apps/web/public/empty-state/pages/all-filters-light.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/public/empty-state/pages/all-filters.svg b/apps/web/public/empty-state/pages/all-filters.svg deleted file mode 100644 index d0ecffbc69..0000000000 --- a/apps/web/public/empty-state/pages/all-filters.svg +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/web/public/empty-state/pages/name-filter-dark.svg b/apps/web/public/empty-state/pages/name-filter-dark.svg new file mode 100644 index 0000000000..969a1fe6e8 --- /dev/null +++ b/apps/web/public/empty-state/pages/name-filter-dark.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/public/empty-state/pages/name-filter-light.svg b/apps/web/public/empty-state/pages/name-filter-light.svg new file mode 100644 index 0000000000..bc2465ae22 --- /dev/null +++ b/apps/web/public/empty-state/pages/name-filter-light.svg @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/public/empty-state/pages/name-filter.svg b/apps/web/public/empty-state/pages/name-filter.svg deleted file mode 100644 index 2d8ff017d9..0000000000 --- a/apps/web/public/empty-state/pages/name-filter.svg +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/web/public/empty-state/project/all-filters-dark.svg b/apps/web/public/empty-state/project/all-filters-dark.svg new file mode 100644 index 0000000000..e0d69c46ca --- /dev/null +++ b/apps/web/public/empty-state/project/all-filters-dark.svg @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/public/empty-state/project/all-filters-light.svg b/apps/web/public/empty-state/project/all-filters-light.svg new file mode 100644 index 0000000000..93ac4de744 --- /dev/null +++ b/apps/web/public/empty-state/project/all-filters-light.svg @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/public/empty-state/project/all-filters.svg b/apps/web/public/empty-state/project/all-filters.svg deleted file mode 100644 index 0280bcf2d5..0000000000 --- a/apps/web/public/empty-state/project/all-filters.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/apps/web/public/empty-state/project/name-filter-dark.svg b/apps/web/public/empty-state/project/name-filter-dark.svg new file mode 100644 index 0000000000..df4c2379cc --- /dev/null +++ b/apps/web/public/empty-state/project/name-filter-dark.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web/public/empty-state/project/name-filter-light.svg b/apps/web/public/empty-state/project/name-filter-light.svg new file mode 100644 index 0000000000..ec63228370 --- /dev/null +++ b/apps/web/public/empty-state/project/name-filter-light.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +