Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shiwani Make permission for "total valid weekly summaries" number editable #1459

Merged
Merged
136 changes: 88 additions & 48 deletions src/components/PermissionsManagement/PermissionsConst.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,21 @@ export const permissionLabels = [
{
label: 'See Weekly Summaries',
key: 'getWeeklySummaries',
description: 'Makes ONLY the "Reports" -> "Weekly Summaries Reports" option appear/accessible.',
description:
'Makes ONLY the "Reports" -> "Weekly Summaries Reports" option appear/accessible.',
},
{
label: 'Edit Total Valid Weekly Summaries',
key: 'totalValidWeeklySummaries',
description: 'Gives permission to edit total valid weekly summaries count under reports',
},
{
label: 'See Highlight for Bios Eligible to be Posted',
key: 'highlightEligibleBios',
description: 'Under "Reports" -> "Weekly Summaries Reports", make the "Bio announcement" row highlighted yellow if that user is eligible for their bio to be posted (they have at least 80 tangible hours, 60 days on the team, and still don\'t have their bio posted)',
description:
'Under "Reports" -> "Weekly Summaries Reports", make the "Bio announcement" row highlighted yellow if that user is eligible for their bio to be posted (they have at least 80 tangible hours, 60 days on the team, and still don\'t have their bio posted)',
},
]
],
},
{
label: 'User Management',
Expand All @@ -32,34 +39,39 @@ export const permissionLabels = [
{
label: 'Create New Users',
key: 'postUserProfile',
description: 'Make the "Other Links" -> "User Management" button appear/accessible and be able to ONLY create users. No editing or deleting access. ',
description:
'Make the "Other Links" -> "User Management" button appear/accessible and be able to ONLY create users. No editing or deleting access. ',
},
{
label: 'Edit User Profile',
key: 'putUserProfile',
description: 'Gives the user permission to edit all the information of any user on the user profile page.',
description:
'Gives the user permission to edit all the information of any user on the user profile page.',
},
{
label: 'Change User Status',
key: 'changeUserStatus',
description: 'Gives the user permission to change the status of any user on the user profile page or User Management Page. "User Profile" -> "Green round button"',
description:
'Gives the user permission to change the status of any user on the user profile page or User Management Page. "User Profile" -> "Green round button"',
},
{
label: 'Handle Blue Squares',
key: 'infringementAuthorizer',
description: 'Gives the user permission to Create/Edit/Delete any blue square and assign them to any user.',
description:
'Gives the user permission to Create/Edit/Delete any blue square and assign them to any user.',
},
{
label: 'Modify Important User Info',
key: 'putUserProfileImportantInfo',
description: 'Gives the user the ability to modify several protected parts of users profiles. This includes changing admin links, weekly summary options, committed hours, role, isRehireable, email, date created, bio status, and more. It also allows to circumvent permissions related to assigning teams or projects and changing active status.',
description:
'Gives the user the ability to modify several protected parts of users profiles. This includes changing admin links, weekly summary options, committed hours, role, isRehireable, email, date created, bio status, and more. It also allows to circumvent permissions related to assigning teams or projects and changing active status.',
},
{
label: 'Manage Time Off Requests',
key: 'manageTimeOffRequests',
description: 'Gives the user permission to Add/Delete/Edit Time off requests.',
},
]
],
},
{
label: 'Badge Management',
Expand All @@ -68,28 +80,34 @@ export const permissionLabels = [
{
label: 'See Badges',
key: 'seeBadges',
description: 'Gives the user permission to view (but not change) all badges information data on the Other Links -> Badges Management page',
description:
'Gives the user permission to view (but not change) all badges information data on the Other Links -> Badges Management page',
},
{
label: 'Create Badges',
key: 'createBadges',
description: 'Make the "Other Links" -> "Badge Management" button appear and then have the ability to create (but not edit or delete) badges. ',
description:
'Make the "Other Links" -> "Badge Management" button appear and then have the ability to create (but not edit or delete) badges. ',
},
{
label: 'Edit Badge',
key: 'updateBadges',
description: 'Gives the user permission to edit information like the name, image, etc. of an existing badge ',
description:
'Gives the user permission to edit information like the name, image, etc. of an existing badge ',
},
{
label: 'Delete Badge',
key: 'deleteBadges',
description: 'Gives the user permission to delete a badge on "Other Links" -> "Badge Management"',
description:
'Gives the user permission to delete a badge on "Other Links" -> "Badge Management"',
},
{
label: 'Assign Badges',
key: 'assignBadges',
description: 'Gives the user permission to assign badges to others users "User Profile" -> "Assign Badges" or to increase or decrease the count of a badge on the Badge Reports Component',
},]
description:
'Gives the user permission to assign badges to others users "User Profile" -> "Assign Badges" or to increase or decrease the count of a badge on the Badge Reports Component',
},
],
},
{
label: 'Project Management',
Expand All @@ -98,27 +116,32 @@ export const permissionLabels = [
{
label: 'Add Project',
key: 'postProject',
description: 'Gives the user permission to create any Project. "Other Links" -> "Projects" -> "Add new Project Input" ',
description:
'Gives the user permission to create any Project. "Other Links" -> "Projects" -> "Add new Project Input" ',
},
{
label: 'Delete Project',
key: 'deleteProject',
description: 'Gives the user permission to delete any Project. "Other Links" -> "Projects" -> "Delete button" ',
description:
'Gives the user permission to delete any Project. "Other Links" -> "Projects" -> "Delete button" ',
},
{
label: 'Edit Project Category or Status',
key: 'putProject',
description: 'Gives the user permission to edit the category or the status of any Project. "Other Links" -> "Projects"',
description:
'Gives the user permission to edit the category or the status of any Project. "Other Links" -> "Projects"',
},
{
label: 'Find User in Project',
key: 'getProjectMembers',
description: 'Gives the user permission to find any user on the project members page. "Other Links" -> "Projects" -> "Members" -> "Find user input" ',
description:
'Gives the user permission to find any user on the project members page. "Other Links" -> "Projects" -> "Members" -> "Find user input" ',
},
{
label: 'Assign Project to Users',
key: 'assignProjectToUsers',
description: 'Gives the user permission to add/remove any user on the project members page. "Other Links" -> "Projects" -> "Members" -> "Find user input" ',
description:
'Gives the user permission to add/remove any user on the project members page. "Other Links" -> "Projects" -> "Members" -> "Find user input" ',
},
{
label: 'Work Breakdown Structures',
Expand All @@ -127,12 +150,14 @@ export const permissionLabels = [
{
label: 'Add WBS',
key: 'postWbs',
description: 'Gives the user permission to create a new WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Add new WBS Input"',
description:
'Gives the user permission to create a new WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Add new WBS Input"',
},
{
label: 'Delete WBS',
key: 'deleteWbs',
description: 'Gives the user permission to delete any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Minus Red Icon"',
description:
'Gives the user permission to delete any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Minus Red Icon"',
},
{
label: 'Tasks',
Expand All @@ -141,38 +166,44 @@ export const permissionLabels = [
{
label: 'Add Task',
key: 'postTask',
description: 'Gives the user permission to add a task on any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Choose any WBS" -> "Add task button"',
description:
'Gives the user permission to add a task on any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Choose any WBS" -> "Add task button"',
},
{
label: 'Edit Task',
key: 'updateTask',
description: 'Gives the user permission to edit a task on any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Choose any WBS" -> "Edit" -> "Edit" ',
description:
'Gives the user permission to edit a task on any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Choose any WBS" -> "Edit" -> "Edit" ',
},
{
label: 'Delete Task',
key: 'deleteTask',
description: 'Gives the user permission to delete a task on any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Choose any WBS" -> "Edit" -> "Remove"',
description:
'Gives the user permission to delete a task on any WBS. "Other Links" -> "Projects" -> "WBS Button" -> "Choose any WBS" -> "Edit" -> "Remove"',
},
{
label: 'Resolve Tasks',
key: 'resolveTask',
description: 'Gives the user permission to RESOLVE tasks from the Management Dashboard showing all their team members. ',
description:
'Gives the user permission to RESOLVE tasks from the Management Dashboard showing all their team members. ',
},
{
label: 'Suggest Changes on a task',
key: 'suggestTask',
description: 'Gives the user permission to suggest changes on a task. "Dashboard" -> "Tasks tab" -> "Click on any task" -> "Suggest button"',
description:
'Gives the user permission to suggest changes on a task. "Dashboard" -> "Tasks tab" -> "Click on any task" -> "Suggest button"',
},
{
label: 'Interact with Task "Ready for Review"',
key: 'putReviewStatus',
description: 'Give the user permission to interact with any "Ready for Review" task button to either mark it as complete or reset it with "More work needed, reset this button" ',
}
description:
'Give the user permission to interact with any "Ready for Review" task button to either mark it as complete or reset it with "More work needed, reset this button" ',
},
],
},
],
},
]
],
},
{
label: 'Teams Management',
Expand Down Expand Up @@ -201,9 +232,10 @@ export const permissionLabels = [
{
label: 'Assign Users to Team',
key: 'assignTeamToUsers',
description: 'Gives the user permission to add users to teams. "Other Links" -> "Teams" -> "Members" -> "Add Input"',
description:
'Gives the user permission to add users to teams. "Other Links" -> "Teams" -> "Members" -> "Add Input"',
},
]
],
},
{
label: 'Timelog Management',
Expand All @@ -216,17 +248,20 @@ export const permissionLabels = [
{
label: 'Add Time Entry (Others)',
key: 'postTimeEntry',
description: 'Gives the user permission to add Intangible time entry to others users "Dashboard" -> "Leaderboard" -> "Dot By the side of user\'s name" -> "Add Time entry to (Name of the user) yellow button". Currently not implemented.',
description:
'Gives the user permission to add Intangible time entry to others users "Dashboard" -> "Leaderboard" -> "Dot By the side of user\'s name" -> "Add Time entry to (Name of the user) yellow button". Currently not implemented.',
},
{
label: 'Toggle Tangible Time Self',
key: 'toggleTangibleTime',
description: 'Gives the user permission to toggle the Tangible check when editing their own time entry.',
description:
'Gives the user permission to toggle the Tangible check when editing their own time entry.',
},
{
label: 'Delete Time Entry (Others)',
key: 'deleteTimeEntry',
description: 'Gives the user permission to Delete time entry from others users "Dashboard" -> "Leaderboard" -> "Dot By the side of user\'s name" -> "Current Time Log" -> "Trash button on bottom right"',
description:
'Gives the user permission to Delete time entry from others users "Dashboard" -> "Leaderboard" -> "Dot By the side of user\'s name" -> "Current Time Log" -> "Trash button on bottom right"',
},
{
label: 'Edit Time Entries',
Expand All @@ -240,23 +275,26 @@ export const permissionLabels = [
{
label: 'Edit Timelog Description',
key: 'editTimeEntry',
description: 'Gives the user permission to edit the description of any time log entry.',
description:
'Gives the user permission to edit the description of any time log entry.',
},
{
label: 'Toggle Tangible Time Others',
key: 'editTimeEntry',
description: 'Gives the user permission to toggle the tangible check when editing a time entry of another user.',
description:
'Gives the user permission to toggle the tangible check when editing a time entry of another user.',
},
{
label: 'Change Time Entry Date',
key: 'editTimelogDate',
description: 'Gives the user permission to edit the date when adding an intangible time entry.',
description:
'Gives the user permission to edit the date when adding an intangible time entry.',
},
]
}
]
}
]
],
},
],
},
],
},
{
label: 'Permissions Management',
Expand All @@ -280,9 +318,10 @@ export const permissionLabels = [
{
label: 'Edit Individual User Permissions',
key: 'putUserProfilePermissions',
description: 'Give user permission to access Permissions Management and ONLY manage individual User Permissions.',
description:
'Give user permission to access Permissions Management and ONLY manage individual User Permissions.',
},
]
],
},
{
label: 'Popup Management',
Expand All @@ -303,7 +342,7 @@ export const permissionLabels = [
// key: 'deletePopup',
// description: 'WIP - not implemented',
// },
]
],
},
{
label: 'Misc/Unsorted',
Expand All @@ -312,9 +351,10 @@ export const permissionLabels = [
{
label: 'Edit Team 4-Digit Codes',
key: 'editTeamCode',
description: 'Gives the user permission to edit 4-digit team codes on profile page and weekly summaries report page.',
description:
'Gives the user permission to edit 4-digit team codes on profile page and weekly summaries report page.',
},
]
],
},
];

Expand Down
Loading
Loading