fix: improve GPS enrollment and simplify Auth0 SSO

- Remove dashes from device identifiers for better compatibility
- Auto-enable consent on enrollment (HR handles consent at hiring)
- Remove consent checks from location queries and UI
- Simplify Traccar Admin to use Auth0 SSO directly
- Fix server URL to return base Traccar URL (app handles port)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 18:56:16 +01:00
parent 5ded039793
commit 5a22a4dd46
4 changed files with 19 additions and 47 deletions

View File

@@ -462,7 +462,6 @@ export function GpsTracking() {
<th className="px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase">Driver</th>
<th className="px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase">Device ID</th>
<th className="px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase">Status</th>
<th className="px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase">Consent</th>
<th className="px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase">Last Active</th>
<th className="px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase">Actions</th>
</tr>
@@ -484,13 +483,6 @@ export function GpsTracking() {
{device.isActive ? 'Active' : 'Inactive'}
</span>
</td>
<td className="px-4 py-3">
{device.consentGiven ? (
<CheckCircle className="h-5 w-5 text-green-600" />
) : (
<XCircle className="h-5 w-5 text-gray-400" />
)}
</td>
<td className="px-4 py-3 text-sm text-muted-foreground">
{device.lastActive ? formatDistanceToNow(new Date(device.lastActive), { addSuffix: true }) : 'Never'}
</td>

View File

@@ -83,7 +83,6 @@ export interface EnrollmentResponse {
success: boolean;
deviceIdentifier: string;
serverUrl: string;
port: number;
instructions: string;
signalMessageSent?: boolean;
}