Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
NUS-Project-SaBai
FrontEnd
Repository navigation
Code
Issues
14
(14)
Pull requests
6
(6)
Actions
Projects
Security and quality
Insights
More
items
Alert dialog when leaving forms
- #206
#206
Open
derrikzzz
wants to merge 15 commits into
dev
NUS-Project-SaBai/FrontEnd:dev
from
alert-dialog-when-leaving-forms
NUS-Project-SaBai/FrontEnd:alert-dialog-when-leaving-forms
Copy head branch name to clipboard
Conversation
Commits
15
(15)
Checks
Files changed
Open
Alert dialog when leaving forms
#206
derrikzzz
wants to merge 15 commits into
dev
NUS-Project-SaBai/FrontEnd:dev
from
alert-dialog-when-leaving-forms
NUS-Project-SaBai/FrontEnd:alert-dialog-when-leaving-forms
Copy head branch name to clipboard
Commits
Commits on Dec 10, 2025
added custom hook of safeguardUnsavedChanges to use browser system native alert dialogs when leaving consultation form and vitals form
derrikzzz
committed
52aff07
View commit details
Copy full SHA for 52aff07
Browse repository at this point
fix array destructuring for useSaveOnWrite in VitalsForm
derrikzzz
committed
045df9e
View commit details
Copy full SHA for 045df9e
Browse repository at this point
removed debug logging in consultation form
derrikzzz
committed
a19960b
View commit details
Copy full SHA for a19960b
Browse repository at this point
Commits on Dec 11, 2025
use isSubmitSuccessful to gate unsaved changes guard in ConsultationForm
derrikzzz
committed
98b4692
View commit details
Copy full SHA for 98b4692
Browse repository at this point
Destructured isDirty and isSubmitSuccessful from formState in VitalForm and updated hook to check isDirty and !isSubmitSuccessful
derrikzzz
committed
2e8450a
View commit details
Copy full SHA for 2e8450a
Browse repository at this point
Merge branch 'dev' into alert-dialog-when-leaving-forms
derrikzzz
authored
c49858e
View commit details
Copy full SHA for c49858e
Browse repository at this point
remove formDetails from dependency array in ConsultationForm
derrikzzz
committed
1fe31a9
View commit details
Copy full SHA for 1fe31a9
Browse repository at this point
reset submit state when end-user starts editing again to re-enable guard for following submissions for consultations and vitals
derrikzzz
committed
8491946
View commit details
Copy full SHA for 8491946
Browse repository at this point
reset form fields on vitals
derrikzzz
committed
ee17a63
View commit details
Copy full SHA for ee17a63
Browse repository at this point
remove useEffect and move reset and clearLocalStorageData into submit handler callback
derrikzzz
committed
a955e58
View commit details
Copy full SHA for a955e58
Browse repository at this point
prevent immature early reset of consultation and vitals form
derrikzzz
committed
d1929da
View commit details
Copy full SHA for d1929da
Browse repository at this point
added try catch for handleSubmit in VitalsForm
derrikzzz
committed
987335e
View commit details
Copy full SHA for 987335e
Browse repository at this point
moved reset({}) and clearLocalStorageData() from sinide the try block to after it
derrikzzz
committed
13e2af8
View commit details
Copy full SHA for 13e2af8
Browse repository at this point
Add shouldDirty: false to setValue
derrikzzz
committed
9d96b84
View commit details
Copy full SHA for 9d96b84
Browse repository at this point
prevent RHFCustomSelect false dirty state
derrikzzz
committed
16f6667
View commit details
Copy full SHA for 16f6667
Browse repository at this point
You can’t perform that action at this time.