Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/core/components/issues/workspace-draft/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const WorkspaceDraftIssuesRoot: FC<TWorkspaceDraftIssuesRoot> = observer(
[EUserWorkspaceRoles.ADMIN, EUserWorkspaceRoles.MEMBER],
EUserPermissionsLevel.WORKSPACE
);
const noProjectResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/onboarding/projects" });
const noProjectResolvedPath = useResolvedAssetPath({ basePath: "/empty-state/draft/draft-issues-empty" });

//swr hook for fetching issue properties
useWorkspaceIssueProperties(workspaceSlug);
Expand Down
10 changes: 6 additions & 4 deletions apps/web/core/components/pages/pages-list-main-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

type Props = {
children: React.ReactNode;
Expand Down Expand Up @@ -112,13 +109,18 @@ export const PagesListMainContent: React.FC<Props> = 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 (
<div className="h-full w-full grid place-items-center">
<div className="text-center">
<Image
src={filters.searchQuery.length > 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"
/>
Expand Down
14 changes: 10 additions & 4 deletions apps/web/core/components/project/card-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down Expand Up @@ -74,12 +71,21 @@ 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 (
<div className="grid h-full w-full place-items-center">
<div className="text-center">
<Image
src={searchQuery.trim() === "" ? AllFiltersImage : NameFilterImage}
src={searchQuery.trim() === "" ? resolvedFiltersImage : resolvedNameFilterImage}
className="mx-auto h-36 w-36 sm:h-48 sm:w-48"
alt="No matching projects"
/>
Expand Down
Binary file modified apps/web/public/empty-state/all-issues/all-issues-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/all-issues-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/assigned-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/assigned-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/created-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/created-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/custom-view-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/custom-view-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/no-project-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/no-project-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/subscribed-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/all-issues/subscribed-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/archived/empty-issues-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/archived/empty-issues-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/calendar-dark-resp.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/calendar-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/calendar-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/gantt_chart-dark-resp.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/gantt_chart-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/gantt_chart-light.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/kanban-dark-resp.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/kanban-dark.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/kanban-light-resp.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/web/public/empty-state/cycle-issues/kanban-light.webp
Binary file modified apps/web/public/empty-state/cycle-issues/list-dark-resp.webp
Binary file modified apps/web/public/empty-state/cycle-issues/list-dark.webp
Binary file modified apps/web/public/empty-state/cycle-issues/list-light-resp.webp
Binary file modified apps/web/public/empty-state/cycle-issues/list-light.webp
Binary file modified apps/web/public/empty-state/cycle-issues/spreadsheet-dark-resp.webp
Binary file modified apps/web/public/empty-state/cycle-issues/spreadsheet-dark.webp
Binary file modified apps/web/public/empty-state/cycle-issues/spreadsheet-light.webp
Binary file modified apps/web/public/empty-state/cycle/active-dark.webp
Binary file modified apps/web/public/empty-state/cycle/active-light.webp
Binary file modified apps/web/public/empty-state/dashboard/widgets-dark.webp
Binary file modified apps/web/public/empty-state/dashboard/widgets-light.webp
Binary file modified apps/web/public/empty-state/disabled-feature/cycles-dark.webp
Binary file modified apps/web/public/empty-state/draft/draft-issues-empty-dark.webp
Binary file modified apps/web/public/empty-state/draft/draft-issues-empty-light.webp
Binary file modified apps/web/public/empty-state/empty-filters/calendar-dark.webp
Binary file modified apps/web/public/empty-state/empty-filters/calendar-light.webp
Binary file modified apps/web/public/empty-state/empty-filters/gantt_chart-dark.webp
Binary file modified apps/web/public/empty-state/empty-filters/kanban-dark.webp
Binary file modified apps/web/public/empty-state/empty-filters/kanban-light.webp
Binary file modified apps/web/public/empty-state/empty-filters/list-dark.webp
Binary file modified apps/web/public/empty-state/empty-filters/list-light.webp
Binary file modified apps/web/public/empty-state/empty-filters/spreadsheet-dark.webp
Binary file modified apps/web/public/empty-state/epics/epics-dark.webp
Binary file modified apps/web/public/empty-state/epics/epics-light.webp
Binary file modified apps/web/public/empty-state/intake/filter-issue-dark.webp
Binary file modified apps/web/public/empty-state/intake/filter-issue-light.webp
Binary file modified apps/web/public/empty-state/intake/intake-issue-dark.webp
Binary file modified apps/web/public/empty-state/intake/intake-issue-light.webp
Binary file modified apps/web/public/empty-state/module-issues/calendar-dark-resp.webp
Binary file modified apps/web/public/empty-state/module-issues/calendar-dark.webp
Binary file modified apps/web/public/empty-state/module-issues/calendar-light.webp
Binary file modified apps/web/public/empty-state/module-issues/gantt_chart-dark.webp
Binary file modified apps/web/public/empty-state/module-issues/kanban-dark-resp.webp
Binary file modified apps/web/public/empty-state/module-issues/kanban-dark.webp
Binary file modified apps/web/public/empty-state/module-issues/kanban-light.webp
Binary file modified apps/web/public/empty-state/module-issues/list-dark-resp.webp
Binary file modified apps/web/public/empty-state/module-issues/list-dark.webp
Binary file modified apps/web/public/empty-state/module-issues/list-light-resp.webp
Binary file modified apps/web/public/empty-state/module-issues/list-light.webp
Binary file modified apps/web/public/empty-state/module-issues/spreadsheet-dark.webp
Binary file modified apps/web/public/empty-state/onboarding/analytics-dark.webp
Binary file modified apps/web/public/empty-state/onboarding/analytics-light.webp
Binary file modified apps/web/public/empty-state/onboarding/issues-dark.webp
Binary file modified apps/web/public/empty-state/onboarding/issues-light.webp
Binary file modified apps/web/public/empty-state/onboarding/modules-dark.webp
Binary file modified apps/web/public/empty-state/onboarding/modules-light.webp
Binary file modified apps/web/public/empty-state/onboarding/pages-dark.webp
Binary file modified apps/web/public/empty-state/onboarding/pages-light.webp
Binary file modified apps/web/public/empty-state/onboarding/projects-dark.webp
Binary file modified apps/web/public/empty-state/onboarding/projects-light.webp
Binary file modified apps/web/public/empty-state/onboarding/views-dark.webp
Binary file modified apps/web/public/empty-state/onboarding/views-light.webp
Binary file modified apps/web/public/empty-state/pages/all-dark.webp
50 changes: 50 additions & 0 deletions apps/web/public/empty-state/pages/all-filters-dark.svg
45 changes: 45 additions & 0 deletions apps/web/public/empty-state/pages/all-filters-light.svg
45 changes: 0 additions & 45 deletions apps/web/public/empty-state/pages/all-filters.svg
Diff not rendered.
Binary file modified apps/web/public/empty-state/pages/all-light.webp
Binary file modified apps/web/public/empty-state/pages/archived-dark.webp
Binary file modified apps/web/public/empty-state/pages/archived-light.webp
49 changes: 49 additions & 0 deletions apps/web/public/empty-state/pages/name-filter-dark.svg
Loading
Loading