Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

feat: Remove starter templates, add welcome screen with guide and social links (#5722)

Oleg Isonenc0d2ebf8e0b0
diff --git a/apps/builder/app/dashboard/dashboard.test.ts b/apps/builder/app/dashboard/dashboard.test.ts
index bf8f80aa39..54a7f98082 100644
--- a/apps/builder/app/dashboard/dashboard.test.ts
+++ b/apps/builder/app/dashboard/dashboard.test.ts
@@ -5,38 +5,24 @@ const { getView } = __testing__;
describe("getView", () => {
test("returns 'search' for search path", () => {
- expect(getView("/dashboard/search", true, true)).toBe("search");
- expect(getView("/dashboard/search", false, true)).toBe("search");
+ expect(getView("/dashboard/search", true, false)).toBe("search");
+ expect(getView("/dashboard/search", false, false)).toBe("search");
});
- test("returns 'welcome' when no projects on default workspace", () => {
- expect(getView("/dashboard", false, true)).toBe("welcome");
- expect(getView("/dashboard/templates", false, true)).toBe("welcome");
+ test("returns 'welcome' when no projects and workspace not suspended", () => {
+ expect(getView("/dashboard", false, false)).toBe("welcome");
});
- test("returns 'projects' when no projects on non-default workspace", () => {
- // Non-default workspaces should never show the welcome onboarding page
- expect(getView("/dashboard", false, false)).toBe("projects");
+ test("returns 'projects' when workspace is suspended with no projects", () => {
+ expect(getView("/dashboard", false, true)).toBe("projects");
});
- test("returns 'templates' on non-default workspace with no projects", () => {
- expect(getView("/dashboard/templates", false, false)).toBe("templates");
- });
-
- test("returns 'templates' for templates path with projects", () => {
- expect(getView("/dashboard/templates", true, true)).toBe("templates");
- });
-
- test("returns 'projects' for dashboard root with projects", () => {
+ test("returns 'projects' when there are projects", () => {
+ expect(getView("/dashboard", true, false)).toBe("projects");
expect(getView("/dashboard", true, true)).toBe("projects");
});
test("returns 'projects' for unknown paths with projects", () => {
- expect(getView("/dashboard/unknown", true, true)).toBe("projects");
- });
-
- test("search takes priority over welcome", () => {
- // Even with no projects, search view should show
- expect(getView("/dashboard/search", false, true)).toBe("search");
+ expect(getView("/dashboard/unknown", true, false)).toBe("projects");
});
});
diff --git a/apps/builder/app/dashboard/dashboard.tsx b/apps/builder/app/dashboard/dashboard.tsx
index 02c882f27f..29beb5d109 100644
--- a/apps/builder/app/dashboard/dashboard.tsx
+++ b/apps/builder/app/dashboard/dashboard.tsx
@@ -17,7 +17,7 @@ import {
Grid,
IconButton,
} from "@webstudio-is/design-system";
-import { BodyIcon, ExtensionIcon } from "@webstudio-is/icons";
+import { BodyIcon } from "@webstudio-is/icons";
import {
NavLink,
useLocation,
@@ -33,10 +33,9 @@ import { dashboardPath } from "~/shared/router-utils";
import { CollapsibleSection } from "~/builder/shared/collapsible-section";
import { ProfileMenu } from "./profile-menu";
import { Projects } from "./projects/projects";
-import { Templates } from "./templates/templates";
import { Welcome } from "./welcome/welcome";
import { Header } from "./shared/layout";
-import { help } from "~/shared/help";
+import { help, socialLinks } from "~/shared/help";
import { SearchResults } from "./search/search-results";
import type { DashboardData } from "./shared/types";
import { Search } from "./search/search-field";
@@ -194,22 +193,16 @@ export const DashboardSetup = ({ data }: { data: DashboardData }) => {
const getView = (
pathname: string,
hasProjects: boolean,
- isDefaultWorkspace: boolean
+ isWorkspaceSuspended: boolean
) => {
if (pathname === dashboardPath("search")) {
return "search";
}
- // Only show the onboarding welcome page on the default workspace
- // when the user has no projects yet. Non-default workspaces that are
- // empty should show the normal (empty) projects view.
- if (hasProjects === false && isDefaultWorkspace) {
+ if (hasProjects === false && isWorkspaceSuspended === false) {
return "welcome";
}
- if (pathname === dashboardPath("templates")) {
- return "templates";
- }
return "projects";
};
@@ -229,7 +222,6 @@ export const Dashboard = () => {
publisherHost,
projectToClone,
projects,
- templates,
workspaces,
currentWorkspaceId,
} = data;
@@ -243,38 +235,21 @@ export const Dashboard = () => {
}
const isWorkspaceSuspended = isDowngradedForMember(currentWorkspace);
- const hasProjects = projects.length > 0 || isWorkspaceSuspended;
- const isDefaultWorkspace =
- currentWorkspaceId === undefined ||
- workspaces?.find((w) => w.id === currentWorkspaceId)?.isDefault === true;
- const view = getView(location.pathname, hasProjects, isDefaultWorkspace);
+ const hasProjects = projects.length > 0;
+ const view = getView(location.pathname, hasProjects, isWorkspaceSuspended);
const showWorkspaceSelector =
workspaces !== undefined &&
workspaces.length > 0 &&
currentWorkspaceId !== undefined;
- const navItems =
- view === "welcome"
- ? [
- {
- to: dashboardPath(),
- prefix: <ExtensionIcon />,
- children: "Welcome",
- },
- ]
- : [
- {
- to: dashboardPath("projects"),
- prefix: <BodyIcon />,
- children: "Projects",
- },
- {
- to: dashboardPath("templates"),
- prefix: <ExtensionIcon />,
- children: "Starter templates",
- },
- ];
+ const navItems = [
+ {
+ to: dashboardPath("projects"),
+ prefix: <BodyIcon />,
+ children: "Projects",
+ },
+ ];
return (
<TooltipProvider>
@@ -360,6 +335,29 @@ export const Dashboard = () => {
children: item.label,
}))}
/>
+ <Flex
+ align="center"
+ gap="3"
+ css={{
+ paddingInline: theme.panel.paddingInline,
+ paddingBlock: theme.spacing[5],
+ }}
+ >
+ <Text variant="labels" color="subtle">
+ Follow us:
+ </Text>
+ {socialLinks.map(({ label, url, icon }) => (
+ <Link
+ key={url}
+ href={url}
+ target="_blank"
+ color="subtle"
+ aria-label={label}
+ >
+ {icon}
+ </Link>
+ ))}
+ </Flex>
</CollapsibleSection>
</Grid>
{view === "projects" && (
@@ -372,17 +370,8 @@ export const Dashboard = () => {
isWorkspaceSuspended={isWorkspaceSuspended}
/>
)}
- {view === "templates" && (
- <Templates
- projects={templates}
- currentWorkspaceId={currentWorkspaceId}
- />
- )}
{view === "welcome" && (
- <Welcome
- projects={templates}
- currentWorkspaceId={currentWorkspaceId}
- />
+ <Welcome currentWorkspaceId={currentWorkspaceId} />
)}
{view === "search" && <SearchResults {...data} />}
</Flex>
diff --git a/apps/builder/app/dashboard/projects/projects.tsx b/apps/builder/app/dashboard/projects/projects.tsx
index 83d2c65b2c..37025d3a9b 100644
--- a/apps/builder/app/dashboard/projects/projects.tsx
+++ b/apps/builder/app/dashboard/projects/projects.tsx
@@ -10,6 +10,8 @@ import {
ToggleGroupButton,
PanelBanner,
panelBannerIconColor,
+ Link,
+ buttonStyle,
} from "@webstudio-is/design-system";
import { RepeatGridIcon, ListViewIcon } from "@webstudio-is/icons";
import type { DashboardProject } from "@webstudio-is/dashboard";
@@ -145,6 +147,15 @@ export const Projects = (props: ProjectsProps) => {
</ToggleGroupButton>
</ToggleGroup>
<SortSelect value={sortState} onValueChange={handleSortChange} />
+ <Link
+ className={buttonStyle({ color: "dark" })}
+ underline="none"
+ href="https://webstudio.is/marketplace/templates/"
+ target="_blank"
+ color="contrast"
+ >
+ Use template
+ </Link>
{permissions.canCreateProject && (
<CreateProject workspaceId={props.currentWorkspaceId} />
)}
diff --git a/apps/builder/app/dashboard/search/search-results.tsx b/apps/builder/app/dashboard/search/search-results.tsx
index 18ed6b8e32..11315e61b6 100644
--- a/apps/builder/app/dashboard/search/search-results.tsx
+++ b/apps/builder/app/dashboard/search/search-results.tsx
@@ -1,42 +1,37 @@
import { useMemo } from "react";
import { matchSorter } from "match-sorter";
import { useSearchParams } from "react-router-dom";
-import { Flex, Separator, Text, theme } from "@webstudio-is/design-system";
+import { Flex, Text, theme } from "@webstudio-is/design-system";
import type { DashboardProject } from "@webstudio-is/dashboard";
import { ProjectsGrid } from "../projects/projects";
import { Header, Main } from "../shared/layout";
import type { DashboardData } from "../shared/types";
import { NothingFound } from "./nothing-found";
-import { TemplatesGrid } from "../templates/templates";
type SearchResults = {
projects: Array<DashboardProject>;
- templates: Array<DashboardProject>;
};
const initialSearchResults: SearchResults = {
- templates: [],
projects: [],
} as const;
export const SearchResults = (props: DashboardData) => {
const [searchParams] = useSearchParams();
- const { projects, templates, publisherHost } = props;
+ const { projects, publisherHost } = props;
const search = searchParams.get("q");
const results = useMemo(() => {
- if (!search || !projects || !templates) {
+ if (!search || !projects) {
return initialSearchResults;
}
const keys = ["title", "domain"];
return {
projects: matchSorter(projects, search, { keys }),
- templates: matchSorter(templates, search, { keys }),
};
- }, [projects, templates, search]);
+ }, [projects, search]);
- const nothingFound =
- results.projects.length === 0 && results.templates.length === 0;
+ const nothingFound = results.projects.length === 0;
return (
<Main>
@@ -66,15 +61,6 @@ export const SearchResults = (props: DashboardData) => {
/>
</>
)}
- {results.templates.length > 0 && (
- <>
- <Separator />
- <Text variant="brandSectionTitle" as="h2">
- Templates
- </Text>
- <TemplatesGrid projects={results.templates} />
- </>
- )}
</Flex>
</Main>
);
diff --git a/apps/builder/app/dashboard/shared/types.ts b/apps/builder/app/dashboard/shared/types.ts
index 35890fedbb..7c1e2dfa09 100644
--- a/apps/builder/app/dashboard/shared/types.ts
+++ b/apps/builder/app/dashboard/shared/types.ts
@@ -7,7 +7,6 @@ import type { Notifications } from "~/shared/polly/types";
export type DashboardData = {
user: User;
projects: Array<DashboardProject>;
- templates: Array<DashboardProject>;
planFeatures: PlanFeatures;
purchases: Array<Purchase>;
publisherHost: string;
diff --git a/apps/builder/app/dashboard/templates/template-card.tsx b/apps/builder/app/dashboard/templates/template-card.tsx
deleted file mode 100644
index 5b29310e53..0000000000
--- a/apps/builder/app/dashboard/templates/template-card.tsx
+++ /dev/null
@@ -1,60 +0,0 @@
-import { useState } from "react";
-import { Flex, Text, theme } from "@webstudio-is/design-system";
-import type { DashboardProject } from "@webstudio-is/dashboard";
-import { builderUrl } from "~/shared/router-utils";
-import { Card, CardContent, CardFooter } from "../shared/card";
-import { ThumbnailWithAbbr, ThumbnailWithImage } from "../shared/thumbnail";
-import { CloneProjectDialog } from "~/shared/clone-project";
-
-type TemplateCardProps = {
- project: DashboardProject;
-};
-
-export const TemplateCard = ({ project, ...props }: TemplateCardProps) => {
- const [isDuplicateDialogOpen, setIsDuplicateDialogOpen] = useState(false);
- const { title, previewImageAsset } = project;
- return (
- <Card {...props}>
- <CardContent
- css={{
- background: theme.colors.brandBackgroundProjectCardBack,
- cursor: "default",
- }}
- >
- {previewImageAsset ? (
- <ThumbnailWithImage
- name={previewImageAsset.name}
- onClick={() => {
- setIsDuplicateDialogOpen(true);
- }}
- />
- ) : (
- <ThumbnailWithAbbr
- title={title}
- onClick={() => {
- setIsDuplicateDialogOpen(true);
- }}
- />
- )}
- </CardContent>
- <CardFooter>
- <Flex direction="column" justify="around">
- <Text variant="titles" truncate userSelect="text">
- {title}
- </Text>
- </Flex>
- </CardFooter>
- <CloneProjectDialog
- isOpen={isDuplicateDialogOpen}
- onOpenChange={setIsDuplicateDialogOpen}
- project={project}
- onCreate={(projectId) => {
- window.location.href = builderUrl({
- origin: window.origin,
- projectId: projectId,
- });
- }}
- />
- </Card>
- );
-};
diff --git a/apps/builder/app/dashboard/templates/templates.tsx b/apps/builder/app/dashboard/templates/templates.tsx
deleted file mode 100644
index e51f4114dc..0000000000
--- a/apps/builder/app/dashboard/templates/templates.tsx
+++ /dev/null
@@ -1,72 +0,0 @@
-import {
- Flex,
- Grid,
- List,
- ListItem,
- Text,
- rawTheme,
- theme,
-} from "@webstudio-is/design-system";
-import type { DashboardProject } from "@webstudio-is/dashboard";
-import { Header, Main } from "../shared/layout";
-import { CreateProject } from "../projects/project-dialogs";
-import { useStore } from "@nanostores/react";
-import { TemplateCard } from "./template-card";
-import { $permissions } from "~/shared/nano-states";
-
-export const TemplatesGrid = ({
- projects,
-}: {
- projects: Array<DashboardProject>;
-}) => {
- return (
- <List asChild>
- <Grid
- gap="6"
- css={{
- gridTemplateColumns: `repeat(auto-fill, minmax(${rawTheme.spacing[31]}, 1fr))`,
- paddingBottom: theme.spacing[13],
- }}
- >
- {projects.map((project) => {
- return (
- <ListItem index={0} key={project.id} asChild>
- <TemplateCard project={project} />
- </ListItem>
- );
- })}
- </Grid>
- </List>
- );
-};
-
-export const Templates = ({
- projects,
- currentWorkspaceId,
-}: {
- projects: Array<DashboardProject>;
- currentWorkspaceId?: string;
-}) => {
- const permissions = useStore($permissions);
- return (
- <Main>
- <Header variant="main">
- <Text variant="brandSectionTitle" as="h2">
- Starter templates
- </Text>
- {permissions.canCreateProject && (
- <Flex gap="2">
- <CreateProject workspaceId={currentWorkspaceId} />
- </Flex>
- )}
- </Header>
- <Flex
- direction="column"
- gap="3"
- css={{ paddingInline: theme.spacing[13] }}
- >
- <TemplatesGrid projects={projects} />
- </Flex>
- </Main>
- );
-};
diff --git a/apps/builder/app/dashboard/welcome/welcome.tsx b/apps/builder/app/dashboard/welcome/welcome.tsx
index 8c1da3c0a7..7ecd093236 100644
--- a/apps/builder/app/dashboard/welcome/welcome.tsx
+++ b/apps/builder/app/dashboard/welcome/welcome.tsx
@@ -1,46 +1,116 @@
-import { Flex, Text, theme } from "@webstudio-is/design-system";
-import type { DashboardProject } from "@webstudio-is/dashboard";
+import { Flex, Text, Link, buttonStyle } from "@webstudio-is/design-system";
+import {
+ YoutubeIcon,
+ ContentIcon,
+ DiscordIcon,
+ XLogoIcon,
+ BlueskyIcon,
+ FacebookIcon,
+ RedditIcon,
+} from "@webstudio-is/icons";
import { useStore } from "@nanostores/react";
-import { Header, Main } from "../shared/layout";
+import { Main } from "../shared/layout";
import { CreateProject } from "../projects/project-dialogs";
-import { TemplatesGrid } from "../templates/templates";
import { $permissions } from "~/shared/nano-states";
+const guideItems = [
+ {
+ icon: <YoutubeIcon />,
+ label: "Watch video tutorials",
+ href: "https://wstd.us/101",
+ },
+ {
+ icon: <ContentIcon />,
+ label: "Read the docs",
+ href: "https://docs.webstudio.is/",
+ },
+ {
+ icon: <DiscordIcon />,
+ label: "Join the community on Discord",
+ href: "https://wstd.us/community",
+ },
+];
+
+const socialItems = [
+ { icon: <XLogoIcon />, label: "X", href: "https://x.com/getwebstudio" },
+ {
+ icon: <BlueskyIcon />,
+ label: "Bluesky",
+ href: "https://bsky.app/profile/webstudio.is",
+ },
+ {
+ icon: <FacebookIcon />,
+ label: "Facebook",
+ href: "https://www.facebook.com/getwebstudio1/",
+ },
+ {
+ icon: <RedditIcon />,
+ label: "Reddit",
+ href: "https://www.reddit.com/r/webstudio/",
+ },
+];
+
export const Welcome = ({
- projects,
currentWorkspaceId,
}: {
- projects: Array<DashboardProject>;
currentWorkspaceId?: string;
}) => {
const permissions = useStore($permissions);
return (
<Main>
- <Header variant="main">
- <Flex direction="column" gap="1">
- <Text variant="brandSectionTitle" as="h2">
- Welcome to Webstudio!
- </Text>
- </Flex>
- </Header>
<Flex
direction="column"
- gap="3"
- css={{ paddingInline: theme.spacing[13] }}
+ align="center"
+ grow
+ gap="7"
+ css={{ paddingBlock: "20vh" }}
>
- <Flex align="center" gap="2">
- <Text variant="brandRegular">
- Start with a template
- {permissions.canCreateProject ? " or" : ""}
- </Text>
+ <Text variant="brandMediumTitle" as="h3">
+ Welcome!
+ </Text>
+
+ <Flex align="center" gap="3">
+ <Link
+ className={buttonStyle({ color: "dark" })}
+ underline="none"
+ href="https://webstudio.is/marketplace/templates/"
+ target="_blank"
+ color="contrast"
+ >
+ Start from a template
+ </Link>
{permissions.canCreateProject && (
<CreateProject
- buttonText="Create a blank project"
workspaceId={currentWorkspaceId}
+ buttonText="Create a blank project"
/>
)}
</Flex>
- <TemplatesGrid projects={projects} />
+
+ <Flex direction="column" gap="2">
+ {guideItems.map(({ icon, label, href }) => (
+ <Flex key={href} align="center" gap="2">
+ {icon}
+ <Link href={href} target="_blank" color="subtle">
+ {label}
+ </Link>
+ </Flex>
+ ))}
+ <Flex align="center" gap="2">
+ <Text color="subtle">Follow for updates on:</Text>
+ {socialItems.map(({ icon, label, href }) => (
+ <Link
+ key={href}
+ href={href}
+ target="_blank"
+ color="subtle"
+ aria-label={label}
+ >
+ {icon}
+ </Link>
+ ))}
+ </Flex>
+ </Flex>
</Flex>
</Main>
);
diff --git a/apps/builder/app/env/env.server.ts b/apps/builder/app/env/env.server.ts
index 834d7a2eef..1599cae10f 100644
--- a/apps/builder/app/env/env.server.ts
+++ b/apps/builder/app/env/env.server.ts
@@ -44,17 +44,6 @@ const envSchema = z.object({
ENTRI_APPLICATION_ID: z.string().default("webstudio"),
ENTRI_SECRET: z.string().optional(),
- // Projects as templates in dashboard (comma-separated IDs)
- PROJECT_TEMPLATES: z
- .string()
- .default("")
- .transform((val) =>
- val
- .split(",")
- .map((id) => id.trim())
- .filter(Boolean)
- ),
-
PUBLISHER_HOST: z.string().default("wstd.work"),
STAGING_USERNAME: z.string().default("admin"),
@@ -114,7 +103,6 @@ const rawEnv = {
RESIZE_ORIGIN: process.env.RESIZE_ORIGIN,
ENTRI_APPLICATION_ID: process.env.ENTRI_APPLICATION_ID,
ENTRI_SECRET: process.env.ENTRI_SECRET,
- PROJECT_TEMPLATES: process.env.PROJECT_TEMPLATES,
PUBLISHER_HOST: process.env.PUBLISHER_HOST,
STAGING_USERNAME: process.env.STAGING_USERNAME,
STAGING_PASSWORD: process.env.STAGING_PASSWORD,
diff --git a/apps/builder/app/routes/_ui.dashboard.templates.tsx b/apps/builder/app/routes/_ui.dashboard.templates.tsx
deleted file mode 100644
index 28568f1d55..0000000000
--- a/apps/builder/app/routes/_ui.dashboard.templates.tsx
+++ /dev/null
@@ -1,27 +0,0 @@
-import { lazy } from "react";
-import { type MetaFunction } from "@remix-run/react";
-import { ClientOnly } from "~/shared/client-only";
-export { ErrorBoundary } from "~/shared/error/error-boundary";
-
-export const meta = () => {
- const metas: ReturnType<MetaFunction> = [];
-
- metas.push({ title: "Webstudio Dashboard | Templates" });
-
- return metas;
-};
-
-const Dashboard = lazy(async () => {
- const { Dashboard } = await import("~/dashboard/index.client");
- return { default: Dashboard };
-});
-
-const DashboardRoute = () => {
- return (
- <ClientOnly>
- <Dashboard />
- </ClientOnly>
- );
-};
-
-export default DashboardRoute;
diff --git a/apps/builder/app/routes/_ui.dashboard.tsx b/apps/builder/app/routes/_ui.dashboard.tsx
index a94d71a202..76ab0be5ed 100644
--- a/apps/builder/app/routes/_ui.dashboard.tsx
+++ b/apps/builder/app/routes/_ui.dashboard.tsx
@@ -23,7 +23,6 @@ import { notification as notificationApi } from "@webstudio-is/project/index.ser
import type { Role } from "@webstudio-is/project";
import { parseBuilderUrl } from "@webstudio-is/http-client";
import { dashboardProjectRouter } from "@webstudio-is/dashboard/index.server";
-import { db as dashboardDb } from "@webstudio-is/dashboard/index.server";
import { builderUrl, isDashboard, loginPath } from "~/shared/router-utils";
import { getSetting, setSetting } from "~/builder/shared/client-settings";
import env from "~/env/env.server";
@@ -129,12 +128,6 @@ const loadDashboardData = async (request: Request) => {
? []
: await dashboardProjectCaller(context).findMany(findManyInput);
- const templates = await dashboardDb.db.findManyByIds(
- env.PROJECT_TEMPLATES,
- context,
- { skipApprovalCheck: true }
- );
-
const notifications = await notificationApi.list(context);
return {
@@ -144,7 +137,6 @@ const loadDashboardData = async (request: Request) => {
planFeatures,
purchases,
projects,
- templates,
workspaces,
currentWorkspaceId,
role,
@@ -198,7 +190,6 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
purchases,
origin,
projects,
- templates,
workspaces,
currentWorkspaceId,
role,
@@ -210,7 +201,6 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {
return {
user,
projects,
- templates,
planFeatures,
purchases,
publisherHost: env.PUBLISHER_HOST,
diff --git a/apps/builder/app/shared/help.tsx b/apps/builder/app/shared/help.tsx
index 57b6a74ecf..4c3cee52ff 100644
--- a/apps/builder/app/shared/help.tsx
+++ b/apps/builder/app/shared/help.tsx
@@ -1,4 +1,31 @@
-import { ContentIcon, DiscordIcon, YoutubeIcon } from "@webstudio-is/icons";
+import {
+ ContentIcon,
+ DiscordIcon,
+ YoutubeIcon,
+ XLogoIcon,
+ BlueskyIcon,
+ FacebookIcon,
+ RedditIcon,
+} from "@webstudio-is/icons";
+
+export const socialLinks = [
+ { label: "X", url: "https://x.com/getwebstudio", icon: <XLogoIcon /> },
+ {
+ label: "Bluesky",
+ url: "https://bsky.app/profile/webstudio.is",
+ icon: <BlueskyIcon />,
+ },
+ {
+ label: "Facebook",
+ url: "https://www.facebook.com/webstudiois",
+ icon: <FacebookIcon />,
+ },
+ {
+ label: "Reddit",
+ url: "https://www.reddit.com/r/webstudio/",
+ icon: <RedditIcon />,
+ },
+] as const;
export const help = [
{
diff --git a/packages/dashboard/src/db/projects.ts b/packages/dashboard/src/db/projects.ts
index 06f7582fbd..7922c23e43 100644
--- a/packages/dashboard/src/db/projects.ts
+++ b/packages/dashboard/src/db/projects.ts
@@ -213,8 +213,7 @@ export const countByUserId = async ({
export const findManyByIds = async (
projectIds: string[],
- context: AppContext,
- { skipApprovalCheck = false }: { skipApprovalCheck?: boolean } = {}
+ context: AppContext
) => {
if (projectIds.length === 0) {
return [];
@@ -231,16 +230,12 @@ export const findManyByIds = async (
.in("id", projectIds)
.eq("isDeleted", false);
- // PROJECT_TEMPLATES IDs are admin-curated via env var and skip approval.
- // Other callers require ownership or marketplace approval.
- if (skipApprovalCheck === false) {
- if (userId !== undefined) {
- query = query.or(
- `userId.eq.${userId},marketplaceApprovalStatus.eq.APPROVED`
- );
- } else {
- query = query.eq("marketplaceApprovalStatus", "APPROVED");
- }
+ if (userId !== undefined) {
+ query = query.or(
+ `userId.eq.${userId},marketplaceApprovalStatus.eq.APPROVED`
+ );
+ } else {
+ query = query.eq("marketplaceApprovalStatus", "APPROVED");
}
const data = await query
diff --git a/packages/icons/icons/bluesky.svg b/packages/icons/icons/bluesky.svg
new file mode 100644
index 0000000000..1688b226c6
--- /dev/null
+++ b/packages/icons/icons/bluesky.svg
@@ -0,0 +1,12 @@
+<svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ d="M8 7.29973C7.36592 6.06656 5.63983 3.76881 4.0345 2.63598C2.49683 1.55039 1.91058 1.73823 1.52617 1.91264C1.08108 2.11273 1 2.79639 1 3.19773C1 3.60023 1.2205 6.49356 1.364 6.97714C1.83942 8.57314 3.52992 9.11214 5.08742 8.93948C5.16675 8.92781 5.24783 8.91673 5.3295 8.90681C5.249 8.91964 5.1685 8.93014 5.08742 8.93948C2.80542 9.27781 0.778333 10.1091 3.43658 13.0683C6.36083 16.0958 7.44408 12.4191 8 10.5553C8.55592 12.4191 9.19583 15.9634 12.5109 13.0683C15 10.5553 13.1946 9.27781 10.9126 8.93948C10.8316 8.93052 10.7509 8.91963 10.6705 8.90681C10.7522 8.91673 10.8333 8.92781 10.9126 8.93948C12.4701 9.11273 14.1606 8.57314 14.636 6.97714C14.7795 6.49414 15 3.59964 15 3.19831C15 2.79581 14.9189 2.11273 14.4738 1.91148C14.0894 1.73764 13.5032 1.54981 11.9655 2.63481C10.3602 3.76939 8.63408 6.06714 8 7.29973Z"
+ fill="currentColor"
+ />
+</svg>
diff --git a/packages/icons/icons/facebook.svg b/packages/icons/icons/facebook.svg
new file mode 100644
index 0000000000..81f07fe051
--- /dev/null
+++ b/packages/icons/icons/facebook.svg
@@ -0,0 +1,12 @@
+<svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ d="M6.30892 14.8197V10.1648H4.86575V8.02567H6.30892V7.104C6.30892 4.72108 7.38692 3.61683 9.72608 3.61683C9.96 3.61683 10.2832 3.64133 10.5824 3.67692C10.8066 3.69998 11.0289 3.73798 11.248 3.79067V5.73025C11.1213 5.71844 10.9943 5.71143 10.8671 5.70925C10.7246 5.70555 10.582 5.7038 10.4395 5.704C10.0271 5.704 9.70508 5.76 9.46242 5.88425C9.29928 5.9661 9.16214 6.09173 9.06633 6.24708C8.91583 6.49208 8.84817 6.8275 8.84817 7.26908V8.02567H11.1342L10.9091 9.25242L10.7417 10.1648H8.84817V14.9743C12.3143 14.5555 15 11.6044 15 8.02567C15 4.15992 11.8657 1.02567 8 1.02567C4.13425 1.02567 1 4.15992 1 8.02567C1 11.3087 3.25983 14.0632 6.30892 14.8197Z"
+ fill="currentColor"
+ />
+</svg>
diff --git a/packages/icons/icons/linkedin.svg b/packages/icons/icons/linkedin.svg
new file mode 100644
index 0000000000..d8b98357c7
--- /dev/null
+++ b/packages/icons/icons/linkedin.svg
@@ -0,0 +1,12 @@
+<svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ d="M13.4443 1C14.3034 1 15 1.69655 15 2.55566V13.4443C15 14.3034 14.3034 15 13.4443 15H2.55566C1.69655 15 1 14.3034 1 13.4443V2.55566C1 1.69655 1.69655 1 2.55566 1H13.4443ZM3.14551 13.0557H5.2334V6.31445H3.14551V13.0557ZM10.6025 6.1084C9.17211 6.1084 8.56934 7.22266 8.56934 7.22266V6.31445H6.56738V13.0557H8.56934V9.5166C8.56948 8.56878 9.00659 8.00488 9.8418 8.00488C10.6094 8.00501 10.9784 8.54686 10.9785 9.5166V13.0557H13.0557V8.78809C13.0557 6.98249 12.0321 6.10855 10.6025 6.1084ZM4.17871 2.94434C3.49689 2.94451 2.94434 3.50168 2.94434 4.18848C2.94443 4.87519 3.49694 5.43244 4.17871 5.43262C4.86063 5.43262 5.41299 4.8753 5.41309 4.18848C5.41309 3.50157 4.86068 2.94434 4.17871 2.94434Z"
+ fill="currentColor"
+ />
+</svg>
diff --git a/packages/icons/icons/reddit.svg b/packages/icons/icons/reddit.svg
new file mode 100644
index 0000000000..3cfc4ebce3
--- /dev/null
+++ b/packages/icons/icons/reddit.svg
@@ -0,0 +1,14 @@
+<svg
+ width="16"
+ height="16"
+ viewBox="0 0 16 16"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+>
+ <path
+ fill-rule="evenodd"
+ clip-rule="evenodd"
+ d="M16 8.27C16 7.02 14.98 6 13.73 6c-.58 0-1.1.22-1.5.58C10.92 5.93 9.53 5.57 8 5.54l.74-3.47 2.4.51A1.5 1.5 0 1 0 13 1a1.5 1.5 0 0 0-1.43 1.05l-2.68-.57a.27.27 0 0 0-.32.2L7.7 5.54c-1.55.03-2.95.39-4.24 1.04A2.27 2.27 0 0 0 2.27 6C1.02 6 0 7.02 0 8.27c0 .9.53 1.68 1.3 2.04A3.7 3.7 0 0 0 1.27 11C1.27 13.21 4.32 15 8 15s6.73-1.79 6.73-4a3.7 3.7 0 0 0-.03-.69A2.27 2.27 0 0 0 16 8.27ZM5.5 10a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm5.5 2.5c-.7.7-2.83.72-3 .72s-2.3-.02-3-.72a.27.27 0 0 1 .38-.38c.48.48 1.96.6 2.62.6s2.14-.12 2.62-.6a.27.27 0 0 1 .38.38ZM10.5 11a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"
+ fill="currentColor"
+ />
+</svg>
diff --git a/packages/icons/src/__generated__/components.tsx b/packages/icons/src/__generated__/components.tsx
index d9a6ee7dbe..74b895fd10 100644
--- a/packages/icons/src/__generated__/components.tsx
+++ b/packages/icons/src/__generated__/components.tsx
@@ -1171,6 +1171,28 @@ export const BlockquoteIcon: IconComponent = forwardRef(
);
BlockquoteIcon.displayName = "BlockquoteIcon";
+export const BlueskyIcon: IconComponent = forwardRef(
+ ({ fill = "none", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={size}
+ height={size}
+ fill={fill}
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ fill="currentColor"
+ d="M8 7.3c-.634-1.233-2.36-3.531-3.965-4.664-1.538-1.086-2.124-.898-2.509-.723-.445.2-.526.883-.526 1.285 0 .402.22 3.296.364 3.78.475 1.595 2.166 2.134 3.723 1.961-2.282.339-4.309 1.17-1.65 4.13 2.924 3.027 4.007-.65 4.563-2.514.556 1.864 1.196 5.408 4.51 2.513 2.49-2.513.685-3.79-1.597-4.129 1.557.174 3.248-.366 3.723-1.962C14.78 6.494 15 3.6 15 3.198c0-.402-.081-1.085-.526-1.287-.385-.173-.97-.361-2.508.724C10.36 3.769 8.634 6.067 8 7.3Z"
+ />
+ </svg>
+ );
+ }
+);
+BlueskyIcon.displayName = "BlueskyIcon";
+
export const BodyIcon: IconComponent = forwardRef(
({ fill = "none", size = 16, ...props }, forwardedRef) => {
return (
@@ -2636,6 +2658,28 @@ export const EyedropperIcon: IconComponent = forwardRef(
);
EyedropperIcon.displayName = "EyedropperIcon";
+export const FacebookIcon: IconComponent = forwardRef(
+ ({ fill = "none", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={size}
+ height={size}
+ fill={fill}
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ fill="currentColor"
+ d="M6.309 14.82v-4.655H4.866v-2.14h1.443v-.921c0-2.383 1.078-3.487 3.417-3.487.234 0 .557.024.856.06.225.023.447.061.666.114v1.94a5.032 5.032 0 0 0-.38-.022 15.632 15.632 0 0 0-.428-.005c-.413 0-.735.056-.978.18a.984.984 0 0 0-.396.363c-.15.245-.218.58-.218 1.022v.757h2.286l-.225 1.226-.167.913H8.848v4.81a7 7 0 1 0-2.54-.155Z"
+ />
+ </svg>
+ );
+ }
+);
+FacebookIcon.displayName = "FacebookIcon";
+
export const FolderIcon: IconComponent = forwardRef(
({ fill = "none", size = 16, ...props }, forwardedRef) => {
return (
@@ -3439,6 +3483,28 @@ export const LinkIcon: IconComponent = forwardRef(
);
LinkIcon.displayName = "LinkIcon";
+export const LinkedinIcon: IconComponent = forwardRef(
+ ({ fill = "none", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={size}
+ height={size}
+ fill={fill}
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ fill="currentColor"
+ d="M13.444 1C14.304 1 15 1.697 15 2.556v10.888c0 .86-.697 1.556-1.556 1.556H2.556C1.696 15 1 14.303 1 13.444V2.556C1 1.696 1.697 1 2.556 1h10.888ZM3.146 13.056h2.087V6.314H3.146v6.742Zm7.456-6.948c-1.43 0-2.033 1.115-2.033 1.115v-.909H6.567v6.742H8.57v-3.54c0-.947.438-1.511 1.273-1.511.767 0 1.136.542 1.136 1.512v3.539h2.078V8.788c0-1.806-1.024-2.68-2.454-2.68ZM4.18 2.944a1.24 1.24 0 0 0-1.235 1.244A1.24 1.24 0 0 0 4.18 5.433a1.24 1.24 0 0 0 1.234-1.245A1.24 1.24 0 0 0 4.18 2.944Z"
+ />
+ </svg>
+ );
+ }
+);
+LinkedinIcon.displayName = "LinkedinIcon";
+
export const ListItemIcon: IconComponent = forwardRef(
({ fill = "none", size = 16, ...props }, forwardedRef) => {
return (
@@ -4401,6 +4467,30 @@ export const RangeCoverIcon: IconComponent = forwardRef(
);
RangeCoverIcon.displayName = "RangeCoverIcon";
+export const RedditIcon: IconComponent = forwardRef(
+ ({ fill = "none", size = 16, ...props }, forwardedRef) => {
+ return (
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 16 16"
+ width={size}
+ height={size}
+ fill={fill}
+ {...props}
+ ref={forwardedRef}
+ >
+ <path
+ fill="currentColor"
+ fillRule="evenodd"
+ d="M16 8.27C16 7.02 14.98 6 13.73 6c-.58 0-1.1.22-1.5.58A9.784 9.784 0 0 0 8 5.54l.74-3.47 2.4.51A1.5 1.5 0 1 0 13 1a1.5 1.5 0 0 0-1.43 1.05l-2.68-.57a.27.27 0 0 0-.32.2L7.7 5.54c-1.55.03-2.95.39-4.24 1.04A2.27 2.27 0 0 0 2.27 6C1.02 6 0 7.02 0 8.27c0 .9.53 1.68 1.3 2.04a3.7 3.7 0 0 0-.03.69c0 2.21 3.05 4 6.73 4s6.73-1.79 6.73-4a3.7 3.7 0 0 0-.03-.69A2.27 2.27 0 0 0 16 8.27ZM5.5 10a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm5.5 2.5c-.7.7-2.83.72-3 .72s-2.3-.02-3-.72a.27.27 0 0 1 .38-.38c.48.48 1.96.6 2.62.6s2.14-.12 2.62-.6a.27.27 0 0 1 .38.38Zm-.5-1.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"
+ clipRule="evenodd"
+ />
+ </svg>
+ );
+ }
+);
+RedditIcon.displayName = "RedditIcon";
+
export const RefreshCcwIcon: IconComponent = forwardRef(
({ fill = "none", size = 16, ...props }, forwardedRef) => {
return (
diff --git a/packages/icons/src/__generated__/svg.ts b/packages/icons/src/__generated__/svg.ts
index 91b62917a0..4f369bd0b1 100644
--- a/packages/icons/src/__generated__/svg.ts
+++ b/packages/icons/src/__generated__/svg.ts
@@ -84,6 +84,8 @@ export const BellIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" vie
export const BlockquoteIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" d="M6.667 8H3.333a.667.667 0 0 1-.666-.667V5a.667.667 0 0 1 .666-.667H6A.667.667 0 0 1 6.667 5v3Zm0 0C6.667 9.667 6 10.667 4 11.667M13.333 8H10a.667.667 0 0 1-.667-.667V5A.667.667 0 0 1 10 4.333h2.667a.667.667 0 0 1 .666.667v3Zm0 0c0 1.667-.666 2.667-2.666 3.667"/></svg>`;
+export const BlueskyIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="currentColor" d="M8 7.3c-.634-1.233-2.36-3.531-3.965-4.664-1.538-1.086-2.124-.898-2.509-.723-.445.2-.526.883-.526 1.285 0 .402.22 3.296.364 3.78.475 1.595 2.166 2.134 3.723 1.961-2.282.339-4.309 1.17-1.65 4.13 2.924 3.027 4.007-.65 4.563-2.514.556 1.864 1.196 5.408 4.51 2.513 2.49-2.513.685-3.79-1.597-4.129 1.557.174 3.248-.366 3.723-1.962C14.78 6.494 15 3.6 15 3.198c0-.402-.081-1.085-.526-1.287-.385-.173-.97-.361-2.508.724C10.36 3.769 8.634 6.067 8 7.3Z"/></svg>`;
+
export const BodyIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.667 2H3.333C2.597 2 2 2.597 2 3.333v9.334C2 13.403 2.597 14 3.333 14h9.334c.736 0 1.333-.597 1.333-1.333V3.333C14 2.597 13.403 2 12.667 2ZM2 6h12"/></svg>`;
export const BoldIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M4 8h6a2.667 2.667 0 0 1 0 5.333H4.667A.667.667 0 0 1 4 12.667V3.333a.667.667 0 0 1 .667-.666h4.666a2.667 2.667 0 1 1 0 5.333"/></svg>`;
@@ -198,6 +200,8 @@ export const EyeOpenIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none"
export const EyedropperIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="m1.502 14.498.65-.65h1.947L9.94 8.008"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M2.151 13.849V11.9L7.993 6.06M9.94 4.113l2.207-2.207a1.377 1.377 0 0 1 1.947 1.947L11.887 6.06l.26.26A1.376 1.376 0 1 1 10.2 8.266L7.733 5.8a1.377 1.377 0 1 1 1.948-1.947l.26.26Z"/></svg>`;
+export const FacebookIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="currentColor" d="M6.309 14.82v-4.655H4.866v-2.14h1.443v-.921c0-2.383 1.078-3.487 3.417-3.487.234 0 .557.024.856.06.225.023.447.061.666.114v1.94a5.032 5.032 0 0 0-.38-.022 15.632 15.632 0 0 0-.428-.005c-.413 0-.735.056-.978.18a.984.984 0 0 0-.396.363c-.15.245-.218.58-.218 1.022v.757h2.286l-.225 1.226-.167.913H8.848v4.81a7 7 0 1 0-2.54-.155Z"/></svg>`;
+
export const FolderIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M13.333 13.333A1.333 1.333 0 0 0 14.667 12V5.333A1.334 1.334 0 0 0 13.333 4H8.067a1.333 1.333 0 0 1-1.127-.6l-.54-.8A1.333 1.333 0 0 0 5.287 2h-2.62a1.333 1.333 0 0 0-1.334 1.333V12a1.333 1.333 0 0 0 1.334 1.333h10.666Z"/></svg>`;
export const FooterIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M12.667 2H3.333C2.597 2 2 2.597 2 3.333v9.334C2 13.403 2.597 14 3.333 14h9.334c.736 0 1.333-.597 1.333-1.333V3.333C14 2.597 13.403 2 12.667 2ZM4 12h8"/></svg>`;
@@ -256,6 +260,8 @@ export const Link2Icon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" vi
export const LinkIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M8.943 11.771 8 12.714A3.333 3.333 0 0 1 3.286 8l.943-.943M7.057 4.229 8 3.286A3.333 3.333 0 1 1 12.714 8l-.943.943M6.114 9.886l3.772-3.772"/></svg>`;
+export const LinkedinIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="currentColor" d="M13.444 1C14.304 1 15 1.697 15 2.556v10.888c0 .86-.697 1.556-1.556 1.556H2.556C1.696 15 1 14.303 1 13.444V2.556C1 1.696 1.697 1 2.556 1h10.888ZM3.146 13.056h2.087V6.314H3.146v6.742Zm7.456-6.948c-1.43 0-2.033 1.115-2.033 1.115v-.909H6.567v6.742H8.57v-3.54c0-.947.438-1.511 1.273-1.511.767 0 1.136.542 1.136 1.512v3.539h2.078V8.788c0-1.806-1.024-2.68-2.454-2.68ZM4.18 2.944a1.24 1.24 0 0 0-1.235 1.244A1.24 1.24 0 0 0 4.18 5.433a1.24 1.24 0 0 0 1.234-1.245A1.24 1.24 0 0 0 4.18 2.944Z"/></svg>`;
+
export const ListItemIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" width="100%" height="100%" style="display: block;"><path d="M3.7 6.175a.85.85 0 1 1-1.7 0 .85.85 0 0 1 1.7 0Z"/><path fill-rule="evenodd" d="M5 6.175c0-.345.28-.625.625-.625h7.75a.625.625 0 1 1 0 1.25h-7.75A.625.625 0 0 1 5 6.175ZM5 10.05c0-.345.28-.625.625-.625h7.75a.625.625 0 1 1 0 1.25h-7.75A.625.625 0 0 1 5 10.05Z" clip-rule="evenodd"/></svg>`;
export const ListViewIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="currentColor" fill-rule="evenodd" d="M3.333 2.5a.833.833 0 0 0-.833.833v9.334c0 .46.373.833.833.833h9.334c.46 0 .833-.373.833-.833V3.333a.833.833 0 0 0-.833-.833H3.333ZM1.5 3.333c0-1.012.82-1.833 1.833-1.833h9.334c1.012 0 1.833.82 1.833 1.833v9.334c0 1.012-.82 1.833-1.833 1.833H3.333A1.833 1.833 0 0 1 1.5 12.667V3.333Z" clip-rule="evenodd"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M14 6H2M14 10H2"/></svg>`;
@@ -326,6 +332,8 @@ export const RangeContainIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="n
export const RangeCoverIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" d="M11 13.5v-1c0-.552-.597-1-1.333-1H6.333c-.736 0-1.333.448-1.333 1v1c0 .552.597 1 1.333 1h3.334c.736 0 1.333-.448 1.333-1ZM1.5 9.5h13M1.452 1.5h13"/></svg>`;
+export const RedditIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="currentColor" fill-rule="evenodd" d="M16 8.27C16 7.02 14.98 6 13.73 6c-.58 0-1.1.22-1.5.58A9.784 9.784 0 0 0 8 5.54l.74-3.47 2.4.51A1.5 1.5 0 1 0 13 1a1.5 1.5 0 0 0-1.43 1.05l-2.68-.57a.27.27 0 0 0-.32.2L7.7 5.54c-1.55.03-2.95.39-4.24 1.04A2.27 2.27 0 0 0 2.27 6C1.02 6 0 7.02 0 8.27c0 .9.53 1.68 1.3 2.04a3.7 3.7 0 0 0-.03.69c0 2.21 3.05 4 6.73 4s6.73-1.79 6.73-4a3.7 3.7 0 0 0-.03-.69A2.27 2.27 0 0 0 16 8.27ZM5.5 10a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm5.5 2.5c-.7.7-2.83.72-3 .72s-2.3-.02-3-.72a.27.27 0 0 1 .38-.38c.48.48 1.96.6 2.62.6s2.14-.12 2.62-.6a.27.27 0 0 1 .38.38Zm-.5-1.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z" clip-rule="evenodd"/></svg>`;
+
export const RefreshCcwIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="100%" height="100%" style="display: block;"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8m0 0V3m0 5h5m-5 4a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16m0 0h-5m5 0v5"/></svg>`;
export const RefreshIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="100%" height="100%" style="display: block;"><path fill="currentColor" fill-rule="evenodd" d="M8 1.5h-.002A7 7 0 0 0 3.16 3.467l-.006.006-.653.653V2a.5.5 0 0 0-1 0v3.333a.498.498 0 0 0 .144.352l.005.004A.498.498 0 0 0 2 5.833h3.357a.5.5 0 1 0 0-1h-2.15l.65-.65A6 6 0 0 1 8.001 2.5 5.5 5.5 0 0 1 13.5 8a.5.5 0 0 0 1 0A6.5 6.5 0 0 0 8 1.5Zm-6 6a.5.5 0 0 1 .5.5A5.5 5.5 0 0 0 8 13.5a6 6 0 0 0 4.143-1.683l.759-.76h-2.235a.5.5 0 1 1 0-1H14a.5.5 0 0 1 .5.5v3.334a.5.5 0 0 1-1 0v-2.017l-.653.653-.006.006A7 7 0 0 1 8 14.5H8A6.5 6.5 0 0 1 1.5 8a.5.5 0 0 1 .5-.5Z" clip-rule="evenodd"/></svg>`;