Skip to content

Commit

Permalink
feat: Refinements based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s committed May 15, 2024
1 parent 46c2b3d commit 0311d7e
Showing 1 changed file with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type TeamMember = Omit<User, "teams" | "isPlatformAdmin"> & {
const roleLabels: Record<string, string> = {
platformAdmin: "Admin",
teamEditor: "Editor",
teamViewer: "Viewer",
};

interface Props {
Expand Down Expand Up @@ -130,7 +131,7 @@ export const TeamMembers: React.FC<Props> = ({ teamMembersByRole }) => {
Team editors
</Typography>
<Typography variant="body1">
Editors have access to edit your flows and services.
Editors have access to edit your services.
</Typography>
{renderMemberTable(otherRoles)}
</EditorRow>
Expand All @@ -143,15 +144,18 @@ export const TeamMembers: React.FC<Props> = ({ teamMembersByRole }) => {
</Typography>
{renderMemberTable(platformAdmins)}
</EditorRow>
<EditorRow>
<Typography variant="h2" component="h3" gutterBottom>
Archived team editors
</Typography>
<Typography variant="body1">
Past members who no longer have access to edit your team.
</Typography>
{renderMemberTable(archivedMembers)}
</EditorRow>
{archivedMembers.length > 0 && (
<EditorRow>
<Typography variant="h2" component="h3" gutterBottom>
Archived team editors
</Typography>
<Typography variant="body1">
Past team members who no longer have access to the Editor, but may
be part of the edit history of your services.
</Typography>
{renderMemberTable(archivedMembers)}
</EditorRow>
)}
</Box>
</Container>
);
Expand Down

0 comments on commit 0311d7e

Please sign in to comment.