Skip to content

Implement one-tap SOS emergency button for guards#368

Open
SanjayaGrg wants to merge 1 commit into
mainfrom
SanjayaGrg/feature/Emergency-panic-button-SOS
Open

Implement one-tap SOS emergency button for guards#368
SanjayaGrg wants to merge 1 commit into
mainfrom
SanjayaGrg/feature/Emergency-panic-button-SOS

Conversation

@SanjayaGrg
Copy link
Copy Markdown
Collaborator

Summary

Implemented the one-tap SOS emergency feature for guards in the SecureShift guard app.

What changed

  • Added emergency-style SOS UI with red button, warning icon, and SOS label.
  • Added SOS confirmation bottom sheet to reduce accidental emergency triggers.
  • Implemented “Slide to send SOS” interaction.
  • Fixed slider behavior so incomplete swipes return back to the start.
  • Added navigation from SOS confirmation flow to the new Active SOS screen.
  • Integrated local SOS testing flow using mock SOS logic.
  • Added guard profile details from /users/me into local SOS console data.
  • Logged SOS event data locally with guard details, location, timestamp, and emergency contact information.
  • Kept SOS testing local only for now and did not trigger any real government/emergency service.

Testing

  • Ran Prettier formatting check successfully.
  • Ran lint and confirmed no blocking SOS implementation issues except existing project-wide warnings.
  • Tested SOS button opening the confirmation sheet.
  • Tested slide-to-send interaction.
  • Tested navigation to Active SOS screen.
  • Tested local SOS data console logging.

Notes

This implementation is currently local/mock-based for safety. Real backend supervisor dashboard integration can be connected later once backend SOS endpoints and dashboard alert handling are ready.

Screenshots

image image image image

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.

1 participant