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

List participant on management page #233

Merged

Conversation

joshua-smee-ttd
Copy link
Contributor

@joshua-smee-ttd joshua-smee-ttd commented Dec 6, 2023

image
Added list of Approved Participants to the management screen.

src/api/services/participantsService.ts Outdated Show resolved Hide resolved
src/api/routers/participantsRouter.ts Outdated Show resolved Hide resolved
src/api/routers/participantsRouter.ts Outdated Show resolved Hide resolved
src/web/services/participant.ts Show resolved Hide resolved
@alex-yau-ttd
Copy link
Contributor

Could you please include a screenshot of the new UI :D

@joshua-smee-ttd
Copy link
Contributor Author

image
Sorry, here's a screen shot of the new table.

@alex-yau-ttd
Copy link
Contributor

image Sorry, here's a screen shot of the new table.

can you please put it in the MR description instead so it's easier to find

@@ -30,6 +30,7 @@ export function ParticipantRequestsTable({
}: ParticipantRequestsTableProps) {
return (
<div className='participant-requests-container'>
<h2>{participantRequests.length} Participants Pending Approval</h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's conditionally render the string to be singular when there is only one participantRequest to avoid
image

participantTypes={participantTypes}
onApprove={handleApproveParticipantRequest}
/>
<div>
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I'd recommend just using <> here instead of a <div>. I think it ends up being a <div> in the DOM anyway but it reads a bit cleaner. You'd want to use <div> if it was being used for styling.

@joshua-smee-ttd joshua-smee-ttd merged commit 28a47a0 into main Dec 7, 2023
2 checks passed
@joshua-smee-ttd joshua-smee-ttd deleted the jss-UID2-1612-list-existing-participants-manage-screen branch December 7, 2023 04:13
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.

3 participants