Repository navigation
feat(auth,realtime): Google Authentication, Account Linking, and Real-time Live Synchronization - #171
Merged
Decuayer merged 5 commits intoSep 24, 2026
Conversation
…time live sync - Add GoogleId and GoogleEmail to User entity with unique constraint and EF Core migration - Implement GoogleRegisterCommand, GoogleLoginCommand, LinkGoogleAccountCommand and UnlinkGoogleAccountCommand - Add Google account linking and unlinking card in Web Panel profile settings - Integrate google_sign_in package with GoogleAuthService in Mobile (Login, Register and Profile) - Centralize SignalR hub connections across all authenticated Web pages and Mobile roles - Remove duplicate SignalR notification invocations from backend handlers - Add 3-second sliding window deduplication and interactive deep-linking to Web ToastService - Auto-refresh incidents on mobile and dispatch local emergency notifications on team dispatch without manual refresh Closes #SDDC-90
…and Docker web orchestration - Purged SonarScanner and Java dependencies from GitHub Actions - Introduced root .editorconfig and enforced Roslyn recommended analyzers - Integrated GitHub CodeQL SAST and Gitleaks secret scanning - Added dedicated CI pipelines for Blazor WASM and expanded Flutter Mobile CI - Created multi-stage Dockerfile and Nginx SPA routing for Blazor Web client - Updated Nginx ingress gateway with dual upstreams (api and web SPA) - Added JSON-file log rotation and resource limits to docker-compose
Owner
Author
📌 Summary of ChangesThis pull request completely removes SonarQube/SonarCloud dependencies and establishes a self-contained, enterprise-grade static analysis and CI/CD ecosystem alongside a modern multi-container Docker deployment architecture. 🛡️ Quality Gates & Security (SonarQube Replacement)
🚀 CI/CD Overhaul
🐳 Docker & Infrastructure Modernization
🧪 Verification Results
|
…umbnail_plus and stabilize AGP 8.7.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 Jira / Task Reference
[backend | mobile | web | database]📝 Summary of Changes
This pull request delivers Google Authentication & Account Linking across Mobile and Web, addresses duplicate notifications, and introduces full real-time synchronization so neither web operators nor mobile field users need to refresh pages:
1. Google Authentication & Account Linking
GoogleId(indexed) andGoogleEmailtoUserentity with migrationAddGoogleAccountLinkingToUser.POST /api/v1/auth/google-register(GoogleRegisterCommand) for onboarding new employees via Google.POST /api/v1/auth/google-login(GoogleLoginCommand) to resolve and auto-link by Google ID or corporate email.POST /api/v1/users/me/link-google&POST /api/v1/users/me/unlink-googlefor profile account linking.googleAuth.jswithinitLinkto support OAuth linking directly from settings.google_sign_in: ^6.2.2and created reusableGoogleAuthService.LoginView.RegisterView.GoogleAccountTilewith link/unlink actions and confirmation dialog onProfileView.2. Real-Time Live Sync (Zero-Refresh)
app.dartto initializeEmployeeTrackingHubServicefor bothRoleType.employeeandRoleType.team.NewIncident,IncidentUpdated,IncidentStatusChanged,TeamDispatched, andTeamLocationUpdatedreactive streams.EmployeeHomeViewnow automatically refreshes list onRapidIncidentSuccessand live SignalR events.TeamDashboardViewnow listens toonTeamDispatchedandonIncidentStatusChanged, immediately switching to the active task, triggering a high-priority local push notification, and refreshing unit state without manual swipe-to-refresh.MainLayout.razoracross all pages (/incidents,/teams,/users,/settings).Incidents.razor.csandTeams.razor.cs.3. Notification Deduplication & Deep Linking
SendAsyncinvocations in backend MediatR notification handlers (IncidentStatusChanged,IncidentUpdated,AssignmentCreated,TeamLocationUpdated).ToastService.cs./map?incidentId={id}&lat={lat}&lng={lng}and focuses the map on the incident coordinates.🏷️ Type of Change
AddGoogleAccountLinkingToUser)🧪 Testing & Verification
Automated Tests
dotnet test(202 / 202 passed)SocarDispatch.UnitTests: 16 passedSocarDispatch.Application.Tests: 169 passedSocarDispatch.Infrastructure.Tests: 17 passeddotnet build clients/web/SocarDispatch.Web/SocarDispatch.Web.csproj(0 errors, 0 warnings)flutter test(86 / 86 passed)flutter analyze(No issues found)Manual Test Steps
LoginView, verify Google status tile inProfileView./mapwith coordinate focus and pulse animation.📋 Pre-Merge Checklist
GoogleIdandGoogleEmailare nullable).In Review.