{"record":{"id":"c910275095b97a41","repo":"diegosouzapw/OmniRoute","slug":"description","errorCode":null,"errorMessage":"description","messagePattern":"description","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/activity/ActivityFeedClient.tsx","lineNumber":29,"sourceCode":"export default function ActivityFeedClient() {\n  const t = useTranslations(\"activity\");\n  const [allEntries, setAllEntries] = useState<AuditLogEntry[]>([]);\n  const [loading, setLoading] = useState(true);\n  const [error, setError] = useState<string | null>(null);\n  const [category, setCategory] = useState<EventCategory>(\"all\");\n  const referenceNowMs = useRef<number>(Date.now());\n\n  const fetchEntries = useCallback(async () => {\n    setLoading(true);\n    setError(null);\n    try {\n      const params = new URLSearchParams({\n        level: \"high\",\n        limit: String(FEED_LIMIT),\n      });\n      const res = await fetch(`/api/compliance/audit-log?${params.toString()}`);\n      if (!res.ok) {\n        throw new Error(t(\"description\"));\n      }\n      const data = (await res.json()) as AuditLogEntry[];\n      // Reset reference time on fresh load so relative timestamps are stable\n      referenceNowMs.current = Date.now();\n      setAllEntries(Array.isArray(data) ? data : []);\n    } catch (err: unknown) {\n      const msg = err instanceof Error ? err.message : t(\"fetchFailed\");\n      setError(msg);\n    } finally {\n      setLoading(false);\n    }\n  }, [t]);\n\n  useEffect(() => {\n    fetchEntries();\n  }, [fetchEntries]);\n\n  const filtered =","sourceCodeStart":11,"sourceCodeEnd":47,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/activity/ActivityFeedClient.tsx#L11-L47","documentation":"Error \"description\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/activity/ActivityFeedClient.tsx:29 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}