@@ -9,10 +9,10 @@ import {
99 TabContent ,
1010 Text ,
1111 TextInput ,
12+ toast ,
1213 useForm ,
1314 useService ,
14- useStore ,
15- toast
15+ useStore
1616} from "@code0-tech/pictor" ;
1717import CardSection from "@code0-tech/pictor/dist/components/card/CardSection" ;
1818import { useParams } from "next/navigation" ;
@@ -49,6 +49,8 @@ export const ProjectSettingsGeneralView: React.FC = () => {
4949 } ,
5050 slug : ( value ) => {
5151 if ( ! value ) return "Slug is required"
52+ if ( value . length < 3 ) return "Slug needs to be at least 3 characters"
53+ if ( value . length > 50 ) return "Slug needs to be less than 50 characters"
5254 return null
5355 }
5456 } ,
@@ -84,19 +86,25 @@ export const ProjectSettingsGeneralView: React.FC = () => {
8486 < CardSection border >
8587 < Flex justify = { "space-between" } align = { "center" } >
8688 < Text size = { "md" } hierarchy = { "primary" } > Name</ Text >
87- < TextInput { ...inputs . getInputProps ( "name" ) } />
89+ < TextInput miw = { "200px" } { ...inputs . getInputProps ( "name" ) } />
8890 </ Flex >
8991 </ CardSection >
9092 < CardSection border >
9193 < Flex justify = { "space-between" } align = { "center" } >
9294 < Text size = { "md" } hierarchy = { "primary" } > Description</ Text >
93- < TextInput { ...inputs . getInputProps ( "description" ) } />
95+ < TextInput miw = { "200px" } { ...inputs . getInputProps ( "description" ) } />
9496 </ Flex >
9597 </ CardSection >
9698 < CardSection border >
9799 < Flex justify = { "space-between" } align = { "center" } >
98- < Text size = { "md" } hierarchy = { "primary" } > Slug</ Text >
99- < TextInput { ...inputs . getInputProps ( "slug" ) } />
100+ < Flex style = { { gap : ".35rem" , flexDirection : "column" } } >
101+ < Text size = { "md" } hierarchy = { "primary" } > Slug</ Text >
102+ < Text size = { "md" } hierarchy = { "tertiary" } >
103+ Think of this as your project’s unique nickname in a web address. It helps distinguish this
104+ project from others when using URL-based connections (like REST flows).
105+ </ Text >
106+ </ Flex >
107+ < TextInput miw = { "200px" } { ...inputs . getInputProps ( "slug" ) } />
100108 </ Flex >
101109 </ CardSection >
102110 </ Card >
0 commit comments