Commit Graph
4114 Commits
Author SHA1 Message Date
thePR0M3TH3AN e98001f8f0 Merge pull request #1803 from PR0M3TH3AN/codex/create-initdocsview-function-in-js/docsview.js
Add docs view loader and TOC rendering
2026-01-27 08:12:11 -05:00
thePR0M3TH3AN 41f252379b Add docs view loader and TOC 2026-01-27 08:11:55 -05:00
thePR0M3TH3AN 04e7d4601b Merge pull request #1802 from PR0M3TH3AN/ai/reproducers-moderation-ui-20260127-5223580999158910470
Add minimal reproducer for moderation UI visibility bug
2026-01-27 08:11:19 -05:00
thePR0M3TH3AN 5bea3590bd Merge pull request #1801 from PR0M3TH3AN/ai/tests-nip46-moderation-13594149868051412958
Add unit tests for Nip46RequestQueue and ModerationActionController
2026-01-27 08:10:59 -05:00
thePR0M3TH3AN 6e91e0dcaf Merge pull request #1800 from PR0M3TH3AN/ai/deps-scan-13114463718919134912
chore(ai): dependency scan and issue updates
2026-01-27 08:10:36 -05:00
thePR0M3TH3AN d0b5c5f95f Merge pull request #1799 from PR0M3TH3AN/ai/onboarding-20260127-4053112521983626878
docs(ai): improve onboarding steps and devcontainer
2026-01-27 08:10:17 -05:00
thePR0M3TH3AN 38984034a6 Merge pull request #1798 from PR0M3TH3AN/ai/interop-tests-20250226-10619676065325825636
Add Nostr protocol interop test script
2026-01-27 08:09:49 -05:00
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 ebc27423cc Add minimal reproducer for moderation UI visibility bug
- Creates `examples/reproducers/issue-moderation-ui/` with a standalone Playwright script.
- Includes `repro.spec.ts` which reproduces the "Show anyway" button visibility failure.
- Adds `playwright.config.ts` for standalone execution of the reproducer.
- Documents running instructions in `README.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 12:14:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1f49c5554f test(ai): add unit tests for nip46Queue and moderationActionController (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 11:54:02 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8902f31240 chore(ai): dependency scan and issue updates
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 09:52:27 +00:00
google-labs-jules[bot]andPR0M3TH3AN b9d2ed3a11 docs(ai): improve onboarding steps and devcontainer
- Create `docs/onboarding-audit-2025-01-27.md` with audit findings.
- Update `CONTRIBUTING.md` to recommend `npm ci`, mention test sharding, and update devcontainer details.
- Update `README.md` to prioritize `npm ci`.
- Update `.devcontainer/devcontainer.json` to install Playwright browsers and GitHub CLI.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 08:38:25 +00:00
google-labs-jules[bot]andPR0M3TH3AN a307c87c64 Add interop test script for Nostr protocols
- Implements `scripts/agent/interop-test.mjs` to validate VIDEO_POST, VIEW_EVENT, and DM flows.
- Uses ephemeral keys generated via `nostr-tools`.
- Targets public relays `wss://relay.damus.io` and `wss://nos.lol` for verification.
- Includes retry logic for event propagation verification.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 07:34:23 +00: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