codersforcauses / codersforcauses/teach-learn-grow

As an administrator i want to be able to edit group information

Open
#13 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Administrators should be able to edit specific group information for a specific program through the admins page. This should be available in the programs tab. Select a program from the dropdown, then select the group from another dropdown and click a 'more info' button to redirect to the page. Here they can edit the info the same as a coordinator.

**Tasks**

Frontend
- [ ] Admin page
- add a group admin page and link it in the base admin page #3
- add a dropdown that list all programs (fetched from backend)
- when a program is selected, list all groups within the programs and display them in a table
- clicking on a group opens a modal with the group's full description
- add an edit button that turns on edit mode with a save or cancel button

Backend
- [ ] List groups endpoint
- GET request, given a program id, list all groups under that program, sorted by latest date first
- create 2 distinct permission (`view own group` and `view all groups` - or similar)
- base on which permission the user has, change the response
- if `view own group`, only return the group that the user is a part of
- if `view all groups`, return all groups under the program
- give `view own group` to coordinators and `view all groups` to admins
- [ ] List programs endpoint
- GET request, return all programs
- use a similar 2 permissions as above
- coordinators should only see programs that they are a part of
- administrators should see all programs

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the admins page and its programs tab, then trace the existing coordinator group-editing flow. Map the list-programs and list-groups endpoints and their permission behavior; the work is done when administrators can select programs and groups, view and edit group information, while coordinator and administrator visibility rules are enforced.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authorization, backend, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.