Skip to content

feat: Comprehensive 2026 Game Adaptation, PWA Modernization & i18n Support - #144

Open
dorukdogular wants to merge 5 commits into
PWNAGERobotics:mainfrom
dorukdogular:main
Open

feat: Comprehensive 2026 Game Adaptation, PWA Modernization & i18n Support#144
dorukdogular wants to merge 5 commits into
PWNAGERobotics:mainfrom
dorukdogular:main

Conversation

@dorukdogular

Copy link
Copy Markdown

Pull Request Description:

## Description
This PR introduces a major modernization of the ScoutingPASS application tailored for the 2026 FRC season. The updates focus on improving usability in loud, offline environments, modernizing the UI/UX, and introducing "smart scouting" capabilities to reduce the cognitive load on scouts.

### Key Features & Changes
* **PWA & Offline Reliability**: Implemented a Service Worker (`sw.js`) and `manifest.json`. The application is now installable as a standalone Progressive Web App (PWA) and works 100% offline with reliable caching.
* **Modern Responsive UI**: 
  * Replaced the rigid sequential swiping flow with a sticky bottom Navigation Bar for instant access to any phase (Auton, Teleop, etc.).
  * Extracted hardcoded inline styles into centralized CSS variables and implemented a sleek, built-in Dark Mode.
* **Smart Scouting Tools**:
  * **Offline Match Queue**: Completed matches are now securely saved to the browser's `localStorage` upon clearing the form.
  * **History Panel**: A new dedicated tab to view saved matches and seamlessly re-generate QR codes if a scanner fails.
  * **Haptic Feedback & Validation**: Added physical tap feedback via `navigator.vibrate` and robust validation to prevent generating incomplete data (e.g. missing Match or Team numbers).
* **Multi-Language (i18n) Engine**: Built a dynamic `translations.js` engine. Added out-of-the-box English and Turkish support for both static UI elements and dynamic configuration strings (e.g., "Fuel Scored" -> "Kazanılan Yakıt").

## Verification
- [x] Verified PWA offline installation and caching via browser DevTools.
- [x] Tested responsive Navigation Bar and Dark Mode styling on simulated mobile and tablet devices.
- [x] Confirmed Match History correctly saves to local storage and successfully re-renders QR codes on demand.
- [x] Verified real-time language switching correctly maps English and Turkish dictionaries without breaking configuration data.

**Note**: All changes have been modularized using clean Conventional Commits to ensure ease of review.

@dorukdogular
dorukdogular marked this pull request as ready for review May 21, 2026 09:21
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