Commit f6ad5c5
fix(feed): broaden window + dedupe auction lifecycle cards
Users reported feed showing only auction activity. Root causes:
1. Server filtered by timestamp_gt (30d). Gnars has quiet stretches
(weeks of auctions only, no votes/proposals). Old code quietly
bypassed the filter via a fallback when all three legacy subqueries
were empty; the unified feedEvents port lost that fallback.
2. Every Gnars auction emitted two cards (Created + Settled). Daily
auctions alone saturated PAGE_SIZE=20 before any governance event
could render.
3. UI default timeRange="30d" hid events just outside 30d.
Changes:
- feed-events.ts: drop timestamp_gt; rely on first:250 + desc sort.
- feed-events.ts: skip AuctionCreatedEvent when auction.settled is
true (the Settled card represents it already, or it was a no-bid
non-event). Live/unsettled auctions still surface.
- LiveFeedView: bump initial PAGE_SIZE 20 → 50 so governance activity
is not pushed past the fold by auction lifecycle spam.
- LiveFeedView: default timeRange "30d" → "all". hasActiveFilters now
compares against "all".
Verified on dev: /feed first page now shows 43 votes + 3 executed +
3 proposals + 1 propdate + 1 bid + 1 won auction + 1 live auction,
versus pre-fix 49 auction + 1 propdate.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 105194c commit f6ad5c5
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
151 | | - | |
152 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
393 | 401 | | |
394 | 402 | | |
395 | 403 | | |
396 | | - | |
| 404 | + | |
397 | 405 | | |
398 | 406 | | |
399 | 407 | | |
| |||
0 commit comments