nucleus-core-ts 0.9.922 → 0.9.924
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/.build-ok +1 -1
- package/dist/fe/components/IntegrationsPage/components/RunPasswordField.js +2 -2
- package/dist/fe/components/IntegrationsPage/components/RunPlanIssues.js +6 -2
- package/dist/fe/components/IntegrationsPage/text/index.d.ts +15 -0
- package/dist/fe/components/IntegrationsPage/text/index.js +5 -0
- package/dist/fe/components/IntegrationsPage/types/results.d.ts +3 -0
- package/dist/index.js +1 -1
- package/dist/src/Services/Integrations/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/.build-ok
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.924
|
|
@@ -32,8 +32,8 @@ export function RunPasswordField({ column, value, disabled, onChange }) {
|
|
|
32
32
|
const [shown, setShown] = useState(false);
|
|
33
33
|
const short = value.length > 0 && value.length < MIN_SHARED_PASSWORD;
|
|
34
34
|
return /*#__PURE__*/ _jsx(Field, {
|
|
35
|
-
error: short ?
|
|
36
|
-
hint:
|
|
35
|
+
error: short ? labels.runs.openingPasswordTooShort(MIN_SHARED_PASSWORD) : null,
|
|
36
|
+
hint: labels.runs.openingPasswordHint(column),
|
|
37
37
|
htmlFor: `${uid}-shared-password`,
|
|
38
38
|
label: useLabels().errors.openingPassword,
|
|
39
39
|
children: /*#__PURE__*/ _jsxs("div", {
|
|
@@ -35,11 +35,15 @@ export function RunPlanIssues({ issues }) {
|
|
|
35
35
|
children: [
|
|
36
36
|
/*#__PURE__*/ _jsx("span", {
|
|
37
37
|
className: theme.card.title,
|
|
38
|
-
children:
|
|
38
|
+
children: labels.runs.issueHeading(issue.sourceIndex, labels.runs.issueKind(issue.kind) ?? issue.kind)
|
|
39
39
|
}),
|
|
40
40
|
/*#__PURE__*/ _jsx("span", {
|
|
41
41
|
className: theme.field.hint,
|
|
42
|
-
children: issue.
|
|
42
|
+
children: labels.runs.issueReason(issue.kind, {
|
|
43
|
+
field: issue.field,
|
|
44
|
+
value: issue.value,
|
|
45
|
+
dedupKey: issue.dedupKey
|
|
46
|
+
}) ?? issue.message
|
|
43
47
|
}),
|
|
44
48
|
issue.dedupKey ? /*#__PURE__*/ _jsx("span", {
|
|
45
49
|
className: theme.field.hint,
|
|
@@ -73,6 +73,8 @@ export type IntegrationsLabels = {
|
|
|
73
73
|
deleteFailed: string;
|
|
74
74
|
};
|
|
75
75
|
runs: {
|
|
76
|
+
openingPasswordHint: (column: string) => string;
|
|
77
|
+
openingPasswordTooShort: (min: number) => string;
|
|
76
78
|
/** The one-line summary above the buttons. */
|
|
77
79
|
summary: (target: string, writeMode: string, missing: string) => string;
|
|
78
80
|
preview: string;
|
|
@@ -94,6 +96,19 @@ export type IntegrationsLabels = {
|
|
|
94
96
|
alreadyThere: string;
|
|
95
97
|
fetched: string;
|
|
96
98
|
unusable: (n: number) => string;
|
|
99
|
+
issueHeading: (sourceIndex: number, kind: string) => string;
|
|
100
|
+
issueKind: (kind: string) => string | null;
|
|
101
|
+
/**
|
|
102
|
+
* The whole reason, composed here from the evidence rather than translated.
|
|
103
|
+
*
|
|
104
|
+
* Returns null for a code with no wording yet, and the caller then prints
|
|
105
|
+
* the server's own sentence — English, but never nothing.
|
|
106
|
+
*/
|
|
107
|
+
issueReason: (kind: string, evidence: {
|
|
108
|
+
field?: string;
|
|
109
|
+
value?: string;
|
|
110
|
+
dedupKey?: string | null;
|
|
111
|
+
}) => string | null;
|
|
97
112
|
kept: string;
|
|
98
113
|
skipped: string;
|
|
99
114
|
dedupKey: string;
|
|
@@ -67,6 +67,8 @@
|
|
|
67
67
|
deleteFailed: 'The connection was not deleted.'
|
|
68
68
|
},
|
|
69
69
|
runs: {
|
|
70
|
+
openingPasswordHint: (column)=>`Written into ${column} on the accounts this run creates. People who are already here keep their own password. It is not saved anywhere — type it again next time.`,
|
|
71
|
+
openingPasswordTooShort: (min)=>`At least ${min} characters.`,
|
|
70
72
|
summary: (target, writeMode, missing)=>`Writes into ${target} · ${writeMode} · missing rows: ${missing}`,
|
|
71
73
|
preview: 'Preview',
|
|
72
74
|
previewing: 'Previewing…',
|
|
@@ -87,6 +89,9 @@
|
|
|
87
89
|
alreadyThere: 'Already there',
|
|
88
90
|
fetched: 'Fetched',
|
|
89
91
|
unusable: (n)=>`${n} record(s) the plan could not use`,
|
|
92
|
+
issueHeading: (sourceIndex, kind)=>`Source record #${sourceIndex} — ${kind}`,
|
|
93
|
+
issueKind: ()=>null,
|
|
94
|
+
issueReason: ()=>null,
|
|
90
95
|
kept: 'Kept',
|
|
91
96
|
skipped: 'Skipped',
|
|
92
97
|
dedupKey: 'Dedup key'
|
|
@@ -7,6 +7,9 @@ export type RunIssueValue = {
|
|
|
7
7
|
sourceIndex: number;
|
|
8
8
|
kind: string;
|
|
9
9
|
message: string;
|
|
10
|
+
/** The column and value the reason is about, so the panel can word it itself. */
|
|
11
|
+
field?: string;
|
|
12
|
+
value?: string;
|
|
10
13
|
dedupKey?: string | null;
|
|
11
14
|
/**
|
|
12
15
|
* What the skipped record mapped to, when the planner could attach it.
|