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

[Frontend] Create Chapter Management Page #125

Open
4 tasks
johannesq23 opened this issue Sep 17, 2024 · 0 comments
Open
4 tasks

[Frontend] Create Chapter Management Page #125

johannesq23 opened this issue Sep 17, 2024 · 0 comments
Assignees

Comments

@johannesq23
Copy link
Contributor

johannesq23 commented Sep 17, 2024

Context

BEI wants to have a chapter management page to view chapters, and associated volunteers in the chapters.

Requirements

  • Similar to the PatientGrid.tsx and VolunteerGrid.tsx components, create one more table component (using the DataGrid.tsx and Pagination.tsx components) as below. When you click in, you are redirected to the individual chapter page.
  • This is what each component of the chapter should look like.
Screenshot 2024-09-18 at 4 33 29 PM
  • The backend routes associated with the actions will implemented in a separate ticket
  • For the time being, use dummy data to test and preview

ChapterGrid component

  • Props:
interface ChapterGridProps {
  data: IChapter[];
  sortField: SortField | undefined;
  setSortField: React.Dispatch<React.SetStateAction<SortField | undefined>>;
  setCurrentPage: React.Dispatch<React.SetStateAction<number>>;
  pageCount: number;
  currentPage: number;
}
  • Here is the design, the chaptergrid should be populated with the items shown.
  • The table should also include pagination
  • All columns should be sortable except for "View Chapter"

ChapterSearch component

Implement the chapter search component on the same page as the chapterGridComponent. We do NOT need the advanced filter. We should only filter by name.
Screenshot 2024-09-18 at 4 35 42 PM

MyChapter component

Implement the MyChapter page, which looks like this. This is what happens when you click on a chapter component in the grid:
Screenshot 2024-09-17 at 12 43 23 AM

  • Search bar only searched by name- no need for advanced filtering.
  • Populate with dummy data for now but in a way that makes it easy to update when the backend is completed.

NavBar

Implement the Changes to the Navigation Bar. Scroll around the figma here.
Screenshot 2024-09-17 at 1243 23 AM
Screenshot 2024-09-18 at 4 30 34 PM

  • Role == ChapterPresident, then show MyChapter
  • Role != Volunteer or Role != Chapter President, then show SearchChapter Component

Acceptance Criteria

  • Implement ChapterGrid component
  • Implement ChapterSearch component
  • Implement MyChapter component
  • Implement NavBar Changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants