Skip to content

jaf mandatory value changes#460

Merged
princeiiti merged 9 commits into
Web-Team-IITI-Gymkhana:developfrom
metamyteee:main
Jul 13, 2026
Merged

jaf mandatory value changes#460
princeiiti merged 9 commits into
Web-Team-IITI-Gymkhana:developfrom
metamyteee:main

Conversation

@metamyteee

Copy link
Copy Markdown
Contributor

No description provided.

Princekumarofficial and others added 5 commits June 2, 2026 17:14
Co-authored-by: Pranay-Gottimukula <97828875+Pranay-Gottimukula@users.noreply.github.com>
Co-authored-by: metamyte <89248467+metamyteee@users.noreply.github.com>
Co-authored-by: Sakshya2504 <singhkaserasakshya2504@gmail.com>
Co-authored-by: Pranay-Gottimukula <97828875+Pranay-Gottimukula@users.noreply.github.com>
Co-authored-by: metamyte <89248467+metamyteee@users.noreply.github.com>
Co-authored-by: Sakshya2504 <singhkaserasakshya2504@gmail.com>
Co-authored-by: Pranay-Gottimukula <97828875+Pranay-Gottimukula@users.noreply.github.com>
Co-authored-by: metamyte <89248467+metamyteee@users.noreply.github.com>
Co-authored-by: Sakshya2504 <singhkaserasakshya2504@gmail.com>
Co-authored-by: Anand Vivek <anand1234.vivek@gmail.com>

Copilot AI left a comment

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.

Pull request overview

This PR adjusts JAF job details to make certain previously-mandatory fields optional, updates related UI indicators, and tweaks recruiter job detail editing safety around optional nested selectionProcedure data.

Changes:

  • Relax validation/UI “required” behavior for location and selectionMode.
  • Add minor UI copy changes (labels + helper hint).
  • Add optional chaining in recruiter job detail page selection procedure editing.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 6 comments.

File Description
src/validation/jaf.validation.ts Makes location and selectionMode optional in Yup schema (with updated allowed values).
src/components/JAF/TermsAndConditions.js Updates a hard-coded internship PPO status deadline date.
src/components/JAF/JobDetails.tsx Removes required UI markers for fields and adds/updates user-facing text.
src/app/(routes)/recruiter/jobs/[jobID]/page.tsx Adds optional chaining around selectionProcedure reads/updates in edit flows.
Files not reviewed (1)
  • src/components/JAF/TermsAndConditions.js: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 157 to 160
location: Yup.string()
.required("Job location is required")
.optional()
.min(2, "Location must be at least 2 characters")
.max(200, "Location must not exceed 200 characters"),
Comment on lines 250 to 253
selectionMode: Yup.string()
.oneOf(
Object.values(SelectionModeEnum),
"Please select a valid selection mode",
)
.required("Selection mode is required"),
.optional()
.oneOf([...Object.values(SelectionModeEnum), ""], "Please select a valid selection mode"),

Comment on lines 833 to 835
<Text strong className="text-xs md:text-sm text-gray-700">
Internship Duration
Internship Duration(In Month)
</Text>
Comment thread src/components/JAF/JobDetails.tsx Outdated
Comment on lines +1356 to +1360
marginTop: 4,
fontStyle: "bold",
}}
>
please select relevant branches/Specialization from the below drop-down
Comment on lines 105 to 108
selectionProcedure: {
...prev.selectionProcedure,
tests: prev.selectionProcedure.tests.filter((_, i) => i !== index),
tests: prev.selectionProcedure?.tests.filter((_, i) => i !== index),
},
Comment on lines 129 to 134
selectionProcedure: {
...prev.selectionProcedure,
interviews: prev.selectionProcedure.interviews.filter(
interviews: prev.selectionProcedure?.interviews.filter(
(_, i) => i !== index,
),
},
@metamyteee
metamyteee changed the base branch from main to develop July 9, 2026 12:47
@princeiiti
princeiiti requested a review from Copilot July 13, 2026 09:12

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 7 comments.

Files not reviewed (1)
  • src/components/JAF/TermsAndConditions.js: Generated file


let colors =
"text-green-400 text-red-400 text-indigo-400 text-gray-400 text-blue-400 text-purple-400";
"text-green-400 text-red-400 text-indigo-400 text-gray-400 text-blue-400 text-purple-400 text-yellow-400";
<React.Fragment>
<p className="text-white font-bold ">Label</p>
{Array.from(labelsClasses.entries()).map(([label, color], idx) => {
{Array.from(labelsClasses.entries()).map(([label, colors], idx) => {
color: "#9ca3af",
display: "block",
marginTop: 4,
fontStyle: "bold",
Comment thread src/components/JAF/JobDetails.tsx Outdated
}}
>
<Text strong className="text-xs md:text-sm text-gray-700">
Is there a bond requirement?
Comment on lines +108 to +125
const payload = data
.map((row) => {
const student = students.find(
(s) => String(s.rollNo) === String(row.rollNo),
);

if (!student) return null;

return {
id: student.id,
cpi: Number(row.cpi),
};
})
.filter(Boolean);
if (payload.length === 0) {
toast.error("No matching roll numbers found");
return;
}
Comment thread src/helpers/admin/api.ts
Comment on lines +82 to +87
export async function updateStudents(payload: any[]): Promise<any> {
return apiCall("/students", {
method: "PATCH",
body: payload,
});
}
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@netlify

netlify Bot commented Jul 13, 2026

Copy link
Copy Markdown

👷 Deploy request for tpc-portal-develop pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 521d65d

@princeiiti
princeiiti merged commit 4feae68 into Web-Team-IITI-Gymkhana:develop Jul 13, 2026
1 check passed
Princekumarofficial added a commit that referenced this pull request Jul 13, 2026
Co-authored-by: Prince Kumar <x.prince.x@outlook.com>
Co-authored-by: Pranay-Gottimukula <97828875+Pranay-Gottimukula@users.noreply.github.com>
Co-authored-by: Sakshya2504 <singhkaserasakshya2504@gmail.com>
Co-authored-by: Anand Vivek <anand1234.vivek@gmail.com>
Co-authored-by: Prince Kumar <ep230051013@iiti.ac.in>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

5 participants