diff --git a/apps/artboard/src/pages/builder.tsx b/apps/artboard/src/pages/builder.tsx index 8e413fdc..fa030e04 100644 --- a/apps/artboard/src/pages/builder.tsx +++ b/apps/artboard/src/pages/builder.tsx @@ -58,7 +58,7 @@ export const BuilderLayout = () => { diff --git a/apps/client/src/pages/builder/_components/toolbar.tsx b/apps/client/src/pages/builder/_components/toolbar.tsx index 3abea496..439f90b3 100644 --- a/apps/client/src/pages/builder/_components/toolbar.tsx +++ b/apps/client/src/pages/builder/_components/toolbar.tsx @@ -48,11 +48,7 @@ export const BuilderToolbar = () => { const onCenterView = () => frameRef?.contentWindow?.postMessage({ type: "CENTER_VIEW" }, "*"); return ( - +
{/* List Item */} - - + +
{title} {description &&

{description}

}
-
- - + + + {t`Visible`} - - + + {t`Edit`} - - + + {t`Copy`} - - + + {t`Remove`} - - -
+ + + ); diff --git a/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx b/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx index 46a6327b..de69570a 100644 --- a/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx +++ b/apps/client/src/pages/builder/sidebars/right/sections/layout.tsx @@ -238,14 +238,16 @@ export const LayoutSection = () => {

{pageIndex !== 0 && ( - + + + )} diff --git a/apps/client/src/pages/dashboard/resumes/_dialogs/resume.tsx b/apps/client/src/pages/dashboard/resumes/_dialogs/resume.tsx index 5db20792..7c0292b6 100644 --- a/apps/client/src/pages/dashboard/resumes/_dialogs/resume.tsx +++ b/apps/client/src/pages/dashboard/resumes/_dialogs/resume.tsx @@ -33,7 +33,7 @@ import { Input, Tooltip, } from "@reactive-resume/ui"; -import { generateRandomName, kebabCase } from "@reactive-resume/utils"; +import { cn, generateRandomName, kebabCase } from "@reactive-resume/utils"; import { useEffect } from "react"; import { useForm } from "react-hook-form"; import { z } from "zod"; @@ -235,24 +235,31 @@ export const ResumeDialog = () => {
- - - - - - - - - {t`Create Sample Resume`} - - - + + {isCreate && ( + + + + + + + + {t`Create Sample Resume`} + + + + )}
diff --git a/apps/client/src/stores/resume.ts b/apps/client/src/stores/resume.ts index a6fa777c..c44535c4 100644 --- a/apps/client/src/stores/resume.ts +++ b/apps/client/src/stores/resume.ts @@ -47,7 +47,8 @@ export const useResumeStore = create()( }; set((state) => { - state.resume.data.metadata.layout[0][0].push(`custom.${section.id}`); + const lastPageIndex = state.resume.data.metadata.layout.length - 1; + state.resume.data.metadata.layout[lastPageIndex][0].push(`custom.${section.id}`); state.resume.data = _set(state.resume.data, `sections.custom.${section.id}`, section); debouncedUpdateResume(JSON.parse(JSON.stringify(state.resume))); diff --git a/libs/parser/src/linkedin/schema/project.ts b/libs/parser/src/linkedin/schema/project.ts index c69a4a11..6e91c699 100644 --- a/libs/parser/src/linkedin/schema/project.ts +++ b/libs/parser/src/linkedin/schema/project.ts @@ -3,7 +3,7 @@ import { z } from "zod"; export const projectSchema = z.object({ Title: z.string(), Description: z.string(), - Url: z.string().url(), + Url: z.literal("").or(z.string().url()).optional(), "Started On": z.string(), "Finished On": z.string().optional(), });