Skip to content

Admin UI#37

Merged
Rodrogamby merged 1 commit intomainfrom
admin_ui
Jun 27, 2025
Merged

Admin UI#37
Rodrogamby merged 1 commit intomainfrom
admin_ui

Conversation

@Rodrogamby
Copy link
Copy Markdown
Contributor

@Rodrogamby Rodrogamby commented Jun 23, 2025

closes #15

@Rodrogamby Rodrogamby requested a review from GilMM27 June 23, 2025 01:01
Copy link
Copy Markdown
Contributor

@GilMM27 GilMM27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good

@@ -0,0 +1,16 @@
import Title from "~/app/_components/title";
import AdminViewBlock from "~/app/_components/admin/adminViewBlock";
import { api } from "~/trpc/server";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer use of trpc/react for react components

return (
<div className="flex flex-col gap-12">
<Title label="Problem Setup"/>
{ weeks.map((w) => <AdminViewBlock key={w.id} problems={problems} week={w} /> ) }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems like the tables columns aren't aligned

<th> Problem </th>
<th> Difficulty </th>
<th> Solved by </th>
<th> &nbsp; </th>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is it supposed to be? I don't see it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace

<NavElement href="/weekly-problems" label="Weekly Problems" />
<NavElement href="/leaderboard" label="Leaderboard" />
<NavElement href="/resources" label="Resources" />
<NavElement href="/admin" label="Manage" />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we only show this option if the user is an admin?

@Rodrogamby Rodrogamby marked this pull request as ready for review June 27, 2025 05:33
@Rodrogamby
Copy link
Copy Markdown
Contributor Author

image

@Rodrogamby
Copy link
Copy Markdown
Contributor Author

image

Copy link
Copy Markdown
Member

@Ale-Coeto Ale-Coeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Rodrogamby Rodrogamby dismissed GilMM27’s stale review June 27, 2025 19:52

Changes requested by Gil have been applied, but he's on vacation.

@Rodrogamby Rodrogamby merged commit b05ca4a into main Jun 27, 2025
3 checks passed
@Rodrogamby Rodrogamby deleted the admin_ui branch June 27, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

US5.1 - Admin page

3 participants