classroom icon indicating copy to clipboard operation
classroom copied to clipboard

Enhancements to the Admin dashboard page

Open utsab opened this issue 1 year ago • 3 comments

This issue is related to Issue #467 and PR #468. The referenced PR did successfully refactor the table on the admin page to use react-table. However, the PR introduced a few discrepancies compared to the original design of the admin table.

Original admin table:

Image

New admin table (after PR 468) :

Image

The goal of this issue is to fix the following discrepancies:

  1. The new admin table is missing a footer where the user can change the number of entries per page
  2. The "UserEmail" column should be titled "Email"
  3. The styling has changed. If possible, use the previous styling where there was no border surrounding the table. There also should be a visible line separating each row.

Steps to recreate the issue:

  1. Make sure you can successfully log in via Github (use the Github sign-in option, not Auth0)
  2. Run "npx prisma studio" in the terminal, navigate to the "Users" table, change the role of your user to "ADMIN"
  3. Make sure you click "Save changes" in prisma studio
  4. Sign out of the Classroom app and then sign back in
  5. Navigate to the /admin page (type this into the browser)

utsab avatar Dec 26 '24 02:12 utsab

hello @utsab Can you please assign this to me

Abiral-2724 avatar Dec 27 '24 18:12 Abiral-2724

@Abiral-2724 -- Sorry I have already assigned this issue to one our student teams at CTI (Computing Talent Initiative). I am planning to open up a few more issues in the coming month for non-CTI students. Please stay tuned for that.

utsab avatar Dec 30 '24 02:12 utsab

Hello @utsab, @NewtonLC and I have made progress to have the Admin Page look like this:

Image

We utilized simple text symbols for the buttons for going to the beginning, previous, next, and last instead of utilizing and svg image. Are we supposed to use particular images or is this display okay? Please advise.

CarlyAThomas avatar Jan 22 '25 01:01 CarlyAThomas