@iblai/iblai-js 2.69.1 → 2.70.0
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/web-containers/source/_virtual/index2.js +2 -2
- package/dist/web-containers/source/_virtual/index3.js +2 -2
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.js +133 -24
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.js.map +1 -1
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/privacy-tab.js +114 -46
- package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/privacy-tab.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/privacy-tab/labels.js +133 -24
- package/dist/web-containers/source/edit-mentor-modal/tabs/privacy-tab/labels.js.map +1 -1
- package/dist/web-containers/source/edit-mentor-modal/tabs/privacy-tab.js +114 -46
- package/dist/web-containers/source/edit-mentor-modal/tabs/privacy-tab.js.map +1 -1
- package/dist/web-containers/source/en.json.js +73 -17
- package/dist/web-containers/source/en.json.js.map +1 -1
- package/dist/web-containers/source/es.json.js +72 -16
- package/dist/web-containers/source/es.json.js.map +1 -1
- package/dist/web-containers/source/fr.json.js +72 -16
- package/dist/web-containers/source/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/en.json.js +73 -17
- package/dist/web-containers/source/i18n/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/es.json.js +72 -16
- package/dist/web-containers/source/i18n/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/fr.json.js +72 -16
- package/dist/web-containers/source/i18n/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/i18n/messages/zh.json.js +72 -16
- package/dist/web-containers/source/i18n/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/index2.js +2 -2
- package/dist/web-containers/source/index3.js +2 -2
- package/dist/web-containers/source/messages/en.json.js +73 -17
- package/dist/web-containers/source/messages/en.json.js.map +1 -1
- package/dist/web-containers/source/messages/es.json.js +72 -16
- package/dist/web-containers/source/messages/es.json.js.map +1 -1
- package/dist/web-containers/source/messages/fr.json.js +72 -16
- package/dist/web-containers/source/messages/fr.json.js.map +1 -1
- package/dist/web-containers/source/messages/zh.json.js +72 -16
- package/dist/web-containers/source/messages/zh.json.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/privacy-tab/labels.js +133 -24
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/privacy-tab/labels.js.map +1 -1
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/privacy-tab.js +114 -46
- package/dist/web-containers/source/modals/edit-mentor-modal/tabs/privacy-tab.js.map +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/css-mediaquery@0.1.2/node_modules/css-mediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/matchmediaquery@0.4.2/node_modules/matchmediaquery/index.js +1 -1
- package/dist/web-containers/source/node_modules/.pnpm/prop-types@15.8.1/node_modules/prop-types/index.js +1 -1
- package/dist/web-containers/source/privacy-tab/labels.js +133 -24
- package/dist/web-containers/source/privacy-tab/labels.js.map +1 -1
- package/dist/web-containers/source/privacy-tab.js +114 -46
- package/dist/web-containers/source/privacy-tab.js.map +1 -1
- package/dist/web-containers/source/tabs/privacy-tab/labels.js +133 -24
- package/dist/web-containers/source/tabs/privacy-tab/labels.js.map +1 -1
- package/dist/web-containers/source/tabs/privacy-tab.js +114 -46
- package/dist/web-containers/source/tabs/privacy-tab.js.map +1 -1
- package/dist/web-containers/source/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/web-containers/tsconfig.build.tsbuildinfo +1 -1
- package/dist/web-containers/source/zh.json.js +72 -16
- package/dist/web-containers/source/zh.json.js.map +1 -1
- package/package.json +3 -3
package/dist/web-containers/source/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.js
CHANGED
|
@@ -5,16 +5,36 @@ const AGENT_PRIVACY_TAB_LABELS = {
|
|
|
5
5
|
title: 'Privacy',
|
|
6
6
|
description: 'Control what personal information the agent sees and how Incognito works for its conversations.',
|
|
7
7
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
categories: {
|
|
9
|
+
pii: {
|
|
10
|
+
title: 'PII Filtering',
|
|
11
|
+
expand: 'PII Filtering settings',
|
|
12
|
+
offHint: 'Turn it on to find and hide PII in messages.',
|
|
13
|
+
summary: {
|
|
14
|
+
off: 'Off.',
|
|
15
|
+
all: (action) => `On. ${action}, default kinds.`,
|
|
16
|
+
selected: (action, count) => `On. ${action}, ${count} ${count === 1 ? 'kind' : 'kinds'} selected.`,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
phi: {
|
|
20
|
+
title: 'PHI Filtering',
|
|
21
|
+
expand: 'PHI Filtering settings',
|
|
22
|
+
offHint: 'Turn it on to find and hide PHI in messages.',
|
|
23
|
+
summary: {
|
|
24
|
+
off: 'Off.',
|
|
25
|
+
all: (action) => `On. ${action}, all 12 kinds.`,
|
|
26
|
+
selected: (action, count) => `On. ${action}, ${count} ${count === 1 ? 'kind' : 'kinds'} selected.`,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
switchState: { on: 'On', off: 'Off' },
|
|
31
|
+
groups: {
|
|
32
|
+
action: 'Action',
|
|
33
|
+
entityTypes: 'Entity Types',
|
|
34
|
+
aiResponses: 'AI Responses',
|
|
35
|
+
privacyLog: 'Privacy Log',
|
|
12
36
|
},
|
|
13
37
|
fields: {
|
|
14
|
-
enableRouter: {
|
|
15
|
-
label: 'Enable Privacy Router',
|
|
16
|
-
tooltip: 'Filter PII from messages before they reach the AI.',
|
|
17
|
-
},
|
|
18
38
|
action: {
|
|
19
39
|
label: 'When PII is detected',
|
|
20
40
|
tooltip: 'How PII should be handled when detected in a user message.',
|
|
@@ -32,11 +52,10 @@ const AGENT_PRIVACY_TAB_LABELS = {
|
|
|
32
52
|
},
|
|
33
53
|
},
|
|
34
54
|
blockMessage: {
|
|
35
|
-
label: 'Block Message',
|
|
55
|
+
label: 'PII Block Message',
|
|
36
56
|
placeholder: 'Your message contains sensitive personal information and cannot be processed. Please remove any personal data and try again.',
|
|
37
57
|
},
|
|
38
58
|
entities: {
|
|
39
|
-
label: 'Entity Types',
|
|
40
59
|
tooltip: 'Which types of PII to detect. Leave empty to use defaults.',
|
|
41
60
|
emptyHint: 'Using defaults.',
|
|
42
61
|
labels: {
|
|
@@ -56,12 +75,49 @@ const AGENT_PRIVACY_TAB_LABELS = {
|
|
|
56
75
|
},
|
|
57
76
|
},
|
|
58
77
|
outputFilter: {
|
|
59
|
-
label: 'Also
|
|
60
|
-
|
|
78
|
+
label: 'Also Filter AI Responses',
|
|
79
|
+
description: "Check the agent's replies for PII and PHI too. May slightly slow down replies.",
|
|
61
80
|
},
|
|
62
81
|
},
|
|
82
|
+
phiFields: {
|
|
83
|
+
action: {
|
|
84
|
+
label: 'When PHI is detected',
|
|
85
|
+
tooltip: 'What to do when a user message contains PHI.',
|
|
86
|
+
descriptions: {
|
|
87
|
+
redact: 'PHI is replaced with its type — e.g. "I take [MEDICATION]".',
|
|
88
|
+
mask: 'PHI is hidden behind asterisks — e.g. "I take *********".',
|
|
89
|
+
block: 'The message is rejected and your block message is shown to the user.',
|
|
90
|
+
allow: 'PHI is left untouched — the message passes through unchanged, and the Privacy Log still records what was found.',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
blockMessage: {
|
|
94
|
+
label: 'PHI Block Message',
|
|
95
|
+
placeholder: 'Your message contains sensitive health information and cannot be processed. Please remove any health details and try again.',
|
|
96
|
+
},
|
|
97
|
+
entities: {
|
|
98
|
+
tooltip: 'Which kinds of PHI to look for. Leave empty to look for all 12.',
|
|
99
|
+
emptyHint: 'Looking for all 12 kinds.',
|
|
100
|
+
labels: {
|
|
101
|
+
DISEASE_DISORDER: 'Condition',
|
|
102
|
+
MEDICATION: 'Medication',
|
|
103
|
+
THERAPEUTIC_PROCEDURE: 'Treatment',
|
|
104
|
+
BIOLOGICAL_STRUCTURE: 'Body Part',
|
|
105
|
+
CLINICAL_EVENT: 'Medical Event',
|
|
106
|
+
BIOLOGICAL_ATTRIBUTE: 'Health Measurement',
|
|
107
|
+
HISTORY: 'Medical History',
|
|
108
|
+
FAMILY_HISTORY: 'Family History',
|
|
109
|
+
MEDICAL_RECORD_NUMBER: 'Medical Record Number',
|
|
110
|
+
HEALTH_PLAN_BENEFICIARY_NUMBER: 'Health Plan ID',
|
|
111
|
+
ACCOUNT_NUMBER: 'Account Number',
|
|
112
|
+
DEVICE_SERIAL_NUMBER: 'Device Serial Number',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
privacyLog: {
|
|
117
|
+
description: "See when PII or PHI showed up in this agent's conversations.",
|
|
118
|
+
},
|
|
63
119
|
subTabs: {
|
|
64
|
-
|
|
120
|
+
filtering: 'Privacy Filtering',
|
|
65
121
|
incognito: 'Incognito',
|
|
66
122
|
},
|
|
67
123
|
incognito: {
|
|
@@ -94,16 +150,21 @@ function buildPrivacyTabLabels(t) {
|
|
|
94
150
|
title: t('privacyTabLabels.header.title'),
|
|
95
151
|
description: t('privacyTabLabels.header.description'),
|
|
96
152
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
153
|
+
categories: {
|
|
154
|
+
pii: buildCategoryLabels(t, 'pii'),
|
|
155
|
+
phi: buildCategoryLabels(t, 'phi'),
|
|
156
|
+
},
|
|
157
|
+
switchState: {
|
|
158
|
+
on: t('privacyTabLabels.switchState.on'),
|
|
159
|
+
off: t('privacyTabLabels.switchState.off'),
|
|
160
|
+
},
|
|
161
|
+
groups: {
|
|
162
|
+
action: t('privacyTabLabels.groups.action'),
|
|
163
|
+
entityTypes: t('privacyTabLabels.groups.entityTypes'),
|
|
164
|
+
aiResponses: t('privacyTabLabels.groups.aiResponses'),
|
|
165
|
+
privacyLog: t('privacyTabLabels.groups.privacyLog'),
|
|
101
166
|
},
|
|
102
167
|
fields: {
|
|
103
|
-
enableRouter: {
|
|
104
|
-
label: t('privacyTabLabels.fields.enableRouter.label'),
|
|
105
|
-
tooltip: t('privacyTabLabels.fields.enableRouter.tooltip'),
|
|
106
|
-
},
|
|
107
168
|
action: {
|
|
108
169
|
label: t('privacyTabLabels.fields.action.label'),
|
|
109
170
|
tooltip: t('privacyTabLabels.fields.action.tooltip'),
|
|
@@ -125,7 +186,6 @@ function buildPrivacyTabLabels(t) {
|
|
|
125
186
|
placeholder: t('privacyTabLabels.fields.blockMessage.placeholder'),
|
|
126
187
|
},
|
|
127
188
|
entities: {
|
|
128
|
-
label: t('privacyTabLabels.fields.entities.label'),
|
|
129
189
|
tooltip: t('privacyTabLabels.fields.entities.tooltip'),
|
|
130
190
|
emptyHint: t('privacyTabLabels.fields.entities.emptyHint'),
|
|
131
191
|
labels: {
|
|
@@ -146,11 +206,48 @@ function buildPrivacyTabLabels(t) {
|
|
|
146
206
|
},
|
|
147
207
|
outputFilter: {
|
|
148
208
|
label: t('privacyTabLabels.fields.outputFilter.label'),
|
|
149
|
-
|
|
209
|
+
description: t('privacyTabLabels.fields.outputFilter.description'),
|
|
150
210
|
},
|
|
151
211
|
},
|
|
212
|
+
phiFields: {
|
|
213
|
+
action: {
|
|
214
|
+
label: t('privacyTabLabels.phiFields.action.label'),
|
|
215
|
+
tooltip: t('privacyTabLabels.phiFields.action.tooltip'),
|
|
216
|
+
descriptions: {
|
|
217
|
+
redact: t('privacyTabLabels.phiFields.action.descriptions.redact'),
|
|
218
|
+
mask: t('privacyTabLabels.phiFields.action.descriptions.mask'),
|
|
219
|
+
block: t('privacyTabLabels.phiFields.action.descriptions.block'),
|
|
220
|
+
allow: t('privacyTabLabels.phiFields.action.descriptions.allow'),
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
blockMessage: {
|
|
224
|
+
label: t('privacyTabLabels.phiFields.blockMessage.label'),
|
|
225
|
+
placeholder: t('privacyTabLabels.phiFields.blockMessage.placeholder'),
|
|
226
|
+
},
|
|
227
|
+
entities: {
|
|
228
|
+
tooltip: t('privacyTabLabels.phiFields.entities.tooltip'),
|
|
229
|
+
emptyHint: t('privacyTabLabels.phiFields.entities.emptyHint'),
|
|
230
|
+
labels: {
|
|
231
|
+
DISEASE_DISORDER: t('privacyTabLabels.phiFields.entities.labels.DISEASE_DISORDER'),
|
|
232
|
+
MEDICATION: t('privacyTabLabels.phiFields.entities.labels.MEDICATION'),
|
|
233
|
+
THERAPEUTIC_PROCEDURE: t('privacyTabLabels.phiFields.entities.labels.THERAPEUTIC_PROCEDURE'),
|
|
234
|
+
BIOLOGICAL_STRUCTURE: t('privacyTabLabels.phiFields.entities.labels.BIOLOGICAL_STRUCTURE'),
|
|
235
|
+
CLINICAL_EVENT: t('privacyTabLabels.phiFields.entities.labels.CLINICAL_EVENT'),
|
|
236
|
+
BIOLOGICAL_ATTRIBUTE: t('privacyTabLabels.phiFields.entities.labels.BIOLOGICAL_ATTRIBUTE'),
|
|
237
|
+
HISTORY: t('privacyTabLabels.phiFields.entities.labels.HISTORY'),
|
|
238
|
+
FAMILY_HISTORY: t('privacyTabLabels.phiFields.entities.labels.FAMILY_HISTORY'),
|
|
239
|
+
MEDICAL_RECORD_NUMBER: t('privacyTabLabels.phiFields.entities.labels.MEDICAL_RECORD_NUMBER'),
|
|
240
|
+
HEALTH_PLAN_BENEFICIARY_NUMBER: t('privacyTabLabels.phiFields.entities.labels.HEALTH_PLAN_BENEFICIARY_NUMBER'),
|
|
241
|
+
ACCOUNT_NUMBER: t('privacyTabLabels.phiFields.entities.labels.ACCOUNT_NUMBER'),
|
|
242
|
+
DEVICE_SERIAL_NUMBER: t('privacyTabLabels.phiFields.entities.labels.DEVICE_SERIAL_NUMBER'),
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
privacyLog: {
|
|
247
|
+
description: t('privacyTabLabels.privacyLog.description'),
|
|
248
|
+
},
|
|
152
249
|
subTabs: {
|
|
153
|
-
|
|
250
|
+
filtering: t('privacyTabLabels.subTabs.filtering'),
|
|
154
251
|
incognito: t('privacyTabLabels.subTabs.incognito'),
|
|
155
252
|
},
|
|
156
253
|
incognito: {
|
|
@@ -178,6 +275,18 @@ function buildPrivacyTabLabels(t) {
|
|
|
178
275
|
},
|
|
179
276
|
};
|
|
180
277
|
}
|
|
278
|
+
function buildCategoryLabels(t, kind) {
|
|
279
|
+
return {
|
|
280
|
+
title: t(`privacyTabLabels.categories.${kind}.title`),
|
|
281
|
+
expand: t(`privacyTabLabels.categories.${kind}.expand`),
|
|
282
|
+
offHint: t(`privacyTabLabels.categories.${kind}.offHint`),
|
|
283
|
+
summary: {
|
|
284
|
+
off: t(`privacyTabLabels.categories.${kind}.summary.off`),
|
|
285
|
+
all: (action) => t(`privacyTabLabels.categories.${kind}.summary.all`, { action }),
|
|
286
|
+
selected: (action, count) => t(`privacyTabLabels.categories.${kind}.summary.selected`, { action, count }),
|
|
287
|
+
},
|
|
288
|
+
};
|
|
289
|
+
}
|
|
181
290
|
function resolvePrivacyTabLabels(override, t) {
|
|
182
291
|
const base = t ? buildPrivacyTabLabels(t) : AGENT_PRIVACY_TAB_LABELS;
|
|
183
292
|
if (!override)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.ts"],"sourcesContent":[null],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"labels.js","sources":["../../../../../../../../../../src/components/modals/edit-mentor-modal/tabs/privacy-tab/labels.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAgHO,MAAM,wBAAwB,GAAqB;AACxD,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,WAAW,EACT,iGAAiG;AACpG,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,GAAG,EAAE;AACH,YAAA,KAAK,EAAE,eAAe;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
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { useT } from '../../../../i18n/context.js';
|
|
4
4
|
import '../../../../packages/i18n/dist/index.esm.js';
|
|
5
|
-
import { useGetMentorSettingsQuery, useEditMentorJsonMutation,
|
|
5
|
+
import { useGetMentorSettingsQuery, useEditMentorJsonMutation, DEFAULT_PRIVACY_ACTION, DEFAULT_PHI_ACTION, PRIVACY_ENTITY_TYPES, PHI_ENTITY_TYPES, PRIVACY_ACTIONS, mentorApiSlice } from '@iblai/data-layer';
|
|
6
6
|
import { useGetTenantChatPrivacyConfigQuery, chatPrivacyApiSlice } from '../../../../lib/chat-privacy-data-layer.js';
|
|
7
7
|
import { WithFormPermissions, WithPermissions } from '@iblai/web-utils';
|
|
8
8
|
import { useDispatch } from 'react-redux';
|
|
@@ -16,20 +16,20 @@ import { PrivacyAuditLogModal } from '../../../privacy-audit-log/privacy-audit-l
|
|
|
16
16
|
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../../../ui/tooltip.js';
|
|
17
17
|
import { cn } from '../../../../lib/utils.js';
|
|
18
18
|
import { CustomSwitch } from '../custom-switch.js';
|
|
19
|
-
import { CapabilityGate } from '../capability-gate.js';
|
|
20
19
|
import { useAgentSettingsOptional } from '../agent-settings-context.js';
|
|
21
20
|
import { resolvePrivacyTabLabels } from './privacy-tab/labels.js';
|
|
22
21
|
export { AGENT_PRIVACY_TAB_LABELS } from './privacy-tab/labels.js';
|
|
23
22
|
import { incognitoPolicyFrom, INCOGNITO_POLICIES, incognitoFlags } from './privacy-tab/incognito-policy.js';
|
|
24
23
|
import ScanEye from '../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/scan-eye.js';
|
|
25
|
-
import
|
|
24
|
+
import ChevronDown from '../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/chevron-down.js';
|
|
26
25
|
import History from '../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/history.js';
|
|
27
26
|
import EyeOff from '../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/eye-off.js';
|
|
28
27
|
import Users from '../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/users.js';
|
|
29
28
|
import Check from '../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/check.js';
|
|
29
|
+
import Info from '../../../../node_modules/.pnpm/lucide-react@0.528.0_react@19.1.0/node_modules/lucide-react/dist/esm/icons/info.js';
|
|
30
30
|
|
|
31
31
|
function AgentPrivacyTab({ labels: labelsOverride, tenantKey: tenantKeyProp, mentorId: mentorIdProp, username: usernameProp, enableRBAC: enableRBACProp, executeGatedAction: executeGatedActionProp, rbacPermissions: rbacPermissionsProp, }) {
|
|
32
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
32
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
33
33
|
const t = useT();
|
|
34
34
|
const ctx = useAgentSettingsOptional();
|
|
35
35
|
const tenantKey = (_a = tenantKeyProp !== null && tenantKeyProp !== void 0 ? tenantKeyProp : ctx === null || ctx === void 0 ? void 0 : ctx.tenantKey) !== null && _a !== void 0 ? _a : '';
|
|
@@ -45,7 +45,8 @@ function AgentPrivacyTab({ labels: labelsOverride, tenantKey: tenantKeyProp, men
|
|
|
45
45
|
// control chat privacy; without that gate there is no Incognito to govern.
|
|
46
46
|
const { data: tenantChatPrivacyConfig } = useGetTenantChatPrivacyConfigQuery({ org: tenantKey, userId: username }, { skip: !tenantKey || !username });
|
|
47
47
|
const tenantAllowsIncognito = !!(tenantChatPrivacyConfig === null || tenantChatPrivacyConfig === void 0 ? void 0 : tenantChatPrivacyConfig.allow_user_chat_privacy_control);
|
|
48
|
-
const [subTab, setSubTab] = React__default.useState('
|
|
48
|
+
const [subTab, setSubTab] = React__default.useState('filtering');
|
|
49
|
+
const [chosenOpenKind, setChosenOpenKind] = React__default.useState();
|
|
49
50
|
const { data: rawMentorSettings, isLoading: isMentorSettingsLoading, refetch: refetchMentorSettings, } = useGetMentorSettingsQuery({
|
|
50
51
|
mentor: mentorId,
|
|
51
52
|
org: tenantKey,
|
|
@@ -59,13 +60,13 @@ function AgentPrivacyTab({ labels: labelsOverride, tenantKey: tenantKeyProp, men
|
|
|
59
60
|
// is gated yet. Writes stay per control, through `WithFormPermissions`.
|
|
60
61
|
const fieldPermissions = (_f = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.permissions) === null || _f === void 0 ? void 0 : _f.field;
|
|
61
62
|
const permissionsKnown = mentorSettings !== undefined;
|
|
62
|
-
const
|
|
63
|
+
const showFiltering = !permissionsKnown ||
|
|
63
64
|
PII_FIELDS.some((field) => canReadField(fieldPermissions, field, enableRBAC));
|
|
64
65
|
const showIncognito = tenantAllowsIncognito &&
|
|
65
66
|
(!permissionsKnown ||
|
|
66
67
|
INCOGNITO_FIELDS.every((field) => canReadField(fieldPermissions, field, enableRBAC)));
|
|
67
68
|
const visibleSubTabs = [
|
|
68
|
-
...(
|
|
69
|
+
...(showFiltering ? ['filtering'] : []),
|
|
69
70
|
...(showIncognito ? ['incognito'] : []),
|
|
70
71
|
];
|
|
71
72
|
const activeSubTab = visibleSubTabs.includes(subTab) ? subTab : visibleSubTabs[0];
|
|
@@ -74,16 +75,19 @@ function AgentPrivacyTab({ labels: labelsOverride, tenantKey: tenantKeyProp, men
|
|
|
74
75
|
// round-trip cleanly for array fields like `privacy_entities`).
|
|
75
76
|
const [editMentorJson, { isLoading: isEditMentorLoading }] = useEditMentorJsonMutation();
|
|
76
77
|
const isDisabled = isMentorSettingsLoading || isEditMentorLoading;
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
78
|
+
const routerOn = !!(mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.enable_privacy_router);
|
|
79
|
+
const filterPii = (_g = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.filter_pii) !== null && _g !== void 0 ? _g : true;
|
|
80
|
+
const filterPhi = (_h = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.filter_phi) !== null && _h !== void 0 ? _h : false;
|
|
81
|
+
const piiOn = routerOn && filterPii;
|
|
82
|
+
const phiOn = routerOn && filterPhi;
|
|
83
|
+
const piiAction = (_j = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.privacy_action) !== null && _j !== void 0 ? _j : DEFAULT_PRIVACY_ACTION;
|
|
84
|
+
const phiAction = (_k = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.phi_action) !== null && _k !== void 0 ? _k : DEFAULT_PHI_ACTION;
|
|
85
|
+
// Until the person opens or switches a card, the open card follows the
|
|
86
|
+
// settings, so the first kind that is on opens once they load.
|
|
87
|
+
const openKind = chosenOpenKind !== undefined ? chosenOpenKind : piiOn ? 'pii' : phiOn ? 'phi' : null;
|
|
81
88
|
const outputFilter = !!(mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.enable_privacy_output_filter);
|
|
82
89
|
const incognitoPolicy = incognitoPolicyFrom(mentorSettings);
|
|
83
|
-
const
|
|
84
|
-
React__default.useEffect(() => {
|
|
85
|
-
setLocalResponse(responseText);
|
|
86
|
-
}, [responseText]);
|
|
90
|
+
const fieldPermissionsProp = (_l = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.permissions) === null || _l === void 0 ? void 0 : _l.field;
|
|
87
91
|
async function updateFields(requestBody, afterSave) {
|
|
88
92
|
const run = async () => {
|
|
89
93
|
await editMentorJson({
|
|
@@ -115,6 +119,34 @@ function AgentPrivacyTab({ labels: labelsOverride, tenantKey: tenantKeyProp, men
|
|
|
115
119
|
function updateField(field, value) {
|
|
116
120
|
return updateFields({ [field]: value });
|
|
117
121
|
}
|
|
122
|
+
function toggleKind(kind, checked) {
|
|
123
|
+
setChosenOpenKind(checked ? kind : openKind);
|
|
124
|
+
void saveKind(kind, checked);
|
|
125
|
+
}
|
|
126
|
+
function toggleOpen(kind) {
|
|
127
|
+
setChosenOpenKind(openKind === kind ? null : kind);
|
|
128
|
+
}
|
|
129
|
+
// Each kind's switch is the whole decision, so it may also move the router.
|
|
130
|
+
// Turning a kind on while the router is off also clears the other kind's
|
|
131
|
+
// filter: `filter_pii` defaults to true, so PII would otherwise come on with
|
|
132
|
+
// PHI. Turning the last kind off turns the router off and keeps its filter,
|
|
133
|
+
// so it comes back as it was.
|
|
134
|
+
function saveKind(kind, checked) {
|
|
135
|
+
const own = FILTER_FIELD[kind];
|
|
136
|
+
const other = FILTER_FIELD[kind === 'pii' ? 'phi' : 'pii'];
|
|
137
|
+
if (checked) {
|
|
138
|
+
const body = {};
|
|
139
|
+
if (!routerOn) {
|
|
140
|
+
body.enable_privacy_router = true;
|
|
141
|
+
body[other] = false;
|
|
142
|
+
}
|
|
143
|
+
if (!(kind === 'pii' ? filterPii : filterPhi))
|
|
144
|
+
body[own] = true;
|
|
145
|
+
return updateFields(body);
|
|
146
|
+
}
|
|
147
|
+
const otherOn = kind === 'pii' ? phiOn : piiOn;
|
|
148
|
+
return updateFields(otherOn ? { [own]: false } : { enable_privacy_router: false });
|
|
149
|
+
}
|
|
118
150
|
// Both flags travel in one PUT. The chat header reads the policy from two
|
|
119
151
|
// other caches — `chat-privacy-effective` (Always Incognito → the locked
|
|
120
152
|
// pill) and the mentor's public settings (Never Incognito → no toggle at
|
|
@@ -126,45 +158,37 @@ function AgentPrivacyTab({ labels: labelsOverride, tenantKey: tenantKeyProp, men
|
|
|
126
158
|
dispatch(mentorApiSlice.util.invalidateTags([{ type: 'mentorPublicSettings', id: mentorId }]));
|
|
127
159
|
});
|
|
128
160
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
void updateField('privacy_response', localResponse);
|
|
146
|
-
}
|
|
147
|
-
}, placeholder: labels.fields.blockMessage.placeholder, className: "min-h-[100px]", disabled: isDisabled || disabled, "aria-label": labels.fields.blockMessage.label })] })) })), jsx(WithFormPermissions, { name: "privacy_entities",
|
|
148
|
-
// @ts-ignore
|
|
149
|
-
permissions: (_m = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.permissions) === null || _m === void 0 ? void 0 : _m.field, enableRBAC: enableRBAC, children: ({ disabled }) => (jsxs("div", { className: "space-y-2", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx(Label, { className: "text-sm font-medium text-[#646464]", children: labels.fields.entities.label }), jsx(FieldTooltip, { text: labels.fields.entities.tooltip })] }), jsx("div", { className: "flex flex-wrap gap-2", children: PRIVACY_ENTITY_TYPES.map((entity) => {
|
|
150
|
-
var _a;
|
|
151
|
-
return (jsx(EntityChip, { entity: entity, label: (_a = labels.fields.entities.labels[entity]) !== null && _a !== void 0 ? _a : entity, selected: entities.includes(entity), disabled: isDisabled || disabled, onToggle: (checked) => toggleEntity(entity, checked) }, entity));
|
|
152
|
-
}) }), entities.length === 0 && (jsx("p", { className: "text-xs text-gray-500", children: labels.fields.entities.emptyHint }))] })) }), jsx(WithFormPermissions, { name: "enable_privacy_output_filter",
|
|
153
|
-
// @ts-ignore
|
|
154
|
-
permissions: (_o = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.permissions) === null || _o === void 0 ? void 0 : _o.field, enableRBAC: enableRBAC, children: ({ disabled }) => (jsxs("div", { className: "flex items-center justify-between", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("span", { className: "text-sm font-medium text-[#646464]", children: labels.fields.outputFilter.label }), jsx(FieldTooltip, { text: labels.fields.outputFilter.tooltip })] }), jsx(CustomSwitch, { checked: outputFilter, onCheckedChange: (checked) => void updateField('enable_privacy_output_filter', checked), disabled: isDisabled || disabled, "aria-label": outputFilter
|
|
155
|
-
? t('tabsPrivacyTab.outputFilterAriaLabelEnabled')
|
|
156
|
-
: t('tabsPrivacyTab.outputFilterAriaLabelDisabled') })] })) })] }) }) })), showIncognito && (jsx(TabsContent, { value: "incognito", forceMount: true, className: "m-0 data-[state=inactive]:hidden", children: jsxs("div", { className: "space-y-4", "data-testid": "privacy-incognito-section", children: [jsx("p", { className: "text-xs leading-relaxed text-gray-600", children: labels.incognito.description }), jsx(WithFormPermissions, { name: ['disable_chathistory', 'disable_privacy_mode'],
|
|
157
|
-
// @ts-ignore
|
|
158
|
-
permissions: (_p = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.permissions) === null || _p === void 0 ? void 0 : _p.field, enableRBAC: enableRBAC, children: ({ disabled }) => (jsx("div", { className: "space-y-3", "aria-label": labels.incognito.groupAriaLabel, children: INCOGNITO_POLICIES.map((policy) => (jsx(IncognitoOptionCard, { policy: policy, title: labels.incognito.options[policy].title, description: labels.incognito.options[policy].description, selected: incognitoPolicy === policy, disabled: isDisabled || disabled, onSelect: () => void updateIncognitoPolicy(policy) }, policy))) })) })] }) }))] })) }), isPrivacyLogOpen && (jsx(PrivacyAuditLogModal, { isOpen: isPrivacyLogOpen, onClose: () => setIsPrivacyLogOpen(false), tenantKey: tenantKey, username: username, mentorId: mentorId }))] }));
|
|
161
|
+
// A lone sub-tab gets no strip: its one tab would only repeat the page.
|
|
162
|
+
const filteringContent = (jsxs("div", { className: "space-y-6", "data-testid": "privacy-filtering-section", children: [jsxs("div", { className: "space-y-4", children: [jsx(FilterKindCard, { kind: "pii", labels: labels.categories.pii, switchState: labels.switchState, on: piiOn, open: openKind === 'pii', summary: summarize(labels.categories.pii, piiOn, piiAction, mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.privacy_entities, labels.fields.action.options), disabled: isDisabled, permissions: fieldPermissionsProp, enableRBAC: enableRBAC, onToggle: (checked) => toggleKind('pii', checked), onToggleOpen: () => toggleOpen('pii'), children: jsx(PrivacyCategoryControls, { category: "pii", fields: {
|
|
163
|
+
action: 'privacy_action',
|
|
164
|
+
entities: 'privacy_entities',
|
|
165
|
+
response: 'privacy_response',
|
|
166
|
+
}, action: piiAction, entities: (_m = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.privacy_entities) !== null && _m !== void 0 ? _m : [], responseText: (_o = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.privacy_response) !== null && _o !== void 0 ? _o : '', entityTypes: PRIVACY_ENTITY_TYPES, labels: labels.fields, groupLabels: labels.groups, actionOptions: labels.fields.action.options, disabled: isDisabled, permissions: fieldPermissionsProp, enableRBAC: enableRBAC, onUpdate: updateField }) }), jsx(FilterKindCard, { kind: "phi", labels: labels.categories.phi, switchState: labels.switchState, on: phiOn, open: openKind === 'phi', summary: summarize(labels.categories.phi, phiOn, phiAction, mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.phi_entities, labels.fields.action.options), disabled: isDisabled, permissions: fieldPermissionsProp, enableRBAC: enableRBAC, onToggle: (checked) => toggleKind('phi', checked), onToggleOpen: () => toggleOpen('phi'), children: jsx(PrivacyCategoryControls, { category: "phi", fields: {
|
|
167
|
+
action: 'phi_action',
|
|
168
|
+
entities: 'phi_entities',
|
|
169
|
+
response: 'phi_response',
|
|
170
|
+
}, action: phiAction, entities: (_p = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.phi_entities) !== null && _p !== void 0 ? _p : [], responseText: (_q = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.phi_response) !== null && _q !== void 0 ? _q : '', entityTypes: PHI_ENTITY_TYPES, labels: labels.phiFields, groupLabels: labels.groups, actionOptions: labels.fields.action.options, disabled: isDisabled, permissions: fieldPermissionsProp, enableRBAC: enableRBAC, onUpdate: updateField }) })] }), jsx(WithFormPermissions, { name: "enable_privacy_output_filter",
|
|
171
|
+
// @ts-ignore
|
|
172
|
+
permissions: fieldPermissionsProp, enableRBAC: enableRBAC, children: ({ disabled }) => (jsx(SettingsGroup, { title: labels.groups.aiResponses, children: jsxs("div", { className: "flex items-start justify-between gap-4", children: [jsxs("div", { className: "min-w-0 space-y-1", children: [jsx("span", { className: "text-sm font-medium text-[#646464]", children: labels.fields.outputFilter.label }), jsx("p", { className: "text-xs text-gray-500", children: labels.fields.outputFilter.description })] }), jsx(CustomSwitch, { checked: outputFilter, onCheckedChange: (checked) => void updateField('enable_privacy_output_filter', checked), disabled: isDisabled || disabled, "aria-label": labels.fields.outputFilter.label, title: outputFilter ? labels.switchState.on : labels.switchState.off, "data-testid": "privacy-output-filter-toggle", className: "mt-0.5 flex-shrink-0" })] }) })) }), jsx(WithPermissions, { rbacResource: `/mentors/${mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.mentor_id}/#view_privacy_flags`, rbacPermissions: rbacPermissions, children: ({ hasPermission }) => hasPermission && (jsx(SettingsGroup, { title: labels.groups.privacyLog, children: jsxs("div", { "data-testid": "privacy-log-row", className: "flex flex-wrap items-center justify-between gap-3", children: [jsx("p", { className: "text-xs text-gray-500", children: labels.privacyLog.description }), jsxs(Button, { type: "button", size: "sm", className: "bg-gradient-to-r from-[#2563EB] to-[#93C5FD] text-white hover:opacity-90", onClick: () => setIsPrivacyLogOpen(true), "data-testid": "view-privacy-log-button", children: [jsx(ScanEye, { className: "mr-2 h-4 w-4" }), t('privacyAuditLog.modal.open')] })] }) })) })] }));
|
|
173
|
+
const incognitoContent = (jsxs("div", { className: "space-y-4", "data-testid": "privacy-incognito-section", children: [jsx("p", { className: "text-xs leading-relaxed text-gray-600", children: labels.incognito.description }), jsx(WithFormPermissions, { name: ['disable_chathistory', 'disable_privacy_mode'],
|
|
174
|
+
// @ts-ignore
|
|
175
|
+
permissions: (_r = mentorSettings === null || mentorSettings === void 0 ? void 0 : mentorSettings.permissions) === null || _r === void 0 ? void 0 : _r.field, enableRBAC: enableRBAC, children: ({ disabled }) => (jsx("div", { className: "space-y-3", "aria-label": labels.incognito.groupAriaLabel, children: INCOGNITO_POLICIES.map((policy) => (jsx(IncognitoOptionCard, { policy: policy, title: labels.incognito.options[policy].title, description: labels.incognito.options[policy].description, selected: incognitoPolicy === policy, disabled: isDisabled || disabled, onSelect: () => void updateIncognitoPolicy(policy) }, policy))) })) })] }));
|
|
176
|
+
return (jsxs(Fragment, { children: [jsx("div", { className: "flex hidden h-[73px] flex-shrink-0 items-center border-b border-gray-200 bg-white p-4 lg:block", children: jsxs("div", { children: [jsx("h3", { className: "mb-1 text-base font-medium text-gray-900", children: labels.header.title }), jsx("p", { className: "text-xs text-gray-700", children: labels.header.description })] }) }), jsx("div", { "data-testid": "privacy-tab-body", className: "flex-1 space-y-6 p-3 lg:p-4", style: { overflowY: 'auto', overflowX: 'hidden' }, children: visibleSubTabs.length === 0 ? (jsx("p", { className: "text-sm text-gray-600", "data-testid": "privacy-no-access", children: labels.noAccess })) : visibleSubTabs.length === 1 ? (activeSubTab === 'filtering' ? (filteringContent) : (incognitoContent)) : (jsxs(Tabs, { value: activeSubTab, onValueChange: (value) => setSubTab(value), className: "space-y-4", children: [jsxs(TabsList, { className: "inline-flex h-auto rounded-md bg-gray-100 p-1", "aria-label": t('tabsPrivacyTab.subTabsAriaLabel'), children: [jsx(TabsTrigger, { value: "filtering", className: SUB_TAB_TRIGGER_CLASS, "data-testid": "privacy-sub-tab-filtering", children: labels.subTabs.filtering }), jsx(TabsTrigger, { value: "incognito", className: SUB_TAB_TRIGGER_CLASS, "data-testid": "privacy-sub-tab-incognito", children: labels.subTabs.incognito })] }), jsx(TabsContent, { value: "filtering", forceMount: true, className: "m-0 data-[state=inactive]:hidden", children: filteringContent }), jsx(TabsContent, { value: "incognito", forceMount: true, className: "m-0 data-[state=inactive]:hidden", children: incognitoContent })] })) }), isPrivacyLogOpen && (jsx(PrivacyAuditLogModal, { isOpen: isPrivacyLogOpen, onClose: () => setIsPrivacyLogOpen(false), tenantKey: tenantKey, username: username, mentorId: mentorId }))] }));
|
|
159
177
|
}
|
|
160
178
|
const PII_FIELDS = [
|
|
161
179
|
'enable_privacy_router',
|
|
180
|
+
'filter_pii',
|
|
162
181
|
'privacy_action',
|
|
163
182
|
'privacy_entities',
|
|
164
183
|
'privacy_response',
|
|
184
|
+
'filter_phi',
|
|
185
|
+
'phi_action',
|
|
186
|
+
'phi_entities',
|
|
187
|
+
'phi_response',
|
|
165
188
|
'enable_privacy_output_filter',
|
|
166
189
|
];
|
|
167
190
|
const INCOGNITO_FIELDS = ['disable_chathistory', 'disable_privacy_mode'];
|
|
191
|
+
const FILTER_FIELD = { pii: 'filter_pii', phi: 'filter_phi' };
|
|
168
192
|
/**
|
|
169
193
|
* Mirror of `WithFormPermissions`' read rule: a field the endpoint lists is
|
|
170
194
|
* governed by its own `read` flag; one it does not list is readable only when
|
|
@@ -190,6 +214,50 @@ function IncognitoOptionCard({ policy, title, description, selected, disabled, o
|
|
|
190
214
|
const Icon = INCOGNITO_OPTION_ICONS[policy];
|
|
191
215
|
return (jsxs("button", { type: "button", "aria-pressed": selected, "data-testid": `privacy-incognito-${policy}`, "data-state": selected ? 'selected' : 'unselected', onClick: onSelect, disabled: disabled, className: cn('flex w-full flex-col gap-1 rounded-lg border px-5 py-4 text-left transition-colors', 'focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2 focus-visible:outline-none', 'disabled:cursor-not-allowed disabled:opacity-60', selected ? 'border-blue-500 bg-blue-50/40' : 'border-gray-200 hover:bg-gray-50'), children: [jsxs("span", { className: "flex w-full items-center gap-3", children: [jsx(Icon, { className: cn('h-4 w-4 flex-shrink-0', selected ? 'text-blue-600' : 'text-gray-400'), "aria-hidden": "true" }), jsx("span", { className: cn('min-w-0 flex-1 text-sm font-medium', selected ? 'text-blue-900' : 'text-gray-900'), children: title }), jsx("span", { "aria-hidden": "true", className: cn('flex h-5 w-5 flex-shrink-0 items-center justify-center rounded-full border-2 transition-colors', selected ? 'border-blue-500 bg-blue-500' : 'border-gray-300'), children: selected && jsx(Check, { className: "h-3 w-3 text-white", strokeWidth: 3 }) })] }), jsx("p", { className: "pr-8 pl-7 text-xs text-gray-500", children: description })] }));
|
|
192
216
|
}
|
|
217
|
+
function SettingsGroup({ title, children }) {
|
|
218
|
+
return (jsxs("div", { className: "space-y-3", children: [jsx("h4", { className: "text-xs font-semibold tracking-wide text-gray-500 uppercase", children: title }), children] }));
|
|
219
|
+
}
|
|
220
|
+
function summarize(labels, on, action, entities, actionOptions) {
|
|
221
|
+
var _a;
|
|
222
|
+
if (!on)
|
|
223
|
+
return labels.summary.off;
|
|
224
|
+
const count = (_a = entities === null || entities === void 0 ? void 0 : entities.length) !== null && _a !== void 0 ? _a : 0;
|
|
225
|
+
return count
|
|
226
|
+
? labels.summary.selected(actionOptions[action], count)
|
|
227
|
+
: labels.summary.all(actionOptions[action]);
|
|
228
|
+
}
|
|
229
|
+
function FilterKindCard({ kind, labels, switchState, on, open, summary, disabled: busy, permissions, enableRBAC, onToggle, onToggleOpen, children, }) {
|
|
230
|
+
const bodyId = `privacy-${kind}-card-body`;
|
|
231
|
+
return (jsxs("div", { role: "group", "aria-label": labels.title, "data-testid": `privacy-${kind}-card`, className: "rounded-lg border border-gray-200 bg-white", children: [jsxs("div", { className: "flex items-center justify-between gap-4 px-4 py-3", children: [jsxs("button", { type: "button", "aria-expanded": open, "aria-controls": open ? bodyId : undefined, "aria-label": labels.expand, onClick: onToggleOpen, "data-testid": `privacy-${kind}-expand`, className: "flex min-w-0 flex-1 items-center gap-3 rounded-md text-left focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none", children: [jsx(ChevronDown, { "aria-hidden": "true", className: cn('h-4 w-4 flex-shrink-0 text-gray-500 transition-transform', open && 'rotate-180') }), jsxs("span", { className: "flex min-w-0 flex-col gap-1", children: [jsx("span", { className: "text-sm font-medium text-gray-900", children: labels.title }), jsx("span", { className: "text-xs text-gray-600", "data-testid": `privacy-${kind}-summary`, children: summary })] })] }), jsx(WithFormPermissions, { name: ['enable_privacy_router', FILTER_FIELD[kind]],
|
|
232
|
+
// @ts-ignore
|
|
233
|
+
permissions: permissions, enableRBAC: enableRBAC, children: ({ disabled }) => (jsx(CustomSwitch, { checked: on, onCheckedChange: onToggle, disabled: busy || disabled, "aria-label": labels.title, title: on ? switchState.on : switchState.off, "data-testid": `privacy-filter-${kind}-toggle`, className: "flex-shrink-0" })) })] }), open && (jsx("div", { id: bodyId, className: "space-y-6 border-t border-gray-200 p-4", children: on ? (children) : (jsx("p", { className: "text-xs text-gray-500", "data-testid": `privacy-${kind}-off-hint`, children: labels.offHint })) }))] }));
|
|
234
|
+
}
|
|
235
|
+
function PrivacyCategoryControls({ category, fields, action, entities, responseText, entityTypes, labels, groupLabels, actionOptions, disabled: busy, permissions, enableRBAC, onUpdate, }) {
|
|
236
|
+
const [localResponse, setLocalResponse] = React__default.useState(responseText);
|
|
237
|
+
React__default.useEffect(() => {
|
|
238
|
+
setLocalResponse(responseText);
|
|
239
|
+
}, [responseText]);
|
|
240
|
+
function toggleEntity(entity, checked) {
|
|
241
|
+
const next = checked
|
|
242
|
+
? Array.from(new Set([...entities, entity]))
|
|
243
|
+
: entities.filter((e) => e !== entity);
|
|
244
|
+
void onUpdate(fields.entities, next);
|
|
245
|
+
}
|
|
246
|
+
return (jsxs(Fragment, { children: [jsxs(SettingsGroup, { title: groupLabels.action, children: [jsx(WithFormPermissions, { name: fields.action,
|
|
247
|
+
// @ts-ignore
|
|
248
|
+
permissions: permissions, enableRBAC: enableRBAC, children: ({ disabled }) => (jsxs("div", { className: "space-y-2", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx(Label, { className: "text-sm font-medium text-[#646464]", children: labels.action.label }), jsx(FieldTooltip, { text: labels.action.tooltip })] }), jsxs(Select, { value: action, onValueChange: (v) => void onUpdate(fields.action, v), disabled: busy || disabled, children: [jsx(SelectTrigger, { "aria-label": labels.action.label, "data-testid": `privacy-${category}-action-select`, children: jsx(SelectValue, {}) }), jsx(SelectContent, { children: PRIVACY_ACTIONS.map((opt) => (jsx(SelectItem, { value: opt, children: actionOptions[opt] }, opt))) })] }), jsx("p", { className: "text-xs text-gray-500", children: labels.action.descriptions[action] })] })) }), action === 'block' && (jsx(WithFormPermissions, { name: fields.response,
|
|
249
|
+
// @ts-ignore
|
|
250
|
+
permissions: permissions, enableRBAC: enableRBAC, children: ({ disabled }) => (jsxs("div", { className: "space-y-2", children: [jsx(Label, { className: "text-sm font-medium text-[#646464]", children: labels.blockMessage.label }), jsx(Textarea, { value: localResponse, onChange: (e) => setLocalResponse(e.target.value), onBlur: () => {
|
|
251
|
+
if (localResponse !== responseText) {
|
|
252
|
+
void onUpdate(fields.response, localResponse);
|
|
253
|
+
}
|
|
254
|
+
}, placeholder: labels.blockMessage.placeholder, className: "min-h-[100px]", disabled: busy || disabled, "aria-label": labels.blockMessage.label, "data-testid": `privacy-${category}-block-message` })] })) }))] }), jsx(WithFormPermissions, { name: fields.entities,
|
|
255
|
+
// @ts-ignore
|
|
256
|
+
permissions: permissions, enableRBAC: enableRBAC, children: ({ disabled }) => (jsxs("div", { className: "space-y-3", children: [jsxs("div", { className: "flex items-center gap-2", children: [jsx("h4", { className: "text-xs font-semibold tracking-wide text-gray-500 uppercase", children: groupLabels.entityTypes }), jsx(FieldTooltip, { text: labels.entities.tooltip })] }), jsx("div", { className: "flex flex-wrap gap-2", "data-testid": `privacy-${category}-entities`, children: entityTypes.map((entity) => {
|
|
257
|
+
var _a;
|
|
258
|
+
return (jsx(EntityChip, { entity: entity, label: (_a = labels.entities.labels[entity]) !== null && _a !== void 0 ? _a : entity, selected: entities.includes(entity), disabled: busy || disabled, onToggle: (checked) => toggleEntity(entity, checked) }, entity));
|
|
259
|
+
}) }), entities.length === 0 && (jsx("p", { className: "text-xs text-gray-500", "data-testid": `privacy-${category}-entities-hint`, children: labels.entities.emptyHint }))] })) })] }));
|
|
260
|
+
}
|
|
193
261
|
function FieldTooltip({ text }) {
|
|
194
262
|
const t = useT();
|
|
195
263
|
return (jsx(TooltipProvider, { children: jsxs(Tooltip, { children: [jsx(TooltipTrigger, { type: "button", "aria-label": t('tabsPrivacyTab.moreInfo'), children: jsx(Info, { className: "h-4 w-4 text-gray-400" }) }), jsx(TooltipContent, { className: "ibl-tooltip-content", children: jsx("p", { children: text }) })] }) }));
|