@boltic/cli 1.0.22 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/commands/integration.js
CHANGED
|
@@ -499,15 +499,16 @@ async function handleCreate() {
|
|
|
499
499
|
|
|
500
500
|
// Prompt for integration details
|
|
501
501
|
const name = await input({
|
|
502
|
-
message:
|
|
502
|
+
message:
|
|
503
|
+
"Integration name (e.g., My_Integration or My.Integration):",
|
|
503
504
|
validate: (input) => {
|
|
504
505
|
const formattedInput = input.trim().replace(/\s+/g, "_");
|
|
505
506
|
|
|
506
507
|
if (!formattedInput) return "Name is required";
|
|
507
508
|
if (formattedInput.length > 50)
|
|
508
509
|
return "Name cannot exceed 50 characters";
|
|
509
|
-
if (!/^[a-zA-Z_]+$/.test(formattedInput)) {
|
|
510
|
-
return "Name can only contain letters and
|
|
510
|
+
if (!/^[a-zA-Z_.]+$/.test(formattedInput)) {
|
|
511
|
+
return "Name can only contain letters, underscores, and periods (no numbers or hyphens)";
|
|
511
512
|
}
|
|
512
513
|
return true;
|
|
513
514
|
},
|
package/package.json
CHANGED
|
@@ -1038,6 +1038,12 @@ const button = {
|
|
|
1038
1038
|
value: "",
|
|
1039
1039
|
isDisabled: false,
|
|
1040
1040
|
readOnly: false,
|
|
1041
|
+
validation: {
|
|
1042
|
+
required: true,
|
|
1043
|
+
requiredDetail: {
|
|
1044
|
+
errorMsg: "Please connect with Asana first",
|
|
1045
|
+
},
|
|
1046
|
+
},
|
|
1041
1047
|
htmlProps: {
|
|
1042
1048
|
variant: "contained",
|
|
1043
1049
|
size: "medium",
|