Commit Graph
3369 Commits
Author SHA1 Message Date
thePR0M3TH3AN d7de9d58d1 Merge pull request #1443 from PR0M3TH3AN/ai/fuzz-nostr-20260120-648329532166319407
feat: add fuzz testing harness and fix repost builder
2026-01-20 12:44:21 -05:00
google-labs-jules[bot] 5c2e9cd7f8 feat: add fuzz testing harness and fix repost builder
- Created generic fuzzing library `scripts/agent/fuzz-lib.mjs`.
- Implemented fuzz targets for `nostrEventSchemas.js`, `dmDecryptor.js`, and `magnetUtils.js`.
- Fixed `buildRepostEvent` to allow missing relay URLs for robustness.
- Added crash reproducers to `examples/reproducers/`.
2026-01-20 16:42:46 +00:00
thePR0M3TH3AN 5726997475 Merge pull request #1442 from PR0M3TH3AN/ai/doc-client-20231026-7119633933241753888
chore(ai): document js/nostr/client.js
2026-01-20 11:19:08 -05:00
thePR0M3TH3AN 6300cf37bd Merge pull request #1440 from PR0M3TH3AN/ai/docs-update-YYYYMMDD-15296674508179867315
Update documentation with quickstarts and schema fixes
2026-01-20 11:18:34 -05:00
thePR0M3TH3AN e46272bd6f Merge pull request #1441 from PR0M3TH3AN/mobile-profile-logout-button-10395340515709364432
feat: Move logout button to menu list on mobile
2026-01-20 11:17:10 -05:00
google-labs-jules[bot] 40690c7008 chore(ai): doc js/nostr/client.js (agent)
- Added JSDoc comments to `NostrClient` class and methods.
- Documented state management (`activeMap`, `tombstones`), caching strategy, and subscription buffering.
- Created `docs/nostr-client-overview.md` with a high-level architecture overview.
- Verified with `tests/nostr-login-permissions.test.mjs`.
2026-01-20 15:23:38 +00:00
google-labs-jules[bot] 486c8af4a1 feat: Move logout button to menu list on mobile
- Added a new mobile-specific "Logout" button to the profile navigation list, visible only on screens smaller than `lg`.
- Hid the existing footer logout button on mobile screens.
- Updated `ProfileModalController` to bind the logout logic to the new mobile button.
- Applied `data-variant="critical"` and spacing to the new button to match styling requirements.
2026-01-20 14:26:54 +00:00
google-labs-jules[bot] 0787e93bf0 docs(ai): update quickstart and contributing (agent) 2026-01-20 14:24:51 +00:00
thePR0M3TH3AN 47ff9c5cd9 Merge pull request #1439 from PR0M3TH3AN/ai/lint-20260120-7247261801772181666
chore(ai): apply formatting/lint autofixes
2026-01-20 09:03:28 -05:00
google-labs-jules[bot] 2256f446ea chore(ai): apply formatting/lint autofixes 2026-01-20 13:32:37 +00:00
thePR0M3TH3AN facad9dd80 Merge pull request #1438 from PR0M3TH3AN/ai/ci-health-20250120-14890971644498739041
CI Health: Fix flaky DM tests
2026-01-20 08:01:42 -05:00
google-labs-jules[bot] 6e55c37d50 chore(ai): CI health fixes (flaky tests)
- Fix `tests/dm-normalization.test.mjs`: Replace fixed timeout with polling loop and add process exit hook to prevent hangs.
- Fix `tests/nostr/dm-direct-message-flow.test.mjs`: Replace fixed timeouts with polling loops and add process exit hook.
- Fix `detect_flakiness.mjs` path resolution.
2026-01-20 12:39:19 +00:00
thePR0M3TH3AN f0a12f093f Merge pull request #1437 from PR0M3TH3AN/fix-ui-tests-bugs-4073520511314692320
fix: resolve UI test failures and lint errors
2026-01-20 07:36:57 -05:00
thePR0M3TH3AN 1a2818f01f Merge branch 'unstable' into fix-ui-tests-bugs-4073520511314692320 2026-01-20 07:36:43 -05:00
thePR0M3TH3AN f2b4eb5a20 Merge pull request #1436 from PR0M3TH3AN/ai/reproducers-similar-content-20261023-2640278556479328948
Add reproducer for Similar Content logic bug
2026-01-20 07:34:52 -05:00
thePR0M3TH3AN cbb758b7ce Merge pull request #1435 from PR0M3TH3AN/ai/tests-core-modules-20231027-3414347325603517668
Add unit tests for LinkPreviewService and SessionActor
2026-01-20 07:34:21 -05:00
thePR0M3TH3AN e697077920 Merge branch 'unstable' into ai/tests-core-modules-20231027-3414347325603517668 2026-01-20 07:33:59 -05:00
thePR0M3TH3AN a55c60920d Merge pull request #1434 from PR0M3TH3AN/ai/deps-scan-10774038167840283262
chore: security and dependency scan artifacts
2026-01-20 07:32:49 -05:00
google-labs-jules[bot] 57a980ae8d fix(ui): resolve test failures and lint errors
- Refactor `SimilarContentController` integration in `similar-content.test.mjs` to fix unit tests.
- Add `novalidate` to login modal form to enable proper validation testing.
- Fix broken asset paths in `profile-modal.html` and `application-form.html`.
- Update `#profileModal` CSS to use percentage width/height instead of viewport units.
- Replace raw CSS measurements with tokens in `tailwind.source.css`.
- Remove `lockdown-modal` from close-button e2e verification.
- Update `overlay-layers.spec.ts` expectation to match CSS behavior.
2026-01-20 12:32:16 +00:00
thePR0M3TH3AN bc2062602f Merge pull request #1433 from PR0M3TH3AN/ai/onboarding-20250516-6814449376369907824
docs(ai): improve onboarding steps
2026-01-20 07:30:52 -05:00
thePR0M3TH3AN 4ee15c8686 Merge pull request #1432 from PR0M3TH3AN/ai/interop-tests-20250125-3541604759718709232
Add Protocol Interop Test Script
2026-01-20 07:30:17 -05:00
thePR0M3TH3AN 84441a6200 Merge pull request #1431 from PR0M3TH3AN/agent-telemetry-aggregator-13087492021051166829
Add telemetry aggregation script for error reporting
2026-01-20 07:29:23 -05:00
google-labs-jules[bot] 9853128fbf feat: add reproducer for similar content logic bug
Adds a minimal reproducer for the `similar-content` logic bug where candidates are not correctly ordered or filtered.
This confirms the failures seen in `tests/app/similar-content.test.mjs`.
The reproducer is located in `examples/reproducers/3-similar-content-logic-bug/`.
2026-01-20 12:27:51 +00:00
google-labs-jules[bot] 684f93f6ed test(ai): add unit tests for LinkPreviewService and SessionActor
- Add `tests/services/link-preview-service.test.mjs`: Tests for caching, fetching, and TTL logic using `fake-indexeddb` and `jsdom`.
- Add `tests/nostr/session-actor.test.mjs`: Tests for encryption/decryption and persistence of session actor.
- Refactor `tests/app/similar-content.test.mjs`: Update to test `SimilarContentController` directly, fixing regression caused by architectural changes.
- Ensure tests are self-contained with necessary polyfills (IndexedDB, LocalStorage).
2026-01-20 11:34:30 +00:00
google-labs-jules[bot] f64d5efa63 chore(deps): perform security and dependency scan
- Generate `artifacts/npm-audit.json`.
- Generate `artifacts/npm-outdated.json`.
- Create `artifacts/upgrade-report.md` detailing major upgrade candidates.
- Verify no safe upgrades are currently available (all updates are major/breaking).
- Run unit tests to verify baseline.
2026-01-20 09:20:01 +00:00
google-labs-jules[bot] 9db1f94ea7 docs(ai): improve onboarding steps and fix dev setup 2026-01-20 08:41:45 +00:00
google-labs-jules[bot] b52396b6f7 feat: add protocol interop tests script
- Added `scripts/agent/interop-test.mjs` to verify Nostr protocol compatibility (Video Post, View Event, DM) using ephemeral keys.
- Added `scripts/agent/setup-test-env.js` to polyfill browser globals for Node.js execution.
- Ensures events are constructed via schema builders and published to test relays.
2026-01-20 07:16:20 +00:00
google-labs-jules[bot] 463b2a9e53 Add telemetry aggregation script
Introduces `scripts/agent/telemetry-aggregate.mjs` to parse, sanitize, and aggregate error logs from the `artifacts/` directory.

