@@ -56,8 +56,8 @@ interface PolicyEditorDraft {
5656interface PolicySettingDefinition {
5757 key : string
5858 title : string
59+ context ?: string
5960 description : string
60- menuHint : string
6161 editor : unknown
6262 createEmptyValue : ( ) => EffectivePolicyValue
6363 summarizeValue : ( value : EffectivePolicyValue ) => string
@@ -67,8 +67,8 @@ interface PolicySettingDefinition {
6767interface PolicySettingSummary {
6868 key : string
6969 title : string
70+ context ?: string
7071 description : string
71- menuHint : string
7272 defaultSummary : string
7373 groupCount : number
7474 userCount : number
@@ -132,8 +132,8 @@ const realDefinitions = {
132132 signature_flow : {
133133 key : 'signature_flow' ,
134134 title : t ( 'libresign' , 'Signing order' ) ,
135+ context : undefined ,
135136 description : t ( 'libresign' , 'Choose whether documents are signed in order or all at once.' ) ,
136- menuHint : t ( 'libresign' , 'Signing order options for everyone, groups, and users.' ) ,
137137 editor : SignatureFlowScalarRuleEditor ,
138138 createEmptyValue : ( ) => '' as unknown as EffectivePolicyValue ,
139139 summarizeValue : ( value : EffectivePolicyValue ) => {
@@ -156,9 +156,9 @@ const realDefinitions = {
156156 } ,
157157 docmdp : {
158158 key : 'docmdp' ,
159- title : t ( 'libresign' , 'PDF certification (DocMDP)' ) ,
159+ title : t ( 'libresign' , 'PDF certification' ) ,
160+ context : t ( 'libresign' , 'DocMDP' ) ,
160161 description : t ( 'libresign' , 'Control what changes are allowed after a document is signed.' ) ,
161- menuHint : t ( 'libresign' , 'PDF certification options for everyone, groups, and users.' ) ,
162162 editor : DocMdpScalarRuleEditor ,
163163 createEmptyValue : ( ) => 0 ,
164164 summarizeValue : ( value : EffectivePolicyValue ) => {
@@ -350,8 +350,8 @@ export function createRealPolicyWorkbenchState() {
350350 return {
351351 key : definition . key ,
352352 title : definition . title ,
353+ context : definition . context ,
353354 description : definition . description ,
354- menuHint : definition . menuHint ,
355355 defaultSummary : hasEffectiveValue ? definition . summarizeValue ( policy . effectiveValue ) : t ( 'libresign' , 'Not configured' ) ,
356356 groupCount : isActiveSetting ? groupRules . value . length : ( persistedCounts ?. groupCount ?? 0 ) ,
357357 userCount : isActiveSetting ? userRules . value . length : ( persistedCounts ?. userCount ?? 0 ) ,
0 commit comments