tasks.md 1.99 KB

1. Analytics Foundation

  • 1.1 Add failing tests for analytics API wrappers covering page view and custom event request bodies.
  • 1.2 Implement analytics API wrappers using the existing apiClient.
  • 1.3 Add failing tests for tracking utilities covering anonymous session_id, device_type, once-per-load behavior, and silent failure.
  • 1.4 Implement tracking utilities or hooks for page views and custom events.

2. Agent Management Tracking

  • 2.1 Add failing page behavior tests for Agent list page view, create Agent click, status change, and search/filter events.
  • 2.2 Wire Agent list page tracking after successful load and successful or accepted user actions.
  • 2.3 Add failing page behavior tests for Agent detail page view and Agent save success events.
  • 2.4 Wire Agent detail drawer and Agent editor save tracking.

3. Skill And Position Tag Tracking

  • 3.1 Add failing page behavior tests for Skill directory page view and Skill detail click events.
  • 3.2 Wire Skill directory tracking.
  • 3.3 Add failing page behavior tests for position tag list page view, create click, save success, and delete confirmation events.
  • 3.4 Wire position tag list and editor tracking.

4. Standalone Page View Tracking

  • 4.1 Add failing page behavior tests for channel code list page view tracking.
  • 4.2 Add failing page behavior tests for methodology display configuration page view tracking.
  • 4.3 Add failing page behavior tests for official site job tab and Agent display configuration page view tracking.
  • 4.4 Wire standalone page view tracking without adding custom events to those pages.

5. Verification

  • 5.1 Run openspec validate web-agent-management-analytics-tracking --strict.
  • 5.2 Run focused web tests for analytics API, tracking utilities, and affected pages.
  • 5.3 Run npm run typecheck.
  • 5.4 Run npm run build.
  • 5.5 Perform browser verification for affected web admin pages and key tracking interactions.