Commit Graph
4102 Commits
Author SHA1 Message Date
thePR0M3TH3AN 759c9bc2cd Merge pull request #1797 from PR0M3TH3AN/telemetry-aggregation-privacy-2456468691969692999
Refactor telemetry aggregator for dynamic log collection and privacy
2026-01-27 08:09:29 -05:00
thePR0M3TH3AN 1068174f32 Merge pull request #1796 from PR0M3TH3AN/ai/schema-validate-20250221-17497090860442552154
chore(ai): event schema validation tool + fixes
2026-01-27 08:09:07 -05:00
google-labs-jules[bot]andPR0M3TH3AN e681a70e95 Refactor telemetry aggregator to dynamically collect logs and verify PII redaction
- Updated `scripts/agent/telemetry-aggregator.mjs` to dynamically search for `test_unit*.log` and `test_output.log` files in both the root and `artifacts/` directories, instead of using a hardcoded list.
- Verified the aggregator script with a test log containing PII (email, IP, hex key) to ensure sensitive information is correctly redacted in the generated reports.
- Confirmed that the script operates only when `ENABLE_TELEMETRY=true` is set.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 06:37:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN f5233a93f3 chore(ai): event schema validation tool + fixes
- Created `scripts/agent/validate-events.mjs` to validate event builders against schemas.
- Refactored `buildVideoPostEvent` in `js/nostrEventSchemas.js` to automatically generate the required `s` (storage pointer) tag if missing, using `infoHash`, `url`, or `videoRootId`.
- Verified that `js/utils/storagePointer.js` exists and is imported correctly.
- Updated `docs/nostr-event-schemas.md` to reflect the auto-generation behavior.
- Verified fixes with `scripts/agent/validate-events.mjs` and existing unit tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 05:47:05 +00:00
thePR0M3TH3AN 0d70cbbcfc Merge pull request #1795 from PR0M3TH3AN/fix-test-timeout-moderation-7891248155370261927
fix(test): prevent moderation service timer hang in unit tests
2026-01-26 23:32:21 -05:00
google-labs-jules[bot]andPR0M3TH3AN b683c9bcfd fix(test): stub moderation timers in access control test to prevent hang
The `tests/nostr-service-access-control.test.mjs` test was timing out because the `ModerationService` singleton (used internally by `NostrService`) started a background timer via `scheduleTrustedMuteSubscriptionRefresh` (triggered by `setViewerPubkey`).

This timer (2000ms) kept the test process alive, causing the test runner to hang until it timed out (10s+).

This commit stubs `moderationService.scheduleTrustedMuteSubscriptionRefresh` and `moderationService.refreshTrustedMuteSubscriptions` in the test file to prevent any background timers or network activity from starting during these unit tests. This ensures the test suite completes immediately and successfully.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 04:32:00 +00:00
thePR0M3TH3AN 485262ac6b Merge pull request #1794 from PR0M3TH3AN/codex/add-toc.json-for-hierarchical-docs-structure
Add docs table of contents (content/docs/toc.json)
2026-01-26 23:30:04 -05:00
thePR0M3TH3AN 3813725438 Add docs table of contents 2026-01-26 23:29:52 -05:00
thePR0M3TH3AN 65a07bffa6 Merge pull request #1793 from PR0M3TH3AN/codex/create-docs.html-with-two-column-layout
Add docs view layout
2026-01-26 23:27:28 -05:00
thePR0M3TH3AN 44c9df033c Add docs view layout 2026-01-26 23:27:16 -05:00
thePR0M3TH3AN b77e2376c9 Merge pull request #1792 from PR0M3TH3AN/codex/add-submenu-entry-to-sidebar
Add Docs link to sidebar footer menu
2026-01-26 23:23:26 -05:00
thePR0M3TH3AN 7087c4aab8 Add docs link to sidebar footer 2026-01-26 23:23:14 -05:00
thePR0M3TH3AN fcd3def539 Merge pull request #1790 from PR0M3TH3AN/fix-video-modal-tags-test-729427798097097812
Fix VideoModal tag unit test expectations
2026-01-26 22:57:01 -05:00
google-labs-jules[bot]andPR0M3TH3AN 6d348e610d test: update VideoModal tag expectations to include hash prefix
VideoModal now normalizes tags by prepending a `#` character if missing.
This commit updates `tests/video-modal-controllers.test.mjs` to expect
tags with the `#` prefix in assertions and the mock
`TagPreferenceStateResolver`.

