bytelyst-devops-tools/dashboard/web/src/lib/telemetry.ts
root b35de88b08 feat(devops-web): fix responsive layout and add comprehensive dashboard pages
- Fix sidebar layout: use flexbox instead of margin-left approach
- Update sidebar to use responsive display (hidden on mobile, static on desktop)
- Fix mobile overlay z-index and positioning issues
- Add proper flex container structure to all pages
- Add new dashboard pages: health, metrics, system, env, code-quality, settings/cosmos
- Add comprehensive API client and type definitions
- Add error boundary and log viewer components
- Add test infrastructure with Vitest and Playwright
- Add Docker configuration and deployment scripts

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-11 03:10:31 +00:00

40 lines
1.1 KiB
TypeScript

/**
* Client-side self-telemetry for the DevOps dashboard.
* Delegates to @bytelyst/telemetry-client shared package.
* Sends to platform-service via /api/telemetry/admin-ingest proxy.
* Privacy: No PII. Only page paths, action names, and timing metrics.
*
* NOTE: Telemetry is disabled for now until @bytelyst/telemetry-client is available
*/
export interface TelemetryEvent {
action: string;
category?: string;
properties?: Record<string, string | number | boolean>;
metrics?: Record<string, number>;
}
export function trackEvent(event: TelemetryEvent): void {
// No-op - telemetry disabled
}
export function trackPageView(path: string): void {
// No-op - telemetry disabled
}
export function trackDeployment(serviceId: string, action: 'trigger' | 'success' | 'failed'): void {
// No-op - telemetry disabled
}
export function trackHealthCheck(serviceId: string, status: 'up' | 'down' | 'degraded'): void {
// No-op - telemetry disabled
}
export function trackUserAction(action: string, properties?: Record<string, string>): void {
// No-op - telemetry disabled
}
export function initTelemetry(): void {
// No-op - telemetry disabled
}