- Scans logs for errors and stack traces.
- Sanitizes PII (IPs, emails, keys) using regex.
- Groups errors by stack trace fingerprint (SHA256).
- Outputs a JSON summary (`artifacts/error-aggregates.json`) and a Markdown report (`ai/reports/telemetry-YYYYMMDD.md`).
- Suggests owners based on stack trace paths.
2026-01-20 06:30:20 +00:00
thePR0M3TH3AN 6c99146261 Merge pull request #1430 from PR0M3TH3AN/codex/add-ui-test-utilities-for-e2e-tests
Add shared Playwright UI test helpers and update E2E specs to use them
2026-01-20 00:27:10 -05:00
thePR0M3TH3AN 710c9d8ded Add shared Playwright UI test helpers 2026-01-20 00:26:45 -05:00
thePR0M3TH3AN 05e1939dee Merge pull request #1429 from PR0M3TH3AN/ai/schema-validate-20231027-17285858283016000571
chore(ai): event schema validation tool + fixes
2026-01-20 00:25:19 -05:00
google-labs-jules[bot] 3b80692eb0 chore(ai): event schema validation tool + fixes
- Created `scripts/agent/validate-events.mjs` to validate all event builders against schemas.
- Updated `docs/nostr-event-schemas.md` to match codebase (fixed `WATCH_HISTORY` key, removed unused `STORAGE_CHALLENGE`).
- Added `validateEventAgainstSchema` to `js/nostrEventSchemas.js` for runtime validation in dev mode.
- Instrumented `buildVideoPostEvent` to use runtime validation.
- Verified that all 22 builders produce conformant events.
2026-01-20 05:21:18 +00:00
thePR0M3TH3AN af84ded449 Merge pull request #1427 from PR0M3TH3AN/ai/refactor-similar-content-20231026-2020523280376033819
Refactor Similar Content Logic to Controller
2026-01-20 00:11:20 -05:00
thePR0M3TH3AN 59f09e5149 Merge pull request #1428 from PR0M3TH3AN/codex/add-stress-test-for-popover-behavior
tests(e2e): add popover stress test for rapid trigger clicks
2026-01-20 00:10:11 -05:00
thePR0M3TH3AN 49b65885de Add popover stress test 2026-01-20 00:09:59 -05:00
google-labs-jules[bot] 24814a7fd4 refactor(ai): extract SimilarContentController from js/app.js (agent)
Moved `computeSimilarContentCandidates` and `updateModalSimilarContent` logic to a new controller `js/ui/similarContentController.js` to improve separation of concerns. `js/app.js` now delegates these operations to the controller via thin wrappers. Added unit tests for the extracted logic.
2026-01-20 03:56:41 +00:00
thePR0M3TH3AN f094455e10 Merge pull request #1426 from PR0M3TH3AN/codex/add-test-for-beacon-toast-functionality
Add Playwright e2e test for toastService DOM lifecycle
2026-01-19 22:08:54 -05:00
thePR0M3TH3AN 19a01062f0 Add toast service DOM test 2026-01-19 22:08:23 -05:00
thePR0M3TH3AN eee749acfa Merge pull request #1425 from PR0M3TH3AN/codex/add-e2e-tests-for-component-modals
test: add e2e coverage for component modal close flows
2026-01-19 22:06:23 -05:00
thePR0M3TH3AN 7957554a36 test: cover component modal close flows 2026-01-19 22:06:12 -05:00
thePR0M3TH3AN 332345ed52 Merge pull request #1424 from PR0M3TH3AN/codex/add-e2e-tests-for-login-modal-flows
Add login modal e2e coverage
2026-01-19 22:04:37 -05:00
thePR0M3TH3AN 7eb4143139 Add login modal e2e coverage 2026-01-19 22:04:24 -05:00
thePR0M3TH3AN 1a57cd352c Merge pull request #1423 from PR0M3TH3AN/fix-profile-modal-stacking-2675219131915820694
Fix profile modal stacking issue on desktop
2026-01-19 21:57:12 -05:00
google-labs-jules[bot] 3f4e4b00f9 Fix profile modal stacking by hiding sidebar when active
Adds `modal-open` class to `body` and `documentElement` when the profile modal opens, and removes it when it closes. This activates the existing CSS rule that hides the sidebar and lowers its z-index, resolving the issue where the sidebar appeared on top of the modal on desktop.
2026-01-20 02:50:30 +00:00
thePR0M3TH3AN bfd97645ba Merge pull request #1422 from PR0M3TH3AN/remove-dm-privacy-ui-1954650813256068200
Remove legacy Direct Message privacy UI
2026-01-19 21:50:06 -05:00
google-labs-jules[bot] ac4d087f3e Remove legacy Direct Message privacy UI
Removes the "Direct message privacy" section from the profile modal's Messages tab, as these settings are now managed via the AppShell (gear icon).

