@@ -68,6 +68,26 @@ const messages = defineMessages({
6868 defaultMessage : 'Role assigned successfully.' ,
6969 description : 'Toast message shown when a role is successfully assigned' ,
7070 } ,
71+ 'wizard.save.error.user_already_has_role' : {
72+ id : 'wizard.save.error.user_already_has_role' ,
73+ defaultMessage : '{userIdentifier} already has this role in {scope}' ,
74+ description : 'Error shown in the toast when the user already holds the role in the selected scope' ,
75+ } ,
76+ 'wizard.save.error.user_not_found' : {
77+ id : 'wizard.save.error.user_not_found' ,
78+ defaultMessage : 'User "{userIdentifier}" was not found' ,
79+ description : 'Error shown in the toast when the username or email does not match any account' ,
80+ } ,
81+ 'wizard.save.error.role_assignment_error' : {
82+ id : 'wizard.save.error.role_assignment_error' ,
83+ defaultMessage : 'Could not assign role to {userIdentifier} in {scope}' ,
84+ description : 'Error shown in the toast when an unexpected error occurs during role assignment' ,
85+ } ,
86+ 'wizard.save.error.default' : {
87+ id : 'wizard.save.error.default' ,
88+ defaultMessage : '{userIdentifier} ({scope}): {error}' ,
89+ description : 'Fallback error line shown in the toast for unknown role-assignment error codes' ,
90+ } ,
7191
7292 // DefineApplicationScopeStep — filter bar
7393 'wizard.step2.search.placeholder' : {
0 commit comments