From 70b98acb4e066e681aa67d166c98426589253714 Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Sun, 10 Nov 2024 20:37:57 +0100 Subject: [PATCH] style(app): improve version update --- .../components/Changelog/VersionDelete.tsx | 2 +- .../changelog.$id.version.$versionId.tsx | 327 +++++++++--------- .../changelog.$id.versionCreate.lazy.tsx | 1 - 3 files changed, 174 insertions(+), 156 deletions(-) diff --git a/apps/app/src/components/Changelog/VersionDelete.tsx b/apps/app/src/components/Changelog/VersionDelete.tsx index 5aa4cdb..c7f753a 100644 --- a/apps/app/src/components/Changelog/VersionDelete.tsx +++ b/apps/app/src/components/Changelog/VersionDelete.tsx @@ -38,7 +38,7 @@ export const ChangelogVersionDelete = ({ ) } return ( - + Danger Zone diff --git a/apps/app/src/routes/changelog.$id.version.$versionId.tsx b/apps/app/src/routes/changelog.$id.version.$versionId.tsx index d545743..d98c672 100644 --- a/apps/app/src/routes/changelog.$id.version.$versionId.tsx +++ b/apps/app/src/routes/changelog.$id.version.$versionId.tsx @@ -55,11 +55,12 @@ import { import '@mdxeditor/editor/style.css' import { format } from 'date-fns' import { CalendarIcon } from 'lucide-react' -import { useEffect, useRef } from 'react' +import { useEffect, useRef, useState } from 'react' import { ChangelogVersionDelete } from '../components/Changelog/VersionDelete' import { VersionStatus } from '../components/Changelog/VersionStatus' const Component = () => { + const [activeTab, setActiveTab] = useState('assigned') const { id, versionId } = Route.useParams() const mdxEditorRef = useRef(null) const navigate = useNavigate({ from: `/changelog/${id}/versionCreate` }) @@ -113,183 +114,187 @@ const Component = () => {
- - -
- Details -
-
- - ( - - Version - - - {' '} - - - )} - /> - - ( - - Notes - - ( - <> - - - - - - ), - }), - ]} - /> - {' '} - - - )} - /> - -
+
+ + +
+ Details +
+
+ ( - Status - + Version + + + {' '} )} /> +
+ ( + + Status + + + + )} + /> + + ( + + Released at + + + + + + + + field.onChange(date)} + weekStartsOn={1} + /> + + + + + )} + /> +
+ ( - - Released at - - - - - - - - field.onChange(date)} - weekStartsOn={1} - /> - - + + Notes + + ( + <> + + + + + + ), + }), + ]} + /> + {' '} )} /> -
- -
- - -
- - - - - -
- + + +
Commits ({data.commits?.length}) + +
+ + +
- - - Assigend - Unassigned - + - +
{data?.commits?.map((commit) => { return ( @@ -416,6 +421,20 @@ const Component = () => {
+
+ + +
+ + )} diff --git a/apps/app/src/routes/changelog.$id.versionCreate.lazy.tsx b/apps/app/src/routes/changelog.$id.versionCreate.lazy.tsx index 4b6e7ca..e920815 100644 --- a/apps/app/src/routes/changelog.$id.versionCreate.lazy.tsx +++ b/apps/app/src/routes/changelog.$id.versionCreate.lazy.tsx @@ -258,7 +258,6 @@ const Component = () => { {