Skip to content

Commit

Permalink
Merge pull request wso2#4593 from Achintha444/master
Browse files Browse the repository at this point in the history
(fix) Fix content of roles tabs in users and groups to convey that this tab is read only
  • Loading branch information
Achintha Isuru authored Nov 14, 2023
2 parents d046a80 + 772196c commit e5b41a5
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 19 deletions.
8 changes: 8 additions & 0 deletions .changeset/kind-ducks-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@wso2is/console": patch
"@wso2is/i18n": patch
"@wso2is/myaccount": patch
"@wso2is/identity-apps-core": patch
---

(fix) Fix content of roles tabs in users and groups to convey that this tab is read only
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export const EditGroupRoles: FunctionComponent<EditGroupRolesPropsInterface> = (
return (
<EmptyPlaceholder
subtitle={
[ t("console:manage.features.roles.edit.groups.placeholders.emptyPlaceholder.subtitles.0") ]
[ t("console:manage.features.groups.edit.roles.placeHolders.emptyListPlaceholder.subtitles") ]
}
title={ t("console:manage.features.roles.edit.groups.placeholders.emptyPlaceholder.title") }
title={ t("console:manage.features.groups.edit.roles.placeHolders.emptyListPlaceholder.title") }
image={ getEmptyPlaceholderIllustrations().emptyList }
imageSize="tiny"
/>
Expand All @@ -89,10 +89,9 @@ export const EditGroupRoles: FunctionComponent<EditGroupRolesPropsInterface> = (
return (
<EmphasizedSegment padded="very">
<Heading as="h4">
{ t("console:manage.features.user.updateUser.roles.editRoles.heading") }
{ t("console:manage.features.groups.edit.roles.heading") }
</Heading>
<Heading subHeading ellipsis as="h6">
{ /* TODO: Need to replace this with "View assigned roles for the group." */ }
{ t("console:manage.features.groups.edit.roles.subHeading") }
</Heading>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export const UserRolesList: FunctionComponent<UserRoleEditPropsInterface> = (
// TODO: Need to replace the i18N with the correct one.
<EmptyPlaceholder
subtitle={
[ t("console:manage.features.roles.edit.groups.placeholders.emptyPlaceholder.subtitles.0") ]
[ t("console:manage.features.user.updateUser.roles.editRoles.placeholders.subtitles") ]
}
title={ t("console:manage.features.roles.edit.groups.placeholders.emptyPlaceholder.title") }
title={ t("console:manage.features.user.updateUser.roles.editRoles.placeholders.title") }
image={ getEmptyPlaceholderIllustrations().emptyList }
imageSize="tiny"
/>
Expand All @@ -92,7 +92,6 @@ export const UserRolesList: FunctionComponent<UserRoleEditPropsInterface> = (
{ t("console:manage.features.user.updateUser.roles.editRoles.heading") }
</Heading>
<Heading subHeading ellipsis as="h6">
{ /* TODO: Need to replace this with "View assigned roles for the user." */ }
{ t("console:manage.features.user.updateUser.roles.editRoles.subHeading") }
</Heading>
{
Expand Down
7 changes: 7 additions & 0 deletions modules/i18n/src/models/namespaces/console-ns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4407,7 +4407,11 @@ export interface ConsoleNS {
heading: string;
subHeading: string;
};
heading: string;
subHeading: string;
placeHolders: {
emptyListPlaceholder: Placeholder;
};
};
};
list: {
Expand Down Expand Up @@ -6113,6 +6117,9 @@ export interface ConsoleNS {
1: string;
};
};
placeholders: {
emptyPlaceholder: Placeholder;
};
heading: string;
popups: {
viewPermissions: string;
Expand Down
19 changes: 15 additions & 4 deletions modules/i18n/src/translations/en-US/portals/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8937,12 +8937,18 @@ export const console: ConsoleNS = {
}
},
roles: {
placeHolders: {
emptyListPlaceholder: {
subtitles: "There are no roles assigned to this group at the moment.",
title: "No Roles Assigned"
}
},
heading: "Assigned Roles",
addRolesModal: {
heading: "Update Group Roles",
subHeading: "Add new roles or remove existing roles assigned to the group."
},
subHeading: "Add or remove the roles this group is assigned with and note that this " +
"will affect performing certain tasks."
subHeading: "View assigned roles for the group."
}
},
list: {
Expand Down Expand Up @@ -11552,6 +11558,12 @@ export const console: ConsoleNS = {
header: "Are you sure?",
message: "This action will modify the role of this user."
},
placeholders: {
emptyPlaceholder: {
title: "No roles assigned",
subtitles: "There are no roles assigned to the user at the moment."
}
},
heading: "Assigned Roles",
popups: {
viewPermissions: "View Permissions"
Expand All @@ -11571,8 +11583,7 @@ export const console: ConsoleNS = {
}
},
searchPlaceholder: "Search Roles",
subHeading: "Add or remove the roles this user is assigned with and note that this " +
"will affect performing certain tasks."
subHeading: "View assigned roles for the user."
},
notifications: {
addUserRoles: {
Expand Down
19 changes: 15 additions & 4 deletions modules/i18n/src/translations/fr-FR/portals/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7315,13 +7315,19 @@ export const console: ConsoleNS = {
}
},
roles: {
placeHolders: {
emptyListPlaceholder: {
subtitles: "Il n'y a aucun rôle attribué à ce groupe pour le moment.",
title: "Aucun rôle attribué"
}
},
heading: "Rôles attribués",
addRolesModal: {
heading: "Mettre à jour les rôles de groupe",
subHeading: "Ajoutez de nouveaux rôles ou supprimez les rôles existants attribués " +
"au groupe."
},
subHeading: "Ajoutez ou supprimez les rôles auxquels ce groupe est affecté et " +
"notez que cela affectera l'exécution de certaines tâches."
subHeading: "Afficher les rôles attribués pour le groupe."
}
},
list: {
Expand Down Expand Up @@ -9839,6 +9845,12 @@ export const console: ConsoleNS = {
header: "Êtes-vous sûr?",
message: "Cette action modifiera le rôle de cet utilisateur."
},
placeholders: {
emptyPlaceholder: {
title: "Aucun rôle attribué",
subtitles: "Il n'y a aucun rôle attribué à l'utilisateur pour le moment."
}
},
heading: "Rôles assignés",
popups: {
viewPermissions: "Voir les permissions"
Expand All @@ -9858,8 +9870,7 @@ export const console: ConsoleNS = {
}
},
searchPlaceholder: "Rechercher des rôles",
subHeading: "Ajouter ou supprimer le rôle auquel l'utilisateur est affecté. Notez que " +
"cela affectera également l'exécution de certaines tâches."
subHeading: "Afficher les rôles attribués pour l'utilisateur."
},
notifications: {
addUserRoles: {
Expand Down
19 changes: 15 additions & 4 deletions modules/i18n/src/translations/si-LK/portals/console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7149,12 +7149,18 @@ export const console: ConsoleNS = {
}
},
roles: {
placeHolders: {
emptyListPlaceholder: {
subtitles: "මේ මොහොතේ මෙම කණ්ඩායමට කිසිදු භූමිකාවන් පවරා නොමැත.",
title: "කිසිදු භූමිකාවක් පවරා නොමැත"
}
},
heading: "පවරා ඇති භූමිකාවන්",
addRolesModal: {
heading: "කණ්ඩායම් භූමිකාවන් යාවත්කාලීන කරන්න",
subHeading: "නව භූමිකාවන් එක් කරන්න හෝ කණ්ඩායමට පවරා ඇති භූමිකාවන් ඉවත් කරන්න."
},
subHeading: "මෙම කණ්ඩායම විසින් පවරා ඇති භූමිකාවන් එකතු කිරීම හෝ ඉවත් කිරීම සහ " +
"මෙය ඇතැම් කාර්යයන් ඉටු කිරීමට බලපානු ඇති බව සලකන්න."
subHeading: "කණ්ඩායම සඳහා පවරා ඇති භූමිකාවන් බලන්න."
}
},
list: {
Expand Down Expand Up @@ -9603,6 +9609,12 @@ export const console: ConsoleNS = {
header: "ඔබට විශ්වාසද?",
message: "මෙම ක්‍රියාව මෙම පරිශීලකයාගේ භූමිකාව වෙනස් කරයි."
},
placeholders: {
emptyPlaceholder: {
title: "කිසිදු භූමිකාවක් පවරා නොමැත",
subtitles: "මේ මොහොතේ පරිශීලකයාට කිසිදු භූමිකාවන් නොමැත."
}
},
heading: "පවරා ඇති භූමිකාවන්",
popups: {
viewPermissions: "අවසර බලන්න"
Expand All @@ -9622,8 +9634,7 @@ export const console: ConsoleNS = {
}
},
searchPlaceholder: "සෙවුම් භූමිකාවන්",
subHeading: "මෙම පරිශීලකයාට පවරා ඇති භූමිකාවන් එකතු කිරීම හෝ ඉවත් කිරීම සහ " +
"මෙය ඇතැම් කාර්යයන් ඉටු කිරීමට බලපානු ඇති බව සලකන්න."
subHeading: "පරිශීලකයා සඳහා පවරා ඇති භූමිකාවන් බලන්න."
},
notifications: {
addUserRoles: {
Expand Down

0 comments on commit e5b41a5

Please sign in to comment.