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

created and integrated APIs for add placement record and Batch statistics #5

Closed
Closed
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
189111b
Added Routes and Base Components
Doraemon012 Oct 9, 2024
abd98b5
Your commit message
sam2104 Oct 11, 2024
d264203
Update package.json
Doraemon012 Oct 11, 2024
9085b8c
Merge pull request #12 from sam2104/sa-4
Doraemon012 Oct 11, 2024
70f706e
added role based access
Doraemon012 Oct 11, 2024
9421e7e
added placement calendar
Doraemon012 Oct 11, 2024
414afe3
made some ui enhancements
Doraemon012 Oct 16, 2024
a9ed527
created download cv and send notifications form components (#13)
sam2104 Oct 16, 2024
33700fe
Added ApplyJobForm, enhanced UI
Doraemon012 Oct 17, 2024
65e1f66
just a commit for pull (#14)
CoDe-WiZaDd-18-DOTCOM Oct 17, 2024
b452064
Added forms in modals with role based access
Doraemon012 Oct 18, 2024
a3a88b5
Added role based access to add stats form
Doraemon012 Oct 18, 2024
acb0928
Added Pdf functionality in download cv page. (#15)
tushal-pethani Oct 23, 2024
ebc32c2
added placement schedule apis (#16)
CoDe-WiZaDd-18-DOTCOM Oct 23, 2024
3f130c4
added edit/delete buttons for tpo
Doraemon012 Nov 7, 2024
4763fc2
added form for next round
Doraemon012 Nov 7, 2024
7017c7d
added the modal form for editing the placement event - abhijayrawat
abhijayrawat Nov 13, 2024
294da0e
Integrated Apis of placement calender and cv generation, placement st…
CoDe-WiZaDd-18-DOTCOM Nov 13, 2024
6948dfc
fixed ui
Doraemon012 Nov 16, 2024
4b02b2c
Merge branch 'sa-4' of https://github.com/Doraemon012/Fusion-client i…
Doraemon012 Nov 16, 2024
5086fe2
ui fix
Doraemon012 Nov 16, 2024
a56d432
decreased padding in left and right direction (#21) - tushal-pethani
tushal-pethani Nov 17, 2024
f15b573
ui fixes, added mantine-react-table package
Doraemon012 Nov 17, 2024
f8a2cf1
fixed errors in calendar
Doraemon012 Nov 17, 2024
ec995ef
changed edit form,tabs,form title, fixed some errors in downloadcvfor…
sam2104 Nov 17, 2024
03c4423
fixed EditPlacementForm
Doraemon012 Nov 17, 2024
fde5357
Sa 4 (#23) - CoDe-WiZaDd-18-DOTCOM
CoDe-WiZaDd-18-DOTCOM Nov 17, 2024
a4988da
fix: fixed apply for placement
Doraemon012 Nov 18, 2024
9a5441d
migration to mantine-react-table: AppliedStudentDetails, PlacementRec…
Doraemon012 Nov 18, 2024
309ca08
feat: added notifications (toasts)
Doraemon012 Nov 18, 2024
54a2c78
fix: fixed formatting
Doraemon012 Nov 18, 2024
e88d35b
fix: fixed styling of datepicker, fixed issue with editplacementform
Doraemon012 Nov 19, 2024
5237863
"integrated remaining apis" (#25) - CoDe-WiZaDd-18-DOTCOM
CoDe-WiZaDd-18-DOTCOM Nov 19, 2024
1bb52fc
fix: ui, apply form, apply and view pages
Doraemon012 Nov 19, 2024
d79fdbc
fix: added button to add placement record
Doraemon012 Nov 19, 2024
44298f4
fix: fixed index.jsx
Doraemon012 Nov 19, 2024
8d41cf7
added delete record button
Doraemon012 Nov 20, 2024
ebfae0b
added some notifications, breadcrumbs
Doraemon012 Nov 20, 2024
85d8161
feat: delete placement stats
Doraemon012 Nov 20, 2024
6ca19d8
fix: student should not be able to see closed placement events
Doraemon012 Nov 20, 2024
d2cad41
added routes in a separate file
Doraemon012 Nov 20, 2024
fb162b1
front end enhancements
Doraemon012 Jan 6, 2025
da2d7b6
feat: Created ApplyForPlacementEvent Form
Doraemon012 Jan 13, 2025
9b513f2
Sa 4 (#30)
sam2104 Jan 13, 2025
b771fa3
feat: front end for debar functionality
Doraemon012 Jan 15, 2025
ee60a43
integrated debar apis
CoDe-WiZaDd-18-DOTCOM Jan 16, 2025
9b420e5
integrated debar apis (#31) - Jashwanth
CoDe-WiZaDd-18-DOTCOM Jan 16, 2025
66ebacc
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 17, 2025
e0f6345
Sa 4 (#34) Samhita
sam2104 Jan 21, 2025
1de04b8
Added Restrictions Tab and some fixes in the Debarred Tab
Doraemon012 Jan 21, 2025
53f3d15
Merge branch 'sa-4' of https://github.com/Doraemon012/Fusion-client i…
Doraemon012 Jan 21, 2025
6bd812d
fixes
Doraemon012 Jan 21, 2025
99ab9e6
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 21, 2025
bf54a61
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 21, 2025
8ebd4d4
done with apis of restriction and adding custom fields
CoDe-WiZaDd-18-DOTCOM Jan 24, 2025
0bc78dd
done with apis of restriction and adding custom fields (#35)
CoDe-WiZaDd-18-DOTCOM Jan 28, 2025
10872ab
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Jan 28, 2025
e72f99c
company registration
CoDe-WiZaDd-18-DOTCOM Feb 4, 2025
ef690b9
merge branch
CoDe-WiZaDd-18-DOTCOM Feb 4, 2025
c0a98f8
Merge branch 'sa-4' of https://github.com/CoDe-WiZaDd-18-DOTCOM/Fusio…
CoDe-WiZaDd-18-DOTCOM Feb 4, 2025
f316cc6
Company registration (#36)
CoDe-WiZaDd-18-DOTCOM Feb 11, 2025
ef6fc95
intergated notifications api
CoDe-WiZaDd-18-DOTCOM Feb 11, 2025
e0784ba
Merge branch 'sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Feb 11, 2025
d24f251
intergrated notification apis (#37)
CoDe-WiZaDd-18-DOTCOM Feb 11, 2025
5000e08
debar notification integrated
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
13c7f7f
Merge branch 'Doraemon012:sa-4' into sa-4
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
0d191a7
merge beanch
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
fa1621a
Merge branch 'sa-4' of https://github.com/CoDe-WiZaDd-18-DOTCOM/Fusio…
CoDe-WiZaDd-18-DOTCOM Feb 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
front end enhancements
Doraemon012 committed Jan 6, 2025
commit fb162b1883552f142ae1d604937cb30f61aafd01
Original file line number Diff line number Diff line change
@@ -298,14 +298,15 @@ function AddPlacementEventForm() {
Authorization: `Token ${token}`,
},
});
alert(response.data.message);
// alert(response.data.message);
// Notification for success
notifications.show({
title: "Event Added",
message: "Placement Event has been added successfully.",
color: "green",
position: "top-center",
});

} catch (error) {
const errorMessage = error.response?.data?.error || error.message;
notifications.show({
41 changes: 21 additions & 20 deletions src/Modules/PlacementCell/components/AppliedStudentDetails.jsx
Original file line number Diff line number Diff line change
@@ -179,7 +179,11 @@ import {
import axios from "axios";
import { MantineReactTable } from "mantine-react-table";
import { notifications } from "@mantine/notifications";
import { downloadExcelRoute, fetchApplicationsRoute, handleStatusChangeRoute } from "../../../routes/placementCellRoutes";
import {
downloadExcelRoute,
fetchApplicationsRoute,
handleStatusChangeRoute,
} from "../../../routes/placementCellRoutes";

function JobApplicationsTable() {
const [applications, setApplications] = useState([]);
@@ -194,12 +198,9 @@ function JobApplicationsTable() {
const token = localStorage.getItem("authToken");
try {
setLoading(true);
const response = await axios.get(
`${fetchApplicationsRoute}${jobId}/`,
{
headers: { Authorization: `Token ${token}` },
},
);
const response = await axios.get(`${fetchApplicationsRoute}${jobId}/`, {
headers: { Authorization: `Token ${token}` },
});
setApplications(response.data.students);
} catch (error) {
console.error("Error fetching applications:", error);
@@ -265,13 +266,10 @@ function JobApplicationsTable() {
const downloadExcel = async () => {
const token = localStorage.getItem("authToken");
try {
const response = await axios.get(
`${downloadExcelRoute}${jobId}/`,
{
headers: { Authorization: `Token ${token}` },
responseType: "blob",
},
);
const response = await axios.get(`${downloadExcelRoute}${jobId}/`, {
headers: { Authorization: `Token ${token}` },
responseType: "blob",
});
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement("a");
link.href = url;
@@ -349,17 +347,20 @@ function JobApplicationsTable() {

return (
<Container fluid>
<Card padding="md" radius="md" withBorder>
<Title order={3}>Student Job Applications</Title>
<div
<Container padding="md" fluid>
<Container
fluid
style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
marginBottom: "12px",
}}
my={36}
>
<Title order={3}>Student Job Applications</Title>

<Button onClick={downloadExcel}>Download Excel</Button>
</div>
</Container>

{applications.length > 0 ? (
<MantineReactTable
@@ -371,7 +372,7 @@ function JobApplicationsTable() {
) : (
<Alert color="yellow">No applications available</Alert>
)}
</Card>
</Container>
</Container>
);
}
11 changes: 7 additions & 4 deletions src/Modules/PlacementCell/components/CreateNextRoundForm.jsx
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ import {
Textarea,
Card,
Container,
Title,
} from "@mantine/core";
import { notifications } from "@mantine/notifications";
import { submitNextRoundDetailsRoute } from "../../../routes/placementCellRoutes";
@@ -91,14 +92,16 @@ function CreateNextRoundForm() {
};

return (
<Container>
<Container fluid style={{display:'flex', alignContent:'flex-end'}}>
<Button onClick={() => setModalOpened(true)}>Create Next Round</Button>
<Modal
opened={modalOpened}
onClose={() => setModalOpened(false)}
title="Add Next Round Details"
centered
>
<Card shadow="sm" padding="md" radius="md">
<Container d>

<Title order={3} mb={32}>Add next round details</Title>
<form
onSubmit={(e) => {
e.preventDefault();
@@ -157,7 +160,7 @@ function CreateNextRoundForm() {
Save Round Details
</Button>
</form>
</Card>
</Container>
</Modal>
</Container>
);
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// combine the table, also add the create next round form
import React from "react";
import JobApplicationsTable from "./AppliedStudentDetails";
import CreateNextRoundForm from "./CreateNextRoundForm";
2 changes: 2 additions & 0 deletions src/Modules/PlacementCell/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import "@mantine/notifications/styles.css";
import "@mantine/core/styles.css";
import "@mantine/dates/styles.css";
import "mantine-react-table/styles.css";

import React, { useState, useRef } from "react";
import { Tabs, Button, Container } from "@mantine/core";