Commit Graph
2617 Commits
Author SHA1 Message Date
thePR0M3TH3AN f7fa86682f Merge pull request #1080 from PR0M3TH3AN/remove-metadata-toggle-history-1300345743199644564
Remove metadata toggle from watch history pane
2026-01-05 14:08:58 -05:00
google-labs-jules[bot] 3096f02e40 Remove metadata toggle from watch history pane
Removed the metadata toggle UI and related logic from the watch history implementation.
- Updated `components/profile-modal.html` to remove the UI block.
- Cleaned up `js/ui/profileModalController.js` and `js/historyView.js` to drop metadata preference state and handlers.
- Updated `tests/watch-history.test.mjs` to remove obsolete test cases referencing `metadataPreference`.
2026-01-05 18:56:58 +00:00
thePR0M3TH3AN d43568dd03 Merge pull request #1079 from PR0M3TH3AN/simplify-watch-history-metadata-13037020337635795983
Simplify Watch History Metadata Handling
2026-01-05 12:03:20 -05:00
google-labs-jules[bot] 4c7230f540 Remove metadata storage and handling from watch history
Removes the metadata argument from `WatchHistoryService.publishView` and cleans up the associated caching and resolution logic in `watchHistory.js` and `watchHistoryFeed.js`. Deletes `js/watchHistoryMetadata.js` as it is no longer used.

This simplification ensures watch history strictly manages pointers and timestamps, leaving metadata resolution to higher-level consumers. It also reduces the payload size and complexity of persisted history records.

Tests have been updated to reflect the API changes.
2026-01-05 16:58:59 +00:00
thePR0M3TH3AN bb17ed86e3 Merge pull request #1078 from PR0M3TH3AN/update-watch-history-upsert-15220237728172576450
Refactor watch history service to use idempotent monthly upsert
2026-01-05 10:44:33 -05:00
google-labs-jules[bot] ac3873e5d7 Refactor watch history service to use idempotent monthly upsert logic.
Removes legacy snapshot/chunk retry scheduling in favor of a monthly upsert approach.
Updates state persistence to remove `pendingSnapshotId`.
Fixes race condition in `scheduleRepublishForQueue` by using selective queue pruning.
Ensures data is not lost on publish failure in `snapshot`.
Updates tests to align with new architecture.
2026-01-05 15:42:48 +00:00
thePR0M3TH3AN 463def17bd Merge pull request #1077 from PR0M3TH3AN/update-watch-history-plaintext-3969579951554816223
Refactor watch history to plaintext monthly buckets
2026-01-05 10:27:40 -05:00
google-labs-jules[bot] e9ba3f6681 Refactor watch history to use plaintext monthly buckets
- Update `js/nostrEventSchemas.js` to remove encryption tagging and update schema for `WATCH_HISTORY`.
- Update `js/nostr/watchHistory.js` to:
  - Bump storage version to 4.
  - Bucket items by `YYYY-MM`.
  - Publish plaintext JSON payloads with only event IDs and timestamps.
  - Remove encryption logic from publishing.
  - Update fetching to handle plaintext and fallback to legacy parsing.