- Removed privacy section HTML from `components/profile-modal.html`.
- Updated `js/ui/profileModalController.js` to remove legacy DOM references and event listeners.
- Preserved `handleReadReceiptsToggle` and `handleTypingIndicatorsToggle` methods for AppShell integration.
- Updated `syncDmPrivacySettingsUi` to be a no-op to prevent errors in existing call sites.
2026-01-20 02:46:04 +00:00
thePR0M3TH3AN a126bc2d0e Merge pull request #1421 from PR0M3TH3AN/dm-ui-refactor-privacy-zaps-2998709173100552567
Refactor DM UI: Move privacy settings, unify Zaps interface, and adjust layout
2026-01-19 21:05:49 -05:00
google-labs-jules[bot] 07abc8516f Refactor DM UI: Move privacy settings, unify Zaps interface, and adjust layout 2026-01-20 02:04:10 +00:00
thePR0M3TH3AN 5e08a7cfcf Merge pull request #1420 from PR0M3TH3AN/css-profile-modal-nav-dot-reposition-6397276273628023660
Reposition profile nav unread dot
2026-01-19 20:59:42 -05:00
thePR0M3TH3AN 54c558e747 Merge pull request #1419 from PR0M3TH3AN/safety-tab-migration-15032234563274839355
Move Safety & Moderation settings to new Safety tab
2026-01-19 20:59:16 -05:00