Fixed checkin and checkout functionality and dateTime in Readable format#365
Conversation
…ed them and fixed date readable format. See more
|
From your file changes, I noticed that you also updated the backend code, which is not appropriate within our current project setup. The frontend should integrate with the existing APIs instead of modifying the backend implementation, as backend changes may affect other team members’ work, create integration conflicts, and impact the overall system stability.
If you have any concerns or need backend changes, please reach out to the backend team leader first. check-in/check-out demo video To test this feature, you’ll need to combine PR #298 with the ShiftDetailsScreen.tsx file from main, since PR #298 is still in an open state. Steps: Check out PR #298 |
|
This pull request is for frontend team but contains changes to backend code |
|
Thanks for the feedback @TeddyScript101 and @uppalkrish , I have fixed this by creating a new frontend-only branch and PR: #402 Changes in the new PR:
Please review #402 instead of this closed PR. |

Summary
Fixed guard attendance check-in/check-out flow and added attendance history display in the guard app.
What changed
Attendance API integration
Updated guard app attendance integration to work with the latest backend attendance schema
Replaced old fields:
shiftId→shiftguardId→guardcheckInTime→clockIncheckOutTime→clockOutSynced frontend attendance state with backend attendance history API
Check-in / Check-out fixes
Attendance history UI
Added attendance history section in
ShiftDetailsModalDisplayed:
Attendance history only appears when attendance exists
Added readable date/time formatting for attendance records
Shift tabs updates
Location details
Added detailed location information in shift details:
Testing
Screenshots:


