Skip to content

Referral Status Timeline#208

Open
Aditya8369 wants to merge 1 commit into
omkarhole:mainfrom
Aditya8369:201
Open

Referral Status Timeline#208
Aditya8369 wants to merge 1 commit into
omkarhole:mainfrom
Aditya8369:201

Conversation

@Aditya8369
Copy link
Copy Markdown
Contributor

Implemented the referral status timeline end to end. The backend now stores an append-only timeline on each referral document, appends events when a referral is posted, applied to, accepted, rejected, or closed, and exposes GET /api/referrals/:id/timeline plus a poster/admin close action. The role checks are now enforced in the actual flow: students can apply, and only the poster or an admin can accept/reject/close. See JobReferral.model.js, referral.controller.js, and referral.routes.js.

On the UI side, ReferralDetail.jsx now fetches the timeline endpoint and renders a chronological activity feed with timestamps, status labels, and optional actor/applicant names. I also fixed the detail page to use the session ID stored in localStorage instead of a missing user object from auth context, so ownership and apply gating work with the existing auth setup. The edited files passed get_errors, and a direct Node module-load sanity check succeeded.

closes #201

@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 2026

@Aditya8369 is attempting to deploy a commit to the omkarhole's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aditya8369
Copy link
Copy Markdown
Contributor Author

@omkarhole

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.

Referral Status Timeline

1 participant