experiments in a post-browser web
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(page): use trackNavigation for URL visit recording

The URL/History unification added trackNavigation() but page.js was
still using the old addAddress+addVisit which writes to legacy tables.
History command queries the items table, so visits weren't showing up.

+4 -4
+4 -4
app/page/page.js
··· 244 244 updateState(); 245 245 246 246 try { 247 - const addressResult = await api.datastore.addAddress(e.url, {}); 248 - if (addressResult.success && addressResult.data?.id) { 249 - await api.datastore.addVisit(addressResult.data.id, {}); 250 - } 247 + await api.datastore.trackNavigation(e.url, { 248 + source: 'page', 249 + windowType: 'main' 250 + }); 251 251 } catch (err) { 252 252 console.error('[page] Failed to record visit:', err); 253 253 }