- Update `js/watchHistoryService.js` to strip metadata from queued items and handle new snapshot response.
- Update `tests/watch-history.test.mjs` to reflect new plaintext behavior and disabled obsolete tests.
2026-01-05 15:26:31 +00:00
thePR0M3TH3AN 19a41892ed Merge pull request #1076 from PR0M3TH3AN/refactor-watch-history-schema-v3-17111495590354162850
Refactor Watch History to Single Monthly Schema
2026-01-05 09:54:04 -05:00
google-labs-jules[bot] 8293caf6d3 Refactor watch history to use simplified monthly record schema 2026-01-05 14:44:45 +00:00
thePR0M3TH3AN 25a3c53002 Merge pull request #1075 from PR0M3TH3AN/update-watch-history-tags-month-ids-12593711611362178428
Revise watch-history tags to use month IDs
2026-01-05 09:32:30 -05:00
google-labs-jules[bot] 498d9cb5b2 Revise watch-history tags to use month IDs
Refactors the watch-history system to prioritize `YYYY-MM` month identifiers over legacy snapshot IDs in event tags, storage keys, and cross-module references. Updates event schemas, storage keying (v3), and client interfaces to align with the new month-based structure. Renames `snapshotId` parameters to `taskId` for republishing operations.
2026-01-05 14:21:53 +00:00
thePR0M3TH3AN 50e2481e46 Merge pull request #1074 from PR0M3TH3AN/refactor-watch-history-monthly-buckets-5861179938557741617
Refactor Watch History to Monthly Buckets
2026-01-05 09:13:41 -05:00
google-labs-jules[bot] cc25635ce6 Refactor watch history to use monthly buckets (v3)
Refactors `js/nostr/watchHistory.js` to store and publish watch history items in monthly buckets (`YYYY-MM`) instead of using chunk splitting. Updates storage version to 3, migrates existing data, and simplifies fetch/merge logic to handle monthly records. Removes legacy chunk rebalancing code. Updates tests to verify monthly bucketing behavior.
2026-01-05 14:11:57 +00:00
thePR0M3TH3AN 1f940a06b4 Merge pull request #1073 from PR0M3TH3AN/watch-history-migration-monthly-4439173938950458575
Migrate watch history to monthly records
2026-01-05 08:47:52 -05:00
google-labs-jules[bot] 48d9ea60cb Refactor watch history to use monthly YYYY-MM records
- Updated `buildWatchHistoryPayload` to remove legacy `snapshotId` logic.
- Updated `publishSnapshot` to use `YYYY-MM` as the `d` tag identifier.
- Updated `fetch` logic to retrieve all history events (removing restrictive `#d` filter) to ensure complete history across months is loaded.
- Fixed a runtime error in `fetch` where `now` was undefined.
- Updated `js/nostrEventSchemas.js` to prioritize `monthIdentifier` for the `d` tag.
- Removed legacy `snapshot` field from payload serialization.
2026-01-05 03:41:30 +00:00
thePR0M3TH3AN 4c6eae2f14 Merge pull request #1072 from PR0M3TH3AN/refactor-watch-history-context-10244638915022032080
Refactor watch history context to month-centric fields
2026-01-04 22:29:18 -05:00
google-labs-jules[bot] a3c7536543 Refactor watch history to use month-centric context
- Rename `WATCH_HISTORY_CHUNK` schema to "Watch history monthly payload" in `js/nostrEventSchemas.js`.
- Update `js/nostr/watchHistory.js` to replace `snapshotId` with `recordId` and `monthIdentifier` in logging and error tracking context.
- Ensure `fetch` logic uses `recordId` and `month` in chunk decryption context for clarity.
- Fix indentation for added fields in logging objects.
2026-01-05 03:23:32 +00:00
thePR0M3TH3AN 79a983b3f4 Merge pull request #1071 from PR0M3TH3AN/update-watch-history-normalization-9579929584971128125
Update watch history normalization logic
2026-01-04 22:16:25 -05:00
google-labs-jules[bot] f2d0ce939a Update watch history normalization for monthly payload format
This change updates `normalizePointersFromPayload` to process both legacy `items` and new `events` arrays from the watch history payload. It also adds logic to merge `watchedAt` timestamps from a map, supporting the new monthly format. Additionally, `mergeWatchHistoryItemsWithFallback` is updated to rely on the unified `items` list and hydrate metadata from fallback items for all entries, ensuring robust handling of sparse event pointers.
2026-01-05 00:05:40 +00:00
thePR0M3TH3AN 4e8364764e Merge pull request #1070 from PR0M3TH3AN/refactor-watch-history-payload-v2-2612877448360263100
Refactor watch history to use monthly payload schema
2026-01-04 18:54:18 -05:00
google-labs-jules[bot] b79a8eb0d0 Refactor watch history to use monthly payload schema
* Redefine `parseWatchHistoryPayload` to support `month`, `events` (IDs), and `watchedAt` map.
* Update `mergeWatchHistoryItemsWithFallback` to merge new monthly fields with fallback items.
* Update `buildWatchHistoryPayload` to produce payloads with `events` instead of `items`.
* Update `WatchHistoryManager` to remove legacy chunk index handling.
* Ensure backward compatibility for legacy chunk payloads.
2026-01-04 22:15:27 +00:00
thePR0M3TH3AN 72f5a19cbb Merge pull request #1069 from PR0M3TH3AN/refactor-watch-history-single-event-16264182673393709707
Refactor watch history to single monthly event
2026-01-04 17:05:37 -05:00
google-labs-jules[bot] 595d4cbe07 Refactor watch history to use single monthly event
Replaces the legacy chunked storage architecture with a single encrypted event per month.
- Renames `buildWatchHistoryChunkEvent` to `buildWatchHistoryEvent`.
- Updates `WatchHistoryManager` to publish and fetch single events, maintaining read compatibility for legacy chunks.
- Simplifies payload construction and removes chunk indexing logic.
- Updates tests to verify single-event publishing and legacy fallback.
2026-01-04 22:03:34 +00:00
thePR0M3TH3AN ae949daee6 Merge pull request #1068 from PR0M3TH3AN/refactor-watch-history-single-payload-7716078754821307450
Refactor watch history to use single monthly payload event
2026-01-04 16:21:10 -05:00
google-labs-jules[bot] 34b835d4e1 Refactor watch history to use single monthly payload event
Replaces the chunked watch history implementation with a single monthly payload.
This simplifies the event structure and removes chunking logic while maintaining backward compatibility for reading legacy chunked events.
Updates `parseWatchHistoryPayload`, `buildWatchHistoryPayload`, `publishSnapshot` and `fetch` in `js/nostr/watchHistory.js`.
Updates tests to reflect the new single-event behavior.
2026-01-04 21:19:41 +00:00
thePR0M3TH3AN 849f0badd6 Merge pull request #1067 from PR0M3TH3AN/codex/remove-chunkwatchhistorypayloaditems-function
Refactor watch history payload building
2026-01-03 13:57:58 -05:00
thePR0M3TH3AN ba666bdaba Refactor watch history payload building 2026-01-03 13:57:46 -05:00
thePR0M3TH3AN b12dd4060b Merge pull request #1066 from PR0M3TH3AN/codex/update-nostreventschemas-with-month-identifiers
Switch watch history schemas to month identifiers
2026-01-03 13:42:40 -05:00
thePR0M3TH3AN 9b12cbcb6f Switch watch history schemas to month identifiers 2026-01-03 13:42:28 -05:00
thePR0M3TH3AN f3ca1de36c Merge pull request #1065 from PR0M3TH3AN/codex/rewrite-watch-history-section-for-monthly-records
Document monthly watch history records
2026-01-03 13:10:09 -05:00
thePR0M3TH3AN adef1fb05d Document monthly watch history records 2026-01-03 13:09:42 -05:00
thePR0M3TH3AN f9c9109c07 Merge pull request #1064 from PR0M3TH3AN/codex/update-history-page-for-event-id-tracking
Update watch history copy for event ID tracking
2026-01-03 09:40:29 -05:00
thePR0M3TH3AN 006f561302 Simplify watch history messaging 2026-01-03 09:40:15 -05:00
thePR0M3TH3AN b764e51f17 Merge pull request #1063 from PR0M3TH3AN/codex/remove-metadata-toggle-from-profile-modal
Remove watch history metadata caching UI
2026-01-03 09:37:02 -05:00
thePR0M3TH3AN 6d719b7b6d Remove watch history metadata caching controls 2026-01-03 09:33:43 -05:00
thePR0M3TH3AN 72f9df063d Merge pull request #1062 from PR0M3TH3AN/codex/remove-metadata-handling-from-watch-history
Remove watch history metadata caching
2026-01-03 09:16:29 -05:00
thePR0M3TH3AN e9ce494ccd Remove watch history metadata caching 2026-01-03 09:11:26 -05:00
thePR0M3TH3AN 7f244e7155 Merge pull request #1061 from PR0M3TH3AN/codex/optimize-cache-write-mechanism
Add batched IndexedDB caching for nostr events
2026-01-02 15:35:55 -05:00
thePR0M3TH3AN db27c7f56a Refactor nostr event cache persistence 2026-01-02 15:33:51 -05:00
thePR0M3TH3AN 8839aa3073 Merge pull request #1060 from PR0M3TH3AN/codex/update-subscribevideos-with-pagination-and-defaults
Add paging and limits to nostr video subscription
2026-01-02 15:24:21 -05:00
thePR0M3TH3AN ff07ed8e01 Add paging and limits to nostr video subscription 2026-01-02 14:11:41 -05:00
thePR0M3TH3AN 0302b3cde6 Merge pull request #1059 from PR0M3TH3AN/codex/update-logout-handler-to-refresh-comments
Reload modal comments on logout
2026-01-02 13:20:42 -05:00
thePR0M3TH3AN 62c0c344e0 Reload modal comments on logout 2026-01-02 13:10:05 -05:00
thePR0M3TH3AN f4ef1a474b Merge pull request #1058 from PR0M3TH3AN/codex/update-auth/logout-flow-for-activeprofilepubkey
Reset moderation settings on logout
2026-01-02 12:51:22 -05:00
thePR0M3TH3AN 34789d4752 Reset moderation settings on logout 2026-01-02 12:50:18 -05:00
thePR0M3TH3AN 329ac681d1 Merge pull request #1057 from PR0M3TH3AN/codex/ensure-bootstrap.js-awaits-admin-list-hydration
Ensure trusted seeds hydrate before app creation
2026-01-02 12:29:04 -05:00
thePR0M3TH3AN 40e8f436e6 Avoid trusted seed retry blocking app startup 2026-01-02 12:26:53 -05:00
thePR0M3TH3AN 9310929f0d Ensure trusted seeds hydrate before app creation 2026-01-02 12:18:57 -05:00
thePR0M3TH3AN 192df53959 Merge pull request #1056 from PR0M3TH3AN/codex/decouple-snapshot-rendering-for-comments
Render guest comment snapshots before auth gating
2026-01-02 11:38:46 -05:00