From faad243486666eb4cbefcd7ff813329e707106dd Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 7 Oct 2026 08:12:38 -0700 Subject: Feed tests: catch up with Articles, Popular as the default feed, timed feed defs and the tint that fades on sight - feed-media-views: the mode switch has an Articles button now - feed-media-cache: the live watch's since-only subscription isn't part of the crawl - feed-switch-seed: seeded feeds carry their edit time (the feeds sync merge drops one without) - feed-editor-relays: nos.lol is a local stand-in relay, so the test doesn't depend on reaching it - feed-streaming: the stub wallet opens on Following (no remembered feed = Popular); the held picture answers repeat fetches once released; the new-post tint is recorded as it paints (it fades on sight) Co-Authored-By: Claude Opus 5.5 --- tools/feed-switch-seed-test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/feed-switch-seed-test.js') diff --git a/tools/feed-switch-seed-test.js b/tools/feed-switch-seed-test.js index e747744..1bad161 100644 --- a/tools/feed-switch-seed-test.js +++ b/tools/feed-switch-seed-test.js @@ -81,8 +81,9 @@ try { localStorage.setItem(k + ':feedNotes', JSON.stringify(ns)); localStorage.setItem(k + ':profiles', JSON.stringify({ [a]: { name: 'Alice', t }, [b]: { name: 'Bob', t } })); const s = JSON.parse(localStorage.getItem(k + ':messages') || '{}'); - s.feeds = [{ id: 'bob', name: 'Bobfeed', follows: false, authors: [b], topics: [], packs: [] }, - { id: 'btc', name: 'Btcfeed', follows: false, authors: [], topics: ['bitcoin'], packs: [] }]; + // (a feed carries its edit time, as the editor writes it: the feeds sync merge drops one without) + s.feeds = [{ id: 'bob', name: 'Bobfeed', follows: false, authors: [b], topics: [], packs: [], at: t }, + { id: 'btc', name: 'Btcfeed', follows: false, authors: [], topics: ['bitcoin'], packs: [], at: t }]; localStorage.setItem(k + ':messages', JSON.stringify(s)); localStorage.setItem('btc-wallet-feed:' + k, 'following'); // this wallet's last feed }, [base, PK_A, PK_B, alice]); -- cgit v1.2.3