48 Commits
Author SHA1 Message Date
thePR0M3TH3ANandClaude Fable 5 8dfd2034b0 feeds: "Most Zapped" sidebar tab ranked by zap totals (#47)
Trending-pattern clone ranked by sats from kind-9735 receipts:

- js/zapTotals.js: per-pointer receipt aggregation. The feed's metric getter
  returns the cached total and schedules a batched fetch (#a/#e chunks via
  the L1 SubscriptionManager) for unknown/stale pointers; amounts parse via
  nip57 bolt11 with the zap request's amount tag as fallback; receipts are
  deduped by id so re-fetches never double-count; zero-receipt answers are
  cached (2-min TTL).
- sorters.js: shared count-ranked sorter (metric desc, recency tie-break,
  author spread, trusted-muted sink); Trending delegates unchanged, Most
  Zapped ranks on runtime.getZapTotal.
- Full wiring: feed definition, view + info popover, change-signal re-rank
  (order settles as receipts stream in), sidebar link, viewManager registry,
  feedCoordinator case/loader, FEED_TYPES.MOST_ZAPPED, and a
  FEATURE_MOST_ZAPPED_FEED flag (default on; off hides the tab).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-03 21:38:53 -04:00
thePR0M3TH3ANandClaude Opus 4.8 04621efc52 feed: stop the grid re-sorting ranked feeds chronologically; Trending defaults
The real reason every tab looked identical: VideoListView.render re-sorts
displayVideos by date UNLESS metadata.preserveOrder is set, and only Explore set
it. So For You's tiering, Trending's view-count ranking, and Kids' scoring were
all discarded at render and shown in plain chronological order — i.e. the #21
feed-identity work was invisible. Set preserveOrder for For You, Trending, and
Kids so their feed-engine order survives to the grid.

Also per request:
- Sidebar: Trending now sits above Recently Added.
- Default homepage: logged-out users land on Trending (gated by
  FEATURE_TRENDING_FEED, falls back to Recent); logged-in stays For You. The
  logout-from-For-You redirect follows the same rule.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-24 13:13:45 -04:00
thePR0M3TH3ANandClaude Opus 4.8 02854d4fb5 feed: add Trending tab — recently-added ranked by view count (#27)
New FEED_TYPES.TRENDING tab: the active (recently-added) source ranked by view
count (recency tiebreak, trusted-muted last), gated by FEATURE_TRENDING_FEED
(default on). Builds on the now-trustworthy view counts (#4).

- createTrendingSorter reads counts from runtime.getViewCount, which resolves
  each video's pointer via the app's canonical deriveVideoPointerInfo against the
  shared viewCounter cache (new getVideoViewCountSnapshot export) — the same
  counts the grid cards already load.
- Live re-rank: viewCounter now emits a coalesced onViewCountsChanged signal;
  while the Trending view is active it debounce-re-runs the feed (cheap re-rank
  over the in-memory active set, no relay re-fetch), so the order settles into
  true trending as counts stream in. Cold cache reads as recency, then improves.
- Pipeline extracted to js/feedEngine/trendingFeed.js (feedCoordinator is at its
  size cap; bumped the cap for the thin load/refresh delegations).
- Wiring: FEED_TYPES + flag, feedCoordinator cases, app.js wrappers,
  applicationBootstrap registration (hides the sidebar link when flag off),
  viewManager init + js/trendingView.js, views/trending.html, sidebar link.

Tests: tests/trending-sorter.test.mjs.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-24 13:06:34 -04:00
thePR0M3TH3ANandClaude Opus 4.8 96302a59f3 chore: remove dev Agent Dashboard sidebar link + view constant
Follow-up to c79120ba (which only captured the file deletion): removes the
sidebar nav link and the unused DEV_DASHBOARD view constant. No dangling refs.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-16 20:36:27 -04:00
google-labs-jules[bot]andPR0M3TH3AN 30bd4a75f6 feat: integrate TORCH agent dashboard into UI sidebar
- Add "Dev Tools" button to the sidebar footer menu.
- Configure `js/constants.js` with `DEV_DASHBOARD` view type.
- Refactor `views/dev/agent-dashboard.html` to be compatible with `loadView` (moved styles to body, updated links).
- Add cleanup logic to dashboard script to prevent memory leaks when navigating away.
- Fix duplicate import in `js/nostr/reactionEvents.js`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-13 23:50:42 +00:00
google-labs-jules[bot]andPR0M3TH3AN cfd7c49a9d Refactor docs navigation and clean up legacy views
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 16:32:01 +00:00
thePR0M3TH3AN 7087c4aab8 Add docs link to sidebar footer 2026-01-26 23:23:14 -05:00
google-labs-jules[bot] 559aed3a5d fix: Update "For Kids" sidebar icon to inline SVG 2026-01-23 07:56:52 +00:00
google-labs-jules[bot] 986e4ef497 ui: move Kids link below Recently Added and add tags to Kids page 2026-01-23 07:40:44 +00:00
thePR0M3TH3AN 33cc5d23c7 Add kids feed view 2026-01-23 02:09:08 -05:00
google-labs-jules[bot] 113a8324c4 Hide Explore link for logged-out users 2026-01-22 03:32:36 +00:00
thePR0M3TH3AN 6af12b3160 Merge pull request #1358 from PR0M3TH3AN/sidebar-reorder-subscriptions-history-9128078694631783696
Move Subscriptions sidebar icon above Watch History
2026-01-18 21:27:21 -05:00
google-labs-jules[bot] 405405d3c6 Move Subscriptions sidebar icon above Watch History
- Moved the Subscriptions link block above the Watch History link block in `components/sidebar.html`.
- Verified hydration logic with `tests/app/hydrate-sidebar-navigation.test.mjs`.
- Visually verified the order using a frontend verification script.
2026-01-19 02:26:50 +00:00
google-labs-jules[bot] 68bdd590a6 Remove IPNS support and related content
Deleted IPNS view, content, and asset files. Removed references to IPNS from the README, sidebar, and documentation pages. This feature is no longer supported for hosting.
2026-01-19 02:13:59 +00:00
thePR0M3TH3AN 7b172d9e08 Add recently added sidebar link 2026-01-18 20:02:32 -05:00
thePR0M3TH3AN dfc0a3938d Rename recent icon to for-you feed 2026-01-18 14:10:40 -05:00
thePR0M3TH3AN a846da13c0 Add for-you view wiring 2026-01-18 13:42:00 -05:00
google-labs-jules[bot] dc6daa07f7 Add "Upload Content" guide, sidebar link, and improved modal button
- Create `assets/svg/upload-content-icon.svg`
- Create `content/upload-content.md` with Cloudflare R2 setup instructions
- Create `views/upload-content.html` to render the guide
- Add "Upload Content" link to `components/sidebar.html`
- Add styled "Learn How" button to `components/upload-modal.html` in the R2 credentials section
2026-01-09 03:39:05 +00:00
thePR0M3TH3AN 243b768be7 Add Tip Jar link to sidebar more menu 2025-10-27 18:02:32 -04:00
thePR0M3TH3AN 7065075c8b Make sidebar external links configurable 2025-10-18 15:53:01 -04:00
thePR0M3TH3AN f755349e13 Make sidebar blog and community links configurable 2025-10-18 15:36:59 -04:00
thePR0M3TH3AN 8c568af46a Remove local blog view in favor of configurable external link 2025-10-18 15:28:33 -04:00
thePR0M3TH3AN 3f1238b5a9 Remove legacy CSS and enable design system by default 2025-10-12 06:58:50 -04:00
thePR0M3TH3AN 8265f9e2de Add design system feature flag and runtime integration 2025-10-11 16:11:43 -04:00
thePR0M3TH3AN 8ad39b5cf6 Default sidebar to collapsed state by default 2025-10-06 20:06:43 -04:00
thePR0M3TH3AN b3b467755a Stabilize collapsed sidebar rail 2025-10-06 19:57:16 -04:00
thePR0M3TH3AN 2bafecfb50 Refine sidebar collapse interactions 2025-10-06 17:08:35 -04:00
thePR0M3TH3AN 4d97493003 Polish desktop sidebar collapse visuals 2025-10-06 15:46:17 -04:00
thePR0M3TH3AN bffd98247e Refine desktop sidebar collapse experience 2025-10-06 15:29:29 -04:00
thePR0M3TH3AN a453ead95e Fix desktop sidebar toggle visibility 2025-10-06 15:08:32 -04:00
thePR0M3TH3AN 9a9dcb239f Refine desktop sidebar collapse styling 2025-10-06 14:42:41 -04:00
thePR0M3TH3AN 8981f1cb6a Improve desktop sidebar collapse behavior 2025-10-06 14:14:44 -04:00
thePR0M3TH3AN 19f62d545d Add desktop collapse toggle to sidebar 2025-10-06 12:57:40 -04:00
thePR0M3TH3AN ab607dc7b8 Add watch history view 2025-09-30 10:36:41 -04:00
thePR0M3TH3AN 96c9707113 Document fade-in safeguards 2025-09-25 16:30:12 -04:00
thePR0M3TH3AN b7ebed9843 Merge branch 'unstable' into codex/add-mobile-friendly-toggle-menu-for-sidebar 2025-09-25 14:09:45 -04:00
thePR0M3TH3AN 237724b8ac Restore sidebar footer toggle 2025-09-25 14:07:36 -04:00
thePR0M3TH3AN 4cbcfcfbf4 Add drop-up resources menu to sidebar 2025-09-25 13:58:06 -04:00
Keep Creating Online 964d42403d updated sidebar icon 2025-02-09 16:05:15 -05:00
thePR0M3TH3AN 79cfc76c09 updated sidebar 2025-02-09 15:53:14 -05:00
Keep Creating Online 4fc4897677 updated sidebar 2025-02-07 12:53:15 -05:00
Keep Creating Online 95ced7007e updated sidebar 2025-02-07 12:27:30 -05:00
Keep Creating Online fee085f8d0 added blog 2025-02-07 10:23:42 -05:00
Keep Creating Online cf23a4b685 updated sidebar and made a links page 2025-02-06 17:07:37 -05:00
Keep Creating Online 7e661ba0fd added better markdown view pages and enabled subscription button to know when your logged in 2025-02-06 15:15:29 -05:00
Keep Creating Online 6f05fd8ca3 fixed issue with sidebar not loading profile info on view switch and updated sidebar styling 2025-02-05 22:29:28 -05:00
Keep Creating Online 22ab53d338 updated footer and icons to use sidebar 2025-02-05 20:41:25 -05:00
Keep Creating Online b6b61e4e15 updated directory structure to fix root Service Worker issues and performance improvements 2025-02-05 16:54:40 -05:00