Commit Graph
4138 Commits
Author SHA1 Message Date
thePR0M3TH3AN 36ba0db0b5 Merge pull request #1815 from PR0M3TH3AN/fix-moderation-test-mock-9853303796175767521
Fix userBlocks mock wiring in moderation test harness
2026-01-27 09:59:07 -05:00
google-labs-jules[bot]andPR0M3TH3AN 1c21dd443f test(moderation): wire up userBlocks mock in app harness
Override app.isAuthorBlocked in createModerationAppHarness when a
userBlocks mock is provided. This ensures that application logic
checking block status respects the mock state instead of querying
the uninitialized global singleton, fixing the failure in
handleModerationBlock tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 14:56:58 +00:00
thePR0M3TH3AN 05d0b5c6b3 Merge pull request #1814 from PR0M3TH3AN/fix-docs-content-and-ui-9368723759970105633
Fix Docs Content Loading and UI Highlighting
2026-01-27 09:51:55 -05:00
google-labs-jules[bot]andPR0M3TH3AN a2efdc6d75 fix(docs): restructure content directory and fix TOC highlighting
Moves markdown files to `content/docs/` to match the TOC structure and ensures the correct `aria-current` attribute is used for the active TOC link.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 14:51:23 +00:00
thePR0M3TH3AN b75e1cdc42 Merge pull request #1813 from PR0M3TH3AN/fix-moderation-test-race-condition-5590692852708543873
fix(tests): resolve race condition in moderation overrides test
2026-01-27 09:46:51 -05:00
google-labs-jules[bot]andPR0M3TH3AN c725b48080 fix(tests): resolve race condition in moderation overrides test
Refactor `ModerationActionController` initialization in test harness to support dependency injection for `userBlocks`. This allows tests to use isolated mock instances instead of monkey-patching the global singleton, preventing race conditions when tests run in parallel or overlap.

Fixes intermittent failures in `tests/app/moderation-overrides.test.mjs` where `userBlocks` state leaked between tests.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 14:45:40 +00:00
thePR0M3TH3AN 97f2218355 Merge pull request #1812 from PR0M3TH3AN/fix-ci-build-missing-deps-8869438230574676606
Fix CI build failure by adding missing http-server and serve dependencies
2026-01-27 09:38:03 -05:00
google-labs-jules[bot]andPR0M3TH3AN 37abdd737f Fix CI build failure by adding missing devDependencies
- Added `http-server` and `serve` to `devDependencies`.
- This resolves CI failures where `npx` commands for `http-server` (used in Playwright) and `serve` (used in start scripts) would fail or block due to implicit installation restrictions.
- `package-lock.json` updated to reflect new dependencies.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 14:37:40 +00:00
thePR0M3TH3AN b50180221b Merge pull request #1811 from PR0M3TH3AN/ai/docs-update-20250220-4304523426347248604
Update Developer Documentation and Quickstarts
2026-01-27 09:28:42 -05:00
google-labs-jules[bot]andPR0M3TH3AN 0e08b9232d docs(ai): update quickstart and contributing (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 14:27:52 +00:00
thePR0M3TH3AN f6bc6dd96a Merge pull request #1810 from PR0M3TH3AN/codex/add-documentation-for-toc.json-usage
Add README guidance for docs TOC and deep links
2026-01-27 09:18:54 -05:00
thePR0M3TH3AN 9321e7189a Add docs TOC guidance 2026-01-27 09:18:38 -05:00
thePR0M3TH3AN 9592f88429 Merge pull request #1809 from PR0M3TH3AN/codex/add-lightweight-scrollspy-to-js/docsview.js
Add non-blocking scrollspy to docs TOC
2026-01-27 09:16:18 -05:00
thePR0M3TH3AN 8c8f721387 Add scrollspy highlighting for docs TOC 2026-01-27 09:16:07 -05:00
thePR0M3TH3AN 8a2d9fe966 Merge pull request #1808 from PR0M3TH3AN/codex/enhance-js/docsview.js-for-toc-navigation
docsView: enable hash navigation, TOC click handling, and aria-current
2026-01-27 09:08:42 -05:00
thePR0M3TH3AN 1737e6927f Update docs hash handling 2026-01-27 09:08:32 -05:00
thePR0M3TH3AN becbf7f97b Merge pull request #1807 from PR0M3TH3AN/codex/add-styles-for-docs-layout-and-toc
Add docs layout & TOC stylesheet and include it in app shell
2026-01-27 09:01:39 -05:00
thePR0M3TH3AN 2225a56bf1 Add docs layout and TOC styling 2026-01-27 08:56:53 -05:00
thePR0M3TH3AN df406ecda1 Merge pull request #1806 from PR0M3TH3AN/codex/add-toc-drawer-overlay-support
docs: add mobile TOC drawer overlay with focus trap and backdrop
2026-01-27 08:47:38 -05:00
thePR0M3TH3AN 3a4e0aa3e8 Add docs TOC drawer overlay 2026-01-27 08:47:27 -05:00
thePR0M3TH3AN 5b240f380b Merge pull request #1805 from PR0M3TH3AN/codex/add-docs-view-initializer-to-registry
Register docs view in view manager
2026-01-27 08:36:25 -05:00
thePR0M3TH3AN 2a5fbb3904 Register docs view initializer 2026-01-27 08:36:12 -05:00
thePR0M3TH3AN 756c59a54c Merge pull request #1804 from PR0M3TH3AN/ai/lint-20250523-14917736406254802113
chore(ai): apply formatting/lint autofixes
2026-01-27 08:34:12 -05:00
google-labs-jules[bot]andPR0M3TH3AN 7ad9ee0138 chore(ai): apply formatting/lint autofixes
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 13:21:05 +00:00
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