diff --git a/apps/api/src/changelog/version/update.ts b/apps/api/src/changelog/version/update.ts index 04dd4fa..e7f7d73 100644 --- a/apps/api/src/changelog/version/update.ts +++ b/apps/api/src/changelog/version/update.ts @@ -62,6 +62,7 @@ export const updateFunc = async ({ const [versionUpdateResult] = await db .update(changelog_version) .set({ + version: payload.version, status: payload.status, markdown: payload.markdown, releasedAt: payload.releasedAt ? new Date(payload.releasedAt) : null, diff --git a/apps/app/src/routes/changelog.$id.version.$versionId.tsx b/apps/app/src/routes/changelog.$id.version.$versionId.tsx index 8729eae..8113054 100644 --- a/apps/app/src/routes/changelog.$id.version.$versionId.tsx +++ b/apps/app/src/routes/changelog.$id.version.$versionId.tsx @@ -8,6 +8,7 @@ import { FormItem, FormLabel, FormMessage, + Input, Popover, PopoverContent, PopoverTrigger, @@ -55,6 +56,7 @@ const Component = () => { const { data, error, isPending, refetch } = useChangelogVersionById({ id: versionId, }) + const form = useForm>({ resolver: zodResolver(VersionUpdateInput), defaultValues: data, @@ -93,12 +95,25 @@ const Component = () => { {!isPending && data && (
-

Version: {data.version}

+ ( + + Version + + + {' '} + + + )} + /> +