Commit Graph
36 Commits
Author SHA1 Message Date
google-labs-jules[bot] 45b20bb58e refactor(ai): extract updateTorrentStatus from js/app.js (agent)
Moved torrent status update logic to `js/ui/torrentStatusController.js` to improve separation of concerns as per `AGENTS.md`. The controller accepts a `getVideoModal` accessor and an `onRemovePoster` callback to decouple it from direct `videoModal` or `Application` dependencies. Added unit tests in `tests/ui/torrentStatusController.test.mjs`.
2026-01-18 03:11:25 +00:00
thePR0M3TH3AN d2d55849b9 Add trusted moderation stats to profile modal 2026-01-16 09:55:10 -05:00
google-labs-jules[bot] 98e63e29e6 Expand tests for generic connection payloads and R2-specific mapping
This change adds comprehensive unit and integration tests to cover:
1. `signerKeyManager.js`: Verification of key derivation from signatures and passphrases.
2. `storageService.js`: Tests for saving, retrieving, and decrypting connections, specifically verifying that generic S3 payloads (endpoint, region, bucket) are preserved alongside R2 payloads.
3. `UploadModal.js`: Integration tests mocking the storage service to verify that R2 connection details correctly map to the UI input fields and that the "Unlock" flow updates the UI state.

It also introduces `fake-indexeddb` as a dev dependency to enable reliable testing of IndexedDB interactions in the Node/JSDOM test environment.
2026-01-16 12:07:17 +00:00
google-labs-jules[bot] 7428a6c99f docs: add detailed comments to webtorrent.js and fix test infrastructure
- Added comprehensive comments to `js/webtorrent.js` explaining the playback strategy, service worker integration, and browser-specific quirks (Brave/Firefox).
- Patched `tests/ui/helpers/jsdom-test-helpers.mjs` to expose `HTMLStyleElement` and other globals to JSDOM, fixing `ReferenceError` in UI tests.
- Fixed `tests/ui/similar-content-card.test.mjs` to align with the current component implementation (handling detached elements) and resolving environment issues.
- Updated `tests/video-modal-accessibility.test.mjs` to safely mock `navigator` and `HTMLCanvasElement.getContext`, resolving `TypeError` and "Not implemented" errors during testing.
2026-01-15 22:35:29 +00:00
google-labs-jules[bot] 4cd85b8096 Fix JSDOM reference error and assertion in popover tests
- Exposed `HTMLStyleElement` globally in `tests/ui/popoverEngine.test.mjs` to resolve a `ReferenceError` during `instanceof` checks.
- Updated assertion in "applies token-based sizing and arrow positioning" to check the `--popover-arrow-top` CSS variable instead of the `top` property, as JSDOM does not compute layout properties from variables.
- Verified all tests in the file pass.
2026-01-14 04:29:16 +00:00
thePR0M3TH3AN b48edbb055 Refactor inline styles to CSS rules 2026-01-13 21:13:32 -05:00
thePR0M3TH3AN 2d01711320 update 2025-11-03 19:04:52 -05:00
thePR0M3TH3AN aff9d11d25 Trim popular tag pills to container width 2025-10-30 16:44:02 -04:00
thePR0M3TH3AN f3f5d59a5d Fix sidebar upload button hydration 2025-10-27 16:23:49 -04:00
thePR0M3TH3AN 57a1587ab5 Sort video grid by original posted time 2025-10-26 12:11:53 -04:00
thePR0M3TH3AN ba6b56dc26 Switch moderation hide flows to block 2025-10-25 21:54:31 -04:00
thePR0M3TH3AN 3da281c197 Handle hashtag preference publishing from profile modal and menu 2025-10-25 18:48:15 -04:00
thePR0M3TH3AN 43d38d7f5d Align tag pills with badge sizing 2025-10-25 18:24:09 -04:00
thePR0M3TH3AN 8efc831af7 Align tag pill variants with preference states 2025-10-25 18:17:00 -04:00
thePR0M3TH3AN f4744cb921 Document hashtag preferences and extend tests 2025-10-25 17:48:37 -04:00
thePR0M3TH3AN 2b7097b5f2 Add tag preference menu and state handling 2025-10-25 17:25:46 -04:00
thePR0M3TH3AN 3b7fea6e7c test: cover SimilarContentCard behaviors 2025-10-24 22:07:33 -04:00
thePR0M3TH3AN 16b7472277 Merge pull request #872 from PR0M3TH3AN/codex/add-tests-for-similarcontentcard-component
Add SimilarContentCard UI unit tests
2025-10-24 21:45:46 -04:00
thePR0M3TH3AN 388cd1e631 Align profile modal moderation tests with dynamic defaults 2025-10-24 21:43:02 -04:00
thePR0M3TH3AN 665d7fd342 Enhance SimilarContentCard identity layout 2025-10-24 21:42:40 -04:00
thePR0M3TH3AN c575f48a81 Align moderation defaults with instance config 2025-10-24 21:36:10 -04:00
thePR0M3TH3AN ddad9c0f4f Add SimilarContentCard unit tests 2025-10-24 21:33:48 -04:00
thePR0M3TH3AN 06a1652674 Replace tag pill icon span with inline SVG plus 2025-10-23 15:18:04 -04:00
thePR0M3TH3AN 876020b90f Add popular tag strip support to recent videos 2025-10-23 15:13:05 -04:00
thePR0M3TH3AN 8527b06f4a Stabilize video modal zap popover behavior 2025-10-23 14:10:48 -04:00
thePR0M3TH3AN 336f8d4047 Add tag pill strip renderer helper 2025-10-23 11:29:55 -04:00
thePR0M3TH3AN 15b94cfff3 Adjust moderation defaults and store per-profile settings 2025-10-21 19:26:25 -04:00
thePR0M3TH3AN 49a0ccf2b7 Add trusted hide thresholds to moderation settings 2025-10-20 19:21:13 -04:00
thePR0M3TH3AN d977406386 Add configurable moderation thresholds in profile settings 2025-10-20 12:45:39 -04:00
thePR0M3TH3AN 767c7fba4b Refine popover tests to avoid inline style access 2025-10-20 10:49:27 -04:00
thePR0M3TH3AN 40224ad0f8 test: add alignment checks for popover panels 2025-10-16 17:05:04 -04:00
thePR0M3TH3AN 2b65a85335 Improve popover focus scroll restoration 2025-10-16 16:35:06 -04:00
thePR0M3TH3AN 581e99daf3 Preserve scroll position during popover focus 2025-10-16 16:29:33 -04:00
thePR0M3TH3AN ef14485eae Ensure popover state matches overlay styling 2025-10-16 16:00:12 -04:00
thePR0M3TH3AN 7c1f2280a9 Enhance popover accessibility and keyboard support 2025-10-16 13:23:28 -04:00
thePR0M3TH3AN 71ef952777 Add popover engine backed by Floating UI 2025-10-16 10:46:01 -04:00