feat(frontend): log a pool view when the pool page opens

Fire POST /pools/{id}/views fire-and-forget after the pool loads, the
same way the file viewer logs file views.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 23:20:46 +03:00
parent d345839634
commit 4def59c86d
@@ -86,6 +86,9 @@
notes = p.notes ?? '';
isPublic = p.is_public ?? false;
loaded = true;
// Log the view (activity.pool_views). Fire-and-forget — never block or
// fail the page over view tracking.
void api.post(`/pools/${id}/views`).catch(() => {});
})
.catch((e) => {
loadError = e instanceof ApiError ? e.message : 'Failed to load pool';