@@ -22,6 +22,7 @@ export type ManageGroupFormProps = {
2222 accessibleInteractiveInstrumentIds : Set < string > ;
2323 defaultIdentificationMethod ?: SubjectIdentificationMethod ;
2424 idValidationRegex ?: null | string ;
25+ subjectIdDisplayLength ?: number ;
2526 } ;
2627 } ;
2728 onSubmit : ( data : Partial < UpdateGroupData > ) => Promisable < any > ;
@@ -59,6 +60,22 @@ export const ManageGroupForm = ({ data, onSubmit, readOnly }: ManageGroupFormPro
5960 } ,
6061 title : t ( 'group.manage.accessibleInstruments' )
6162 } ,
63+ {
64+ fields : {
65+ subjectIdDisplayLength : {
66+ kind : 'number' ,
67+ label : t ( {
68+ en : 'Preferred Subject ID Display Length' ,
69+ fr : "La longueur d'affichage préférée de l'ID"
70+ } ) ,
71+ variant : 'input'
72+ }
73+ } ,
74+ title : t ( {
75+ en : 'Display Settings' ,
76+ fr : "Paramètres d'affichage"
77+ } )
78+ } ,
6279 {
6380 fields : {
6481 defaultIdentificationMethod : {
@@ -129,7 +146,8 @@ export const ManageGroupForm = ({ data, onSubmit, readOnly }: ManageGroupFormPro
129146 defaultIdentificationMethod : $SubjectIdentificationMethod . optional ( ) ,
130147 idValidationRegex : $RegexString . optional ( ) ,
131148 idValidationRegexErrorMessageEn : z . string ( ) . optional ( ) ,
132- idValidationRegexErrorMessageFr : z . string ( ) . optional ( )
149+ idValidationRegexErrorMessageFr : z . string ( ) . optional ( ) ,
150+ subjectIdDisplayLength : z . number ( ) . int ( ) . min ( 1 )
133151 } ) }
134152 onSubmit = { ( data ) => {
135153 void onSubmit ( {
@@ -140,7 +158,8 @@ export const ManageGroupForm = ({ data, onSubmit, readOnly }: ManageGroupFormPro
140158 idValidationRegexErrorMessage : {
141159 en : data . idValidationRegexErrorMessageEn ,
142160 fr : data . idValidationRegexErrorMessageFr
143- }
161+ } ,
162+ subjectIdDisplayLength : data . subjectIdDisplayLength
144163 }
145164 } ) ;
146165 } }
0 commit comments