agentlytics 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ui/src/App.jsx +5 -5
- package/ui/src/pages/RelayDashboard.jsx +460 -254
- package/ui/src/pages/RelayUserDetail.jsx +373 -109
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentlytics",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Comprehensive analytics dashboard for AI coding agents — Cursor, Windsurf, Claude Code, VS Code Copilot, Zed, Antigravity, OpenCode, Command Code",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/ui/src/App.jsx
CHANGED
|
@@ -46,16 +46,16 @@ export default function App() {
|
|
|
46
46
|
}, [mode, authed])
|
|
47
47
|
|
|
48
48
|
const refreshOverview = useCallback(() => {
|
|
49
|
-
fetchOverview().then(setOverview)
|
|
49
|
+
fetchOverview().then(setOverview).catch(() => {})
|
|
50
50
|
}, [])
|
|
51
51
|
|
|
52
52
|
useEffect(() => {
|
|
53
|
-
refreshOverview()
|
|
54
|
-
}, [])
|
|
53
|
+
if (mode === 'local') refreshOverview()
|
|
54
|
+
}, [mode])
|
|
55
55
|
|
|
56
56
|
// Live mode: refetch overview every 60s
|
|
57
57
|
useEffect(() => {
|
|
58
|
-
if (live) {
|
|
58
|
+
if (live && mode === 'local') {
|
|
59
59
|
liveRef.current = setInterval(() => {
|
|
60
60
|
refreshOverview()
|
|
61
61
|
}, 60000)
|
|
@@ -182,7 +182,7 @@ export default function App() {
|
|
|
182
182
|
</div>
|
|
183
183
|
)}
|
|
184
184
|
|
|
185
|
-
<main className=
|
|
185
|
+
<main className={isRelay ? 'px-0' : 'p-4 max-w-[1400px] mx-auto'}>
|
|
186
186
|
{mode === null ? (
|
|
187
187
|
<div className="text-sm py-12 text-center" style={{ color: 'var(--c-text2)' }}>loading...</div>
|
|
188
188
|
) : isRelay ? (
|