zinkee 0.1.31 → 0.1.32
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/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/schemas.ts +13 -2
- package/src/utils/examples.ts +2 -1
package/package.json
CHANGED
package/src/commands/schemas.ts
CHANGED
|
@@ -64,6 +64,16 @@ interface SetUniqueFieldsCommandOptions {
|
|
|
64
64
|
clear?: boolean;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
const HIGHLIGHTED_FIELD_HELP = `
|
|
68
|
+
Highlighted field:
|
|
69
|
+
The schema's "main" field. The frontend uses its value as each record's
|
|
70
|
+
display name, in two places:
|
|
71
|
+
- Activity panel: the record's title in the activity side panel
|
|
72
|
+
(the panel with the record's logs and comments).
|
|
73
|
+
- Detail view: the record's name in the left-hand record list you
|
|
74
|
+
browse to open each record's form.
|
|
75
|
+
`;
|
|
76
|
+
|
|
67
77
|
interface FieldCreateCommandOptions {
|
|
68
78
|
type?: string;
|
|
69
79
|
slug?: string;
|
|
@@ -583,7 +593,7 @@ export function registerSchemasCommands(
|
|
|
583
593
|
.option("--commentable <bool>", "commentable flag", parseBooleanFlag)
|
|
584
594
|
.option(
|
|
585
595
|
"--highlighted-field <field>",
|
|
586
|
-
"
|
|
596
|
+
"its value is used as each record's display name in the UI (field uuid or slug)",
|
|
587
597
|
parseUuidOrSlugSelector,
|
|
588
598
|
)
|
|
589
599
|
.action(async function action(
|
|
@@ -621,7 +631,8 @@ export function registerSchemasCommands(
|
|
|
621
631
|
}
|
|
622
632
|
|
|
623
633
|
writeLine(stdout, `Updated schema "${data.slug ?? schema.value}".`);
|
|
624
|
-
})
|
|
634
|
+
})
|
|
635
|
+
.addHelpText("after", HIGHLIGHTED_FIELD_HELP);
|
|
625
636
|
|
|
626
637
|
schemas
|
|
627
638
|
.command("set-unique-fields")
|
package/src/utils/examples.ts
CHANGED
|
@@ -264,7 +264,8 @@ const specificExamples: Record<string, readonly CommandExample[]> = {
|
|
|
264
264
|
}`,
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
|
-
description:
|
|
267
|
+
description:
|
|
268
|
+
"Set the schema's highlighted (main) field — the field whose value names each record in the UI (activity-panel title and detail-view record list).",
|
|
268
269
|
command:
|
|
269
270
|
'zinkee --json schemas update contacts --highlighted-field contact-name',
|
|
270
271
|
raw: `{
|