Skip to content

completed ticket for applicant approve/reject - #49

Merged
natphua merged 2 commits into
mainfrom
FE-decision-controls
Nov 11, 2026
Merged

natphua merged 2 commits into
mainfrom
FE-decision-controls

Conversation

@abbyisnotme

Copy link
Copy Markdown
Collaborator

Describe your changes

me and @alexli24 did the API approve/reject. As well as the button for applicant to be approved/rejected.

Related Issue

Closes #43

Files changed

src/app/decision-controls-test/: testing our buttons
src/components/admin/ApplicantDecisionControls.tsx: approve/reject buttons
src/lib/admin-api.test.ts: test admin-api
src/lib/admin-api.ts: admin approve/reject

How to test

@abbyisnotme
abbyisnotme requested a review from natphua November 9, 2026 00:59

@natphua natphua left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Amazing work guys! It looks great. Though, there are a few things:

  1. Make sure your PR contains screenshots, how to test, etc. (aka fill in everything loaded from the PR template when you make a PR!). This tells us that you tested all the cases and have evidence to show for it. Also the estimated hours worked helps us gauge ticket difficulty
  2. Not sure if this wasn't clear enough in the ticket, but we want the decision controls to look like the Figma (long buttons, green/red states after approving/rejecting). For the CommonButton, you can simply pass in fullWidth: true to get the button to cover the entire container (like the Figma). Since you guys will be adding these controls into the details page in the next sprint, you might have to do slightly more frontend work there

Let me know if you have any questions! Keep up the great work

/**
* ApplicantDecisionControls /src/components/admin/
*
* Admin can approve/reject submitted applicants. Display confirm modal while updating applicant status. *

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove weird characters like these ( *) before making a PR

@natphua
natphua merged commit c60a3e5 into main Nov 11, 2026
1 check passed
@natphua
natphua deleted the FE-decision-controls branch November 11, 2026 14:17
@github-actions

Copy link
Copy Markdown

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.

FE: Approve/Reject Controls

2 participants