+
+ setShareContext(checked === true)}
+ />
+
+
+
+ {shareContext && (
+
+
+
setContextGroup(e.target.value)}
+ placeholder="default, sprint-a, client-x"
+ autoComplete="off"
+ />
+
+ Leave empty to use the default shared group.
+
+ {contextGroup.trim().length > 0 && !isValidContextGroup && (
+
+ Group must start with a letter and use only letters, numbers, dashes, or
+ underscores.
+
+ )}
+
+ )}
+
+
@@ -80,7 +136,7 @@ export function CreateAuthProfileDialog({ open, onClose }: CreateAuthProfileDial
size="sm"
className="shrink-0 h-8 px-2"
onClick={handleCopy}
- disabled={!isValidName}
+ disabled={!isValidName || (shareContext && !isValidContextGroup)}
>
{copied ? (
@@ -103,7 +159,10 @@ export function CreateAuthProfileDialog({ open, onClose }: CreateAuthProfileDial
-