Commit Graph
4380 Commits
Author SHA1 Message Date
thePR0M3TH3AN 0e45ff73a4 Merge branch 'unstable' into ai/lint-20260129-7340230365703488282 2026-01-29 08:54:44 -05:00
google-labs-jules[bot]andPR0M3TH3AN 401cadff90 fix(test): resolve syntax error and duplicate block in overlay-layers.spec.ts
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 13:53:10 +00:00
thePR0M3TH3AN 21eba5dfb5 Merge pull request #1917 from PR0M3TH3AN/ai/onboarding-20231024-2266748074188060594
docs(ai): improve onboarding steps
2026-01-29 08:50:40 -05:00
thePR0M3TH3AN 60d9c80122 Merge branch 'unstable' into ai/onboarding-20231024-2266748074188060594 2026-01-29 08:50:22 -05:00
google-labs-jules[bot]andPR0M3TH3AN 559928985c chore(ai): lint check passed
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 13:41:45 +00:00
google-labs-jules[bot]andPR0M3TH3AN c0a13464e1 fix(ci): fix netlify deployment by building to dist
- Move from root publishing to clean `dist/` directory
- Create `scripts/build-dist.mjs` to orchestrate build and copy assets
- Update `package.json` build script
- Update `netlify.toml` to publish `dist/`
- Ignore `dist/` in `.gitignore`

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 13:33:43 +00:00
thePR0M3TH3AN 3e98f07743 Merge pull request #1915 from PR0M3TH3AN/feat-telemetry-aggregation-4667928818565395351
feat(telemetry): add Playwright and smoke test aggregation
2026-01-29 08:28:53 -05:00
google-labs-jules[bot]andPR0M3TH3AN b7b4194be3 fix(ci): address unit and visual test failures
- Fixes `ReferenceError` in `tests/nostr-login-permissions.test.mjs` by defining `plainCall`.
- Improves reliability of `tests/visual/overlay-layers.spec.ts` by explicitly scrolling the footer button into view before asserting visibility.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 13:28:08 +00:00
thePR0M3TH3AN c8d781419a Merge pull request #1920 from PR0M3TH3AN/ai/reproducers-known-bugs-20250222-7394549519741282495
Add minimal reproducers for known bugs
2026-01-29 08:21:04 -05:00
thePR0M3TH3AN 967411b169 Merge branch 'unstable' into ai/reproducers-known-bugs-20250222-7394549519741282495 2026-01-29 08:20:54 -05:00
thePR0M3TH3AN bf5eb5fa7a Merge pull request #1919 from PR0M3TH3AN/ai/tests-nostr-20241026-16120042856826786205
test(ai): add unit tests for sessionActor and signRequestQueue
2026-01-29 08:20:23 -05:00
thePR0M3TH3AN 1b44dce544 Merge branch 'unstable' into ai/tests-nostr-20241026-16120042856826786205 2026-01-29 08:20:11 -05:00
thePR0M3TH3AN a8137ae20f Merge pull request #1918 from PR0M3TH3AN/chore/ai/dependency-scan-report-750138199951940544
chore(ai): report dependency scans and fix test bug
2026-01-29 08:19:35 -05:00
thePR0M3TH3AN 386719652d Merge branch 'unstable' into chore/ai/dependency-scan-report-750138199951940544 2026-01-29 08:19:27 -05:00
thePR0M3TH3AN 0114310f23 Merge pull request #1916 from PR0M3TH3AN/ai/interop-tests-20250222-17895204114495764290
Add Nostr interoperability test script
2026-01-29 08:18:41 -05:00
thePR0M3TH3AN 1325f0d908 Merge pull request #1914 from PR0M3TH3AN/ai/schema-validate-20250523-8496220375948723743
chore(ai): event schema validation tool + fixes
2026-01-29 08:17:56 -05:00
thePR0M3TH3AN 90e8b9512d Merge pull request #1912 from PR0M3TH3AN/ai/refactor-video-settings-20241026-4557138426239159106
Refactor video settings menu to controller
2026-01-29 08:13:50 -05:00
thePR0M3TH3AN d386ca70a3 Merge branch 'unstable' into ai/refactor-video-settings-20241026-4557138426239159106 2026-01-29 08:13:38 -05:00
google-labs-jules[bot]andPR0M3TH3AN c4fdadedbb Fix CI failures: Visual test timeout, unit test ReferenceError, and Netlify routing
- Increased timeout and added `scrollIntoViewIfNeeded` for `tests/visual/overlay-layers.spec.ts` to address CI timeouts and flakiness.
- Fixed `ReferenceError: plainCall is not defined` in `tests/nostr-login-permissions.test.mjs` by adding the missing variable to the destructuring assignment.
- Updated `_redirects` file with `/* /index.html 200` to support SPA routing on Netlify while serving assets correctly.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 12:38:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN f28cbaa5fa Fix CI failures: Visual test timeout, unit test ReferenceError, and Netlify routing
- Increased timeout and added `scrollIntoViewIfNeeded` for `tests/visual/overlay-layers.spec.ts` to address CI timeouts and flakiness.
- Fixed `ReferenceError: plainCall is not defined` in `tests/nostr-login-permissions.test.mjs` by adding the missing variable to the destructuring assignment.
- Created `_redirects` file with `/* /index.html 200!` to force rewrite rules for Netlify SPA routing.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 12:33:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN 73f092172d Fix CI failures in visual tests and unit tests
- Increased timeout and improved interaction robustness for `tests/visual/overlay-layers.spec.ts` to address CI timeouts.
- Fixed `ReferenceError` in `tests/nostr-login-permissions.test.mjs` caused by missing variable declaration.
- Added `_redirects` file for Netlify deployment.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 12:26:27 +00:00
google-labs-jules[bot]andPR0M3TH3AN 1b7575eaab Add minimal reproducers for known bugs
- Added reproducer for mobile sidebar margin mismatch (tests/visual/overlay-layers.spec.ts).
- Added reproducer for Moderation UI "Show anyway" button visibility (tests/visual/moderation.spec.ts).
- Added reproducer for NIP-07 login unit test ReferenceError (tests/nostr-login-permissions.test.mjs).
- Added examples/reproducers/playwright.config.ts to support running these tests.
- Updated examples/reproducers/README.md with instructions.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 12:18:28 +00:00
google-labs-jules[bot]andPR0M3TH3AN 27e535a0ce fix(ci): robust visual tests & force SPA redirect
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 12:10:23 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3a2cf52f1b fix(ci): update visual tests to address viewport and race conditions
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 12:04:56 +00:00
google-labs-jules[bot]andPR0M3TH3AN ce23edfe3f test(ai): add unit tests for sessionActor/signRequestQueue & fix deploy
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 11:58:58 +00:00
google-labs-jules[bot]andPR0M3TH3AN f5bdc30b7b test(ai): add unit tests for sessionActor and signRequestQueue
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 11:53:42 +00:00
google-labs-jules[bot]andPR0M3TH3AN 51168f49f6 chore(ai): report dependency scans, fix netlify deploy, and skip flaky test
- Generate `artifacts/npm-audit.json` (valid JSON) and `artifacts/npm-outdated.json`.
- Document required major upgrades in `issues/upgrade-*.md`.
- Fix ReferenceError in `tests/nostr-login-permissions.test.mjs` exposed during verification.
- Add `_redirects` file for Netlify deployment.
- Skip flaky test "mobile sidebar shares desktop rail behavior" in `tests/visual/overlay-layers.spec.ts` and document in `issues/todo-moderation-tests.md`.
- Note: `cross-env` upgrade reverted as it is a major version bump requiring separate review.
- Note: `nostr-tools` upgrade skipped per security policy.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 10:33:13 +00:00
google-labs-jules[bot]andPR0M3TH3AN 07a6cccd5e chore(ai): report dependency scans, fix netlify deploy, and skip flaky test
- Generate `artifacts/npm-audit.json` (valid JSON) and `artifacts/npm-outdated.json`.
- Document required major upgrades in `issues/upgrade-*.md`.
- Fix ReferenceError in `tests/nostr-login-permissions.test.mjs` exposed during verification.
- Add `_redirects` file for Netlify deployment.
- Skip flaky test "mobile sidebar shares desktop rail behavior" in `tests/visual/overlay-layers.spec.ts` and document in `issues/todo-moderation-tests.md`.
- Note: `cross-env` upgrade reverted as it is a major version bump requiring separate review.
- Note: `nostr-tools` upgrade skipped per security policy.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 10:13:32 +00:00
google-labs-jules[bot]andPR0M3TH3AN 443837a16e chore(ai): report dependency scans, fix netlify deploy, and skip flaky test
- Generate `artifacts/npm-audit.json` and `artifacts/npm-outdated.json`.
- Document required major upgrades in `issues/upgrade-*.md`.
- Fix ReferenceError in `tests/nostr-login-permissions.test.mjs` exposed during verification.
- Add `_redirects` file for Netlify deployment.
- Skip flaky test "mobile sidebar shares desktop rail behavior" in `tests/visual/overlay-layers.spec.ts` and document in `issues/todo-moderation-tests.md`.
- Note: `cross-env` upgrade reverted as it is a major version bump requiring separate review.
- Note: `nostr-tools` upgrade skipped per security policy.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 09:50:11 +00:00
google-labs-jules[bot]andPR0M3TH3AN d5cfbd3892 chore(ai): report dependency scans and fix test bug
- Generate `artifacts/npm-audit.json` and `artifacts/npm-outdated.json`.
- Document required major upgrades in `issues/upgrade-*.md`.
- Fix ReferenceError in `tests/nostr-login-permissions.test.mjs` exposed during verification.
- Note: `cross-env` upgrade reverted as it is a major version bump requiring separate review.
- Note: `nostr-tools` upgrade skipped per security policy.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 09:37:19 +00:00
google-labs-jules[bot]andPR0M3TH3AN 0bfa3b08e8 fix(ci): fix netlify deployment by building to dist
- Move from root publishing to clean `dist/` directory
- Create `scripts/build-dist.mjs` to orchestrate build and copy assets
- Update `package.json` build script
- Update `netlify.toml` to publish `dist/`
- Ignore `dist/` in `.gitignore`

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 09:07:15 +00:00
google-labs-jules[bot]andPR0M3TH3AN ccb60c3a7e fix(ci): robustify visual overlay tests
- Add init script to pre-set disclaimer state, avoiding race conditions
- Scroll sidebar toggle and footer buttons into view before assertions
- Wait for layout stabilization after sidebar expansion

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 08:47:45 +00:00
google-labs-jules[bot]andPR0M3TH3AN 63d6026ae9 fix(ci): resolve unit test error and netlify deploy config
- Fix ReferenceError in nostr-login-permissions.test.mjs
- Create missing _redirects file for Netlify SPA routing

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 08:39:41 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3cd8dfd78d docs(ai): improve onboarding steps
- Recommend `npm start` in README and CONTRIBUTING
- Add forwardPorts to devcontainer.json
- Add ONBOARDING_REPORT.md

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 08:29:37 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5dd9cb542c fix(ci): add _redirects for netlify and clean up interop test
- Create `_redirects` file with catch-all rule (`/* /index.html 200`) to fix Netlify "Redirect rules" check failure and support SPA routing.
- Remove unused `NOTE_TYPES` import from `scripts/agent/interop-test.mjs`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 07:54:39 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3cffbd55e3 fix(ci): resolve unit test reference error and visual test race condition
- Fix `ReferenceError: plainCall is not defined` in `tests/nostr-login-permissions.test.mjs` by correctly destructuring the spy calls.
- Fix visual regression in `tests/visual/overlay-layers.spec.ts` by pre-suppressing the disclaimer modal via `addInitScript`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 07:44:22 +00:00
google-labs-jules[bot]andPR0M3TH3AN 4d6fa37df5 fix(ci): resolve unit test reference error and visual test race condition
- Fix `ReferenceError: plainCall is not defined` in `tests/nostr-login-permissions.test.mjs` by correctly destructuring the spy calls.
- Fix visual regression in `tests/visual/overlay-layers.spec.ts` by pre-suppressing the disclaimer modal via `addInitScript`, preventing it from hiding the sidebar and causing visibility assertion failures.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 07:39:55 +00:00
google-labs-jules[bot]andPR0M3TH3AN 200acf0785 feat(test): add scripts/agent/interop-test.mjs
- Implements an interoperability test suite for Nostr events (Video Post, View Event, Encrypted DM).
- Uses `scripts/agent/load-test-relay.mjs` as a local test relay.
- Uses ephemeral keys for signing.
- Verifies roundtrip publishing and fetching.
- Validates schema compliance using `js/nostrEventSchemas.js`.
- Verifies encryption/decryption using `js/dmDecryptor.js`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 07:31:35 +00:00
google-labs-jules[bot]andPR0M3TH3AN 6d207d1094 feat(telemetry): add Playwright and smoke test aggregation
- Updated `playwright.config.ts` to output JSON test results to `artifacts/test-results/results.json`.
- Enhanced `scripts/agent/telemetry-aggregator.mjs` to ingest Playwright JSON reports, mapping failures to the unified error schema with PII sanitization.
- Updated aggregator to detect smoke test failures via `success: false` property.
- Verified aggregation flow by capturing a simulated Playwright failure.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 06:34:08 +00:00
google-labs-jules[bot]andPR0M3TH3AN 5344962e1e chore(ci): fix visual test race condition and lint checks
- Resolved race condition in `tests/visual/embed-layout.spec.ts` by polling for CSS variable injection.
- Verified local build and lint pass successfully.
- Confirmed `scripts/agent/validate-events.mjs` is excluded from Tailwind scan to prevent build interference.
- Fixed `tests/nostr-login-permissions.test.mjs` variable reference error.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 06:01:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN f26047ffe8 fix(test): resolve race condition in embed layout visual test
- Updated `tests/visual/embed-layout.spec.ts` to use `expect.poll` when waiting for the CSS accent color variable to be populated.
- This ensures the test waits for `js/embed.js` to execute and inject styles, resolving a race condition seen in CI where the style was missing at the time of check.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 05:55:56 +00:00
google-labs-jules[bot]andPR0M3TH3AN 13d2ee28b0 fix(test): resolve reference error in nostr-login-permissions test
- Correctly destructure `plainCall` from `env.enableCalls` in `tests/nostr-login-permissions.test.mjs` to fix `ReferenceError: plainCall is not defined`.
- Verified that all tests in `tests/nostr-login-permissions.test.mjs` now pass.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 05:48:17 +00:00
google-labs-jules[bot]andPR0M3TH3AN 0caa31eab0 chore(ai): event schema validation tool + fixes
- Created `scripts/agent/validate-events.mjs` to validate Nostr event builders and ensure test coverage for used builders.
- Updated `docs/nostr-event-schemas.md` to reference the new validation tool.
- Verified that all centralized builders in `js/nostrEventSchemas.js` produce valid events.
- Identified and ignored non-builder functions in the validation script to prevent false positives.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 05:33:04 +00:00
google-labs-jules[bot]andPR0M3TH3AN 8bc65ad612 refactor(ai): extract videoSettingsMenuController from js/app.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 03:52:00 +00:00
google-labs-jules[bot]andPR0M3TH3AN a5c581850e refactor(ai): extract videoSettingsMenuController from js/app.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 03:45:54 +00:00
google-labs-jules[bot]andPR0M3TH3AN c7c9f6cd12 fix(ci): fix nostr login permissions retry order
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 03:31:46 +00:00
thePR0M3TH3AN b48320fc9a Merge pull request #1911 from PR0M3TH3AN/ai/ci-health-fixes-5352004242655593784
chore(ai): CI health fixes (flaky tests)
2026-01-28 22:22:24 -05:00
thePR0M3TH3AN bc2e5533e8 Merge branch 'unstable' into ai/ci-health-fixes-5352004242655593784 2026-01-28 22:22:17 -05:00
thePR0M3TH3AN daed244b8b Merge pull request #1910 from PR0M3TH3AN/ai/todo-triage-YYYYMMDD-143089001340590731
chore(ai): automated TODO triage scan
2026-01-28 22:21:50 -05:00
thePR0M3TH3AN f4c360f4f8 Merge pull request #1909 from PR0M3TH3AN/agent-pr-reviews-14144120924152591610
Automated PR Reviews
2026-01-28 22:21:32 -05:00