Fixes: `VideoModal trims tag strip to fit modal width` assertion failure.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:54:41 +00:00
thePR0M3TH3AN c8a59861c7 Merge pull request #1789 from PR0M3TH3AN/fix/link-preview-tests-11263942113419877122
Fix LinkPreviewService test isolation and cleanup
2026-01-26 22:50:29 -05:00
google-labs-jules[bot]andPR0M3TH3AN c064ecb548 fix: improve LinkPreviewService test isolation and mock cleanup
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:49:59 +00:00
thePR0M3TH3AN d7a5e4fe67 Merge pull request #1788 from PR0M3TH3AN/fix-ci-failures-popover-and-tags-11428382662993013885
Fix CI failures: popover window reference, tag formatting, and canvas mock
2026-01-26 22:48:43 -05:00
google-labs-jules[bot]andPR0M3TH3AN d81643b423 Fix CI failures in popover engine, tag trimming, and canvas mock
- Guard `js/ui/overlay/popoverEngine.js` against missing `window` and detached elements in `updatePosition`.
- Update `js/ui/components/VideoModal.js` `normalizeVideoTags` to strip `#` prefix, aligning with test expectations and display logic.
- Mock `HTMLCanvasElement.prototype.getContext` in `tests/video-modal-accessibility.test.mjs` to silence benign warnings.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:46:40 +00:00
thePR0M3TH3AN 9031daeea2 Merge pull request #1787 from PR0M3TH3AN/fix-ci-upstream-branch-check-239447602134480452
fix(ci): prevent failure when upstream branch is missing
2026-01-26 22:45:56 -05:00
google-labs-jules[bot]andPR0M3TH3AN 15a196f69b fix(ci): robustly verify upstream branch in PR review workflow
Replaces `git rev-parse` with `git ls-remote` to verify the existence of the upstream base branch before attempting to fetch and diff. This prevents workflow failures when the PR targets a branch that does not exist on the upstream remote (e.g. `unstable` or other feature branches), gracefully skipping the diff step with a warning instead.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:41:10 +00:00
thePR0M3TH3AN 870f8ee8c8 Merge pull request #1786 from PR0M3TH3AN/fix-agent-pr-review-fetch-13873228311171373084
fix(ci): robust upstream fetch in agent pr review
2026-01-26 22:34:13 -05:00
google-labs-jules[bot]andPR0M3TH3AN c6cc797f80 fix(ci): robust upstream fetch in agent pr review
Updates the `agent-pr-review.yml` workflow to prevent failures when calculating diffs against the upstream repository.

