Skip to content

Commit 360f551

Browse files
committed
refactor(policy-workbench): migrate poc summaries to context
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 11e48df commit 360f551

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/views/Settings/PolicyWorkbench/usePolicyWorkbench.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ const definitions = {
5555
auto_reminders: {
5656
key: 'auto_reminders',
5757
title: t('libresign', 'Automatic reminders'),
58+
context: t('libresign', 'Notification cadence'),
5859
description: t('libresign', 'Control whether reminder notifications are automatically sent for pending signers.'),
59-
menuHint: t('libresign', 'Simple on/off policy used to validate list usability at scale.'),
6060
editor: ConfettiRuleEditor,
6161
createEmptyValue: () => ({ enabled: true }),
6262
summarizeValue: (value) => value.enabled
@@ -69,8 +69,8 @@ const definitions = {
6969
request_notifications: {
7070
key: 'request_notifications',
7171
title: t('libresign', 'Request notifications'),
72+
context: t('libresign', 'Delivery channel'),
7273
description: t('libresign', 'Define whether users receive status notifications while a request is in progress.'),
73-
menuHint: t('libresign', 'Useful when notification behavior differs by group or user.'),
7474
editor: ConfettiRuleEditor,
7575
createEmptyValue: () => ({ enabled: true }),
7676
summarizeValue: (value) => value.enabled
@@ -83,8 +83,8 @@ const definitions = {
8383
document_download_after_sign: {
8484
key: 'document_download_after_sign',
8585
title: t('libresign', 'Download after signing'),
86+
context: t('libresign', 'Post-sign action'),
8687
description: t('libresign', 'Control whether the finalized document is automatically offered for download after signing.'),
87-
menuHint: t('libresign', 'Compact setting used to validate discoverability in larger policy catalogs.'),
8888
editor: ConfettiRuleEditor,
8989
createEmptyValue: () => ({ enabled: true }),
9090
summarizeValue: (value) => value.enabled
@@ -595,9 +595,9 @@ export function createPolicyWorkbenchState() {
595595
return {
596596
key: definition.key,
597597
title: definition.title,
598+
context: definition.context,
598599
description: definition.description,
599-
menuHint: definition.menuHint,
600-
defaultSummary: systemRule ? definition.summarizeValue(systemRule.value as never) : t('libresign', 'No global default rule'),
600+
defaultSummary: systemRule ? definition.summarizeValue(systemRule.value as never) : t('libresign', 'No global default rule'),
601601
groupCount: groupRuleCount,
602602
userCount: userRuleCount,
603603
}

0 commit comments

Comments
 (0)