mirror of
https://github.com/stablyai/orca.git
synced 2026-11-14 01:47:24 +00:00
* feat(plugins): Featured and Newly added rows in the plugin catalog Featured shows the most installed plugin per category; Newly added lists plugins by the catalog's new entry-level addedAt (hidden when no catalog dates entries), with a New badge for 24h and an Added this week filter. Snapshots move to a v3 cache key so older builds never read addedAt. * feat(plugins): derive Newly added dates from release dates, as the website does Drops the catalog-level addedAt field (schema, docs, v3 snapshot key). Main now estimates a listing date for each non-official plugin from its oldest dated release, and the Newly added row, New badge and This week filter read it through shared helpers that mirror orca-site's pluginNew.ts: 30-day window, newest first, dates more than an hour in the future ignored, "just now / N hours ago / N days ago". * feat(plugins): show nine Newly added plugins, drop the counts release dates inflate Listing dates come from each community plugin's oldest kept release, and catalogs keep only recent releases, so almost every plugin looks new: 181 of 182 fall in the 30-day window and 142 count as this week. Remove what that inflates rather than flag it: the "N this week" count and its See all, the This week filter, and the 24h New badge. The Newly added row now offers the website's nine in the catalog's normal wrapping grid, the same columns and card widths as the catalog groups. * fix(plugins): pick Featured winners by every kind a plugin belongs to Featured used only a plugin's first filter kind, while the category filters count every kind, so category order could change winners or drop a kind's only candidate. Each plugin, walked by installs with a key tie-break, now fills one unfilled kind it belongs to (the one with the fewest candidates left, then by name). Also note why Featured is a capped one-row teaser and pin the cap. * fix(plugins): hide Featured when Newly added is empty Without Newly added, Featured sat directly on the Official catalog, whose leading cards are the same popular plugins in the same columns, so back-to-back rows repeated and read as a render bug. Featured now shows only alongside Newly added. Leaving featured plugins out of their catalog instead would move a card into the catalog the moment it's installed and skew the catalog's N of M. Adds a PluginManager test that no plugin card shows twice in the empty state, and page-level fixtures (390, 600, 1440, empty 1440) for screenshots. * fix(plugins): cap Newly added at two full rows of the current columns At phone width nine stacked cards pushed the catalogs about 3.5 screens down. The grid now shows two full rows of its container-query column count (8 at four columns, 4 at two, 2 at one), hides a partial last row, and the pick renders at most eight. Hidden plugins stay listed in their catalog group, so there's no See all. * Correct plugin catalog fixture evidence * Make plugin highlight tests match observable behavior