Skip to content

Groupe E - Sprint 1 API/UI Done#57

Merged
Charan-Nimmagadda merged 12 commits intomainfrom
groupe/final
Apr 9, 2025
Merged

Groupe E - Sprint 1 API/UI Done#57
Charan-Nimmagadda merged 12 commits intomainfrom
groupe/final

Conversation

@Nanvithaa
Copy link
Contributor

No description provided.

Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda left a comment

Choose a reason for hiding this comment

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

You haven't included the changes from the other teams. I cannot merge this PR

Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda left a comment

Choose a reason for hiding this comment

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

Can you please make the necessary changes to use the existing sign-in page instead of a new one? Also, could you share the dummy data you used for testing, so we can store it in the database and test on our side as well?

@HozenDev HozenDev changed the title Done with sprint 1 Groupe E - Sprint 1 API/UI Done Apr 9, 2025
Copy link
Collaborator

@Charan-Nimmagadda Charan-Nimmagadda left a comment

Choose a reason for hiding this comment

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

image
the table UI doesnt look good

@HozenDev
Copy link
Contributor

HozenDev commented Apr 9, 2025

I updated the UI with the current version we have.
supervisor_dashboard

sprint_1_dummy_test_data.txt
This is the new dummy test data if you want to test


const SupervisorDashboard = () => {
const [submissions, setSubmissions] = useState([]);
const url = "http://localhost:5001"
Copy link
Collaborator

Choose a reason for hiding this comment

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

replace with process.env.REACT_APP_API_URL

try {
const submission = await Submission.findByIdAndUpdate(
id,
{ supervisor_status: "approved_by_supervisor" },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we know it’s the status from the supervisor, let's set the value to Approved.

try {
const submission = await Submission.findByIdAndUpdate(
id,
{ supervisor_status: "rejected_by_supervisor" },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we know it’s the status from the supervisor, let's set the value to Rejected.

Copy link
Contributor

Choose a reason for hiding this comment

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

Updated.

@MRPHFitch
Copy link
Contributor

I have adjusted the requested code and pushed up to the repository.

@Charan-Nimmagadda Charan-Nimmagadda merged commit f7912b7 into main Apr 9, 2025
1 check passed
@HozenDev HozenDev deleted the groupe/final branch April 15, 2025 15:09
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.

4 participants