Changes:
- Reverts `git fetch` to a full fetch to ensure all remote-tracking branches (like `refs/remotes/upstream/unstable`) are correctly updated in the local environment.
- Adds a mandatory `Verify upstream branch and diff` step that checks for the existence of the target base branch (`upstream/${{ github.base_ref }}`) using `git rev-parse`.
- Performs a dry-run `git diff` to confirm connectivity before running the main review script.
- Ensures the job fails explicitly with a clear error message if the upstream branch is missing, rather than crashing later with an obscure exit code 1.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:33:44 +00:00
thePR0M3TH3AN 629dacb510 Merge pull request #1785 from PR0M3TH3AN/fix-watch-history-tests-5325463898060050508
fix(tests): resolve watchHistory mock and storage failures
2026-01-26 22:33:01 -05:00
thePR0M3TH3AN a46e05d7aa Merge pull request #1784 from PR0M3TH3AN/fix-link-preview-test-isolation-6074457186105688557
fix: ensure fetch is restored in LinkPreviewService tests
2026-01-26 22:32:36 -05:00
google-labs-jules[bot]andPR0M3TH3AN 82b9c4ae0b fix(tests): update watchHistory mocks and storage tests
- Update mock pool objects in `tests/nostr/watchHistory.test.js` to include `async list() { return []; }` to prevent `TypeError: pool.list is not a function`.
- Update storage pruning tests to use `profileCache` semantics (per-user storage) by setting active profile and using correct storage keys.
- Ensure `profileCache.activePubkey` is set in tests that rely on persistence.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:32:33 +00:00
bitvid-agent 8a156c6956 fix(ai): formatting (agent) 2026-01-27 03:31:55 +00:00
google-labs-jules[bot]andPR0M3TH3AN 65c26b8c1e test: fix LinkPreviewService test isolation
Restores globalThis.fetch after each test in LinkPreviewService test suite to prevent pollution of other tests with mocked implementations.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:30:56 +00:00
thePR0M3TH3AN d9cd2ff745 Merge pull request #1783 from PR0M3TH3AN/ai/refactor-revert-modal-20260127-4256377253201853165
Refactor Revert Video Logic to Controller
2026-01-26 22:23:32 -05:00
thePR0M3TH3AN 9ca715fb9b Merge pull request #1782 from PR0M3TH3AN/fix-jsdom-errors-and-tag-sorting-7781906767581563489
Fix JSDOM errors and correct video tag sorting logic
2026-01-26 22:22:31 -05:00
google-labs-jules[bot]andPR0M3TH3AN e5f24bf4b0 refactor(ai): extract handleRevertVideo from js/app.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:20:08 +00:00
google-labs-jules[bot]andPR0M3TH3AN cf1c81e61e fix(tests): resolve JSDOM errors and tag sorting failures
- Update `tests/video-modal-accessibility.test.mjs` to unconditionally stub `HTMLMediaElement` methods (`pause`, `load`), fixing "Not implemented" errors in JSDOM.
- Refactor `VideoModal.normalizeVideoTags` to preserve tag casing while normalizing for deduplication (lowercase + strip #) and ensuring correct display format.
- Update `js/ui/components/tagPillList.js` to conditionally prepend `#` only if missing, preventing double-hashing (e.g., `##tag`).
- Remove unused `normalizeHashtag` import in `VideoModal.js`.
- Verify fixes with `tests/video-modal-tags.test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:17:15 +00:00
thePR0M3TH3AN 1bf5821208 Merge pull request #1781 from PR0M3TH3AN/fix-bootstrap-upload-modal-errors-17716841925712343919
Fix nostr-tools bootstrap, UploadModal race conditions, and error handling
2026-01-26 22:16:25 -05:00
google-labs-jules[bot]andPR0M3TH3AN 3aafcf93d5 Fix nostr-tools bootstrapping, UploadModal zombie callbacks, and service error handling
- Add fallback mock to `js/nostrToolsBootstrap.js` for test environments.
- Add guards to `js/ui/components/UploadModal.js` to prevent stale state updates.
- Ensure service calls are awaited in `js/ui/tagPreferenceMenuController.js`.
- Fix `tests/ui/uploadModal-reset.test.mjs` setup and environment.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:15:32 +00:00
thePR0M3TH3AN c18809e032 Merge pull request #1779 from PR0M3TH3AN/fix-nostr-client-login-test-3648434161439520946
Fix nostrClient.login test failure
2026-01-26 22:14:03 -05:00
thePR0M3TH3AN 3355efbb10 Merge pull request #1780 from PR0M3TH3AN/fix-sidebar-layout-test-race-9981359482965414463
Fix sidebar layout test race condition
2026-01-26 22:13:48 -05:00
google-labs-jules[bot]andPR0M3TH3AN 7d58a48389 fix(test): wait for sidebar transition in visual test
Adds an explicit timeout to `tests/visual/overlay-layers.spec.ts` to allow
the CSS sidebar transition to complete before asserting layout metrics.
This fixes a race condition where the margin measurement was performed
while the transition was still in progress.

Fixes failure: expect(received).toBeLessThan(expected) Expected: < 0.5

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:13:27 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4d94b5030f Fix failing integration-remote-flow test due to removed login() method
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:13:14 +00:00
thePR0M3TH3AN 2a61fb8f6a Merge pull request #1777 from PR0M3TH3AN/fix-agent-pr-review-logging-10679444941765369465
Fix Automated PR Review script error handling
2026-01-26 22:12:57 -05:00
thePR0M3TH3AN 612b874b5e Merge pull request #1778 from PR0M3TH3AN/codex/update-user-content-documentation
docs: clarify user content identifiers and storage layout
2026-01-26 22:12:19 -05:00
thePR0M3TH3AN 888185fb02 docs: clarify user content identifiers and storage layout 2026-01-26 22:12:05 -05:00
google-labs-jules[bot]andPR0M3TH3AN e29a9c1ee8 fix(ci): improve logging and error handling in automated-pr-review.mjs
- Wrap `main` execution in try-catch block to ensure process exits with code 1 on failure.
- Update `runCommand` to throw meaningful errors on spawn failure (e.g. command not found).
- Add explicit check for `gh` CLI availability in CI environment.
- Improve git command error logging in `getChangedFiles` to capture stderr (e.g. "no merge base").

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 03:11:30 +00:00
thePR0M3TH3AN 2fd0d5cab6 Merge pull request #1776 from PR0M3TH3AN/codex/add-required-storage-pointer-tag-for-video-publishing
Add storage pointer tag and info.json resolution for published videos
2026-01-26 22:07:46 -05:00
thePR0M3TH3AN 419a3f419c Add storage pointer tags to video posts 2026-01-26 22:07:32 -05:00
thePR0M3TH3AN 91b45abf9a Merge pull request #1775 from PR0M3TH3AN/ai/ci-health-20250218-16125694416550655226
chore(ai): CI health fixes (flaky tests)
2026-01-26 22:01:25 -05:00
google-labs-jules[bot]andPR0M3TH3AN 38dc140a46 chore(ai): CI health fixes (flaky tests)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 02:59:39 +00:00
thePR0M3TH3AN da5b1107d7 Merge pull request #1774 from PR0M3TH3AN/codex/add-helper-to-extract-btih-from-magnets
Add BTIH extraction helper and normalize infohash handling
2026-01-26 21:49:38 -05:00
thePR0M3TH3AN 50793430a8 Add btih extraction helper 2026-01-26 21:49:18 -05:00
thePR0M3TH3AN 0897106c2e Merge pull request #1773 from PR0M3TH3AN/codex/reorder-upload-flow-in-uploadmodal
Compute upload identifier before building storage keys
2026-01-26 21:43:53 -05:00
thePR0M3TH3AN ee31e4318a Compute upload identifiers before building R2 keys 2026-01-26 21:43:39 -05:00
thePR0M3TH3AN 0fe782c1d1 Merge pull request #1772 from PR0M3TH3AN/fix/dm-test-timeout-7609659014089825088
Fix DM flow test timeouts and hangs
2026-01-26 21:43:24 -05:00