Skip to content

Standardize error handling, improve validation, and refine UI behavior#3

Merged
BackGwa merged 4 commits intomainfrom
core/security
Jan 9, 2026
Merged

Standardize error handling, improve validation, and refine UI behavior#3
BackGwa merged 4 commits intomainfrom
core/security

Conversation

@BackGwa
Copy link
Owner

@BackGwa BackGwa commented Jan 9, 2026

This PR improves consistency and maintainability across the application.

Error handling has been standardized by centralizing messages into shared constants and unifying session end behavior. Password validation was enhanced with clearer length checks and user feedback, and related messages were updated accordingly.

The Hubot Sans font is now locally hosted to reduce external dependencies. UI behavior was also refined by applying a visible state to the controls overlay when the QR panel is shown.

Additionally, react-router-dom and Vite were upgraded to their latest major versions to keep dependencies up to date.

Refactored error messages across the application to use the ERROR_MESSAGES constant from config/constants.ts. This improves consistency and maintainability of error handling in LandingPage, mediaService, peerService, and usePasswordVerification.
Replaces external Hubot Sans font with locally hosted font files and updates styles to use them. Enhances password input validation with min/max length checks and user feedback, updating related constants and error messages. Also updates react-router-dom and vite dependencies to latest major versions.
Standardized error messages by adding SESSION_ENDED to constants and using it in ParticipantPage. Updated LandingPage to use ERROR_MESSAGES.UNABLE_TO_CONNECT for consistency. Improved navigation on session end to clear query parameters.
Appends 'controls-overlay--visible' class to the controls overlay div when the QR panel is displayed, enabling conditional styling based on QR panel visibility.
@BackGwa BackGwa merged commit 30f079e into main Jan 9, 2026
1 check passed
@BackGwa BackGwa deleted the core/security branch January 9, 2026 08:41
@BackGwa BackGwa added the enhancement New feature or request label Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant