Commit Graph
5263 Commits
Author SHA1 Message Date
google-labs-jules[bot]andPR0M3TH3AN 4c211cad1b fix(ci): exclude map/min files from TODO scan and mock relays in tests
- Excluded `*.map` and `*.min.js` files from the `todos.txt` generation command to prevent massive minified lines from crashing CI scripts.
- Mocked `nostrClient.readRelays` in `tests/app-batch-fetch-profiles.test.mjs` to fix assertion errors caused by duplicate network calls.
- Regenerated `artifacts/todos.txt` with the clean output.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 01:39:48 +00:00
google-labs-jules[bot]andPR0M3TH3AN 75fe39c862 fix(test): mock nostrClient.readRelays in profile batch fetcher test
This fixes a CI failure where `batchFetchProfilesFromRelays` made duplicate relay calls because `nostrClient.readRelays` was not mocked, causing it to fall back to default values or overlap with the mocked `nostrClient.relays`.

The test `tests/app-batch-fetch-profiles.test.mjs` now explicitly saves, mocks, and restores `nostrClient.readRelays` to ensure test isolation and accurate call counts.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 01:31:17 +00:00
google-labs-jules[bot]andPR0M3TH3AN ac1cadd41e chore(ai): triage TODOs and FIXMEs
Scanned the codebase for TODO/FIXME markers.
Generated artifacts/todos.txt.
Verified that identified TODOs in tests/visual/moderation.spec.ts are tracked in issues/todo-moderation-tests.md.
No new issues or PRs required as no other actionable TODOs were found.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 01:24:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN 2ba9b6c4a5 fix(test): mock hashtagPreferencesService.load in profile modal tests
- Updates `tests/profile-modal-controller.test.mjs` to include a mock for `load()` in `baseHashtagPreferences`.
- Resolves the `TypeError: this.hashtagPreferencesService.load is not a function` error seen in CI.
- Ensures unit tests pass for ProfileModalController interactions with the hashtag pane.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 00:27:28 +00:00
thePR0M3TH3AN 73c705831b Merge pull request #1958 from PR0M3TH3AN/codex/add-batching-and-debouncing-to-ui-updates
Debounce direct-message UI updates (250ms)
2026-01-29 19:07:40 -05:00
thePR0M3TH3AN 2726ee9ed4 Batch direct message UI updates 2026-01-29 19:07:29 -05:00
google-labs-jules[bot]andPR0M3TH3AN b594a87ef2 fix(build): fail build if critical files are missing in dist
- Updates `scripts/build-dist.mjs` to exit with error code 1 if source files like `_redirects` or `_headers` are missing.
- Prevents silent failures where `dist` directory is incomplete, potentially causing Netlify deployment checks to fail ambiguously.
- Ensures `build:css` failure also terminates the build process explicitly.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-30 00:05:09 +00:00
thePR0M3TH3AN 4d1c9f8ec9 Merge pull request #1957 from PR0M3TH3AN/codex/identify-cache-modules-for-profiles-and-dms
Merge cached profile fields and stabilize DM cache merging
2026-01-29 19:01:34 -05:00
thePR0M3TH3AN f0f36e7c7b Merge cached profile and DM data safely 2026-01-29 19:01:11 -05:00
google-labs-jules[bot]andPR0M3TH3AN 6ffc53079c fix(test): mock readRelays in batch fetch test to prevent extra queries
- Updates `tests/app-batch-fetch-profiles.test.mjs` to mock `nostrClient.readRelays` alongside `relays` and `writeRelays`.
- Ensures `batchFetchProfilesFromRelays` queries only the mocked test relays (fast/fail), resolving the `4 !== 2` assertion error in CI.
- Matches logic in `profileMetadataService.js` which prioritizes `readRelays`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 23:58:27 +00:00
google-labs-jules[bot]andPR0M3TH3AN de7fceb8e2 feat: enhance automated PR review script with batch processing and refactoring
- Refactored `scripts/automated-pr-review.mjs` to separate review logic into `reviewPR` function.
- Added `--all` flag to support iterating over all open PRs using `gh` CLI.
- Updated commit message for micro-fixes to `fix(ai): formatting (agent) suggested`.
- Improved error handling and context management (e.g., passing `baseRef`).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 23:21:32 +00:00
google-labs-jules[bot]andPR0M3TH3AN 505d8dfc3c fix(deploy): update netlify config and smoke test
- Update `netlify.toml` to explicitly include redirect and header rules, ensuring they are picked up even if file copying fails or is inconsistent.
- Fix `scripts/agent/smoke-test.mjs` to ensure process cleanup on failure (avoiding zombie processes) and use polling for server startup (improving reliability).
- Verified smoke test passes locally.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 22:44:57 +00:00
google-labs-jules[bot]andPR0M3TH3AN 3c9f9841fc fix(test): mock load method in hashtagPreferences service
- Add `load: async () => {}` stub to `baseHashtagPreferences` in `tests/profile-modal-controller.test.mjs` to prevent `TypeError` during `handleAddHashtagPreference` test.
- Fixes CI failure in `tests/profile-modal-controller.test.mjs` where `this.hashtagPreferencesService.load` was undefined.
- Verified with `npm run test:unit:shard3`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 22:30:26 +00:00
google-labs-jules[bot]andPR0M3TH3AN 06dfe6278a chore(ai): add smoke test script (agent)
- Add scripts/agent/smoke-test.mjs for E2E verification
- Fix js/app.js to expose activeProfilePubkey and savedProfiles
- Fix tests/app-batch-fetch-profiles.test.mjs mocking (CI fix)
- Ensure smoke test uses Node.js compatible imports

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 22:00:17 +00:00
google-labs-jules[bot]andPR0M3TH3AN 624dabc576 chore(ai): add smoke test script (agent)
- Added `scripts/agent/smoke-test.mjs` which performs an end-to-e2e smoke test using a local relay, Node.js client, and headless Playwright browser.
- Fixed a bug in `js/app.js` where `activeProfilePubkey` and `savedProfiles` getters were missing, preventing auto-login and session restoration.
- The smoke test verifies:
    - Login flow (using ephemeral keys and localStorage injection).
    - Relay connection (using a local test relay).
    - Publish and Receive flow (Video Post).
    - DM Encryption/Decryption flow (Node.js client).

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 21:45:32 +00:00
thePR0M3TH3AN 8779cd2524 Merge pull request #1954 from PR0M3TH3AN/codex/refactor-subscription-logic-and-add-logging
Centralize relay subscriptions and route profile fetches through metadata service
2026-01-29 16:32:23 -05:00
thePR0M3TH3AN a196e95127 Centralize relay list subscriptions 2026-01-29 16:32:11 -05:00
thePR0M3TH3AN 25e51cd5a0 Merge pull request #1953 from PR0M3TH3AN/codex/locate-nip-07-login-flow
Immediate UI update on NIP-07 login and parallelize profile/lists/DM hydration
2026-01-29 16:13:47 -05:00
thePR0M3TH3AN bba94b9908 Improve login hydration parallelism 2026-01-29 16:13:35 -05:00
thePR0M3TH3AN 901e8248a5 Merge pull request #1952 from PR0M3TH3AN/codex/audit-dm-fetching-logic-for-nip-04-and-nip-44
Include NIP-04 and NIP-44 kinds in DM filters
2026-01-29 16:09:07 -05:00
thePR0M3TH3AN 4b1725b1f1 Expand DM filters for gift-wrapped events 2026-01-29 16:08:52 -05:00
thePR0M3TH3AN 603e6b45f2 Merge pull request #1951 from PR0M3TH3AN/codex/add-batching-and-debouncing-for-relay-events
Batch relay-driven UI refreshes
2026-01-29 16:05:19 -05:00
thePR0M3TH3AN 7596f8b8fd Batch relay-driven UI refreshes 2026-01-29 16:05:03 -05:00
thePR0M3TH3AN 78618f47b4 Merge pull request #1950 from PR0M3TH3AN/codex/inspect-and-improve-relay-connection-logic
Harden relay reconnects with bounded backoff and per-relay circuit breakers
2026-01-29 16:01:23 -05:00
thePR0M3TH3AN f4e2177af2 Add relay reconnect backoff and circuit breakers 2026-01-29 16:01:12 -05:00
thePR0M3TH3AN b58b4b0df6 Merge pull request #1949 from PR0M3TH3AN/codex/review-and-update-logout-flow-cache-handling
Reset profile and DM caches on logout
2026-01-29 15:55:14 -05:00
thePR0M3TH3AN 1642b787ec Reset caches on logout 2026-01-29 15:54:44 -05:00
thePR0M3TH3AN 3b3e7c757c Merge pull request #1948 from PR0M3TH3AN/codex/split-hydration-into-tiers-for-data-fetch
Tiered post-login hydration; defer blocks and reduce DM payloads
2026-01-29 15:43:48 -05:00
thePR0M3TH3AN aad2fe465a Tier login hydration and trim DM fetch 2026-01-29 15:43:34 -05:00
thePR0M3TH3AN 83efdfcec7 Merge pull request #1947 from PR0M3TH3AN/codex/locate-dm-state-management-in-cache
Merge paged DM results into stable cache keyed by event id
2026-01-29 15:33:14 -05:00
thePR0M3TH3AN 57d68846d1 Merge paged DM results into cache 2026-01-29 15:33:03 -05:00
google-labs-jules[bot]andPR0M3TH3AN 40e809245a chore(ai): remove dead code (agent)
Removed unused exports and functions identified as dead code.
- Removed unused exports from `js/utils/storage.js`, `js/utils/storagePointer.js`, `js/utils/videoTags.js`, `js/ui/moderationCopy.js`.
- Removed unused function `updateTagPillStrip` from `js/ui/components/tagPillList.js` and associated tests.
- Updated `tests/utils/video-tags.test.mjs` to remove test for private function.
- Added `artifacts/depcheck.json` showing dependency analysis.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 20:29:42 +00:00
thePR0M3TH3AN a127a71a73 Merge pull request #1945 from PR0M3TH3AN/codex/consolidate-fetch-calls-for-data-types
Consolidate profile metadata fetching and dedupe list/DM subscriptions
2026-01-29 15:25:21 -05:00
thePR0M3TH3AN 89b8d124fa Consolidate profile metadata fetches 2026-01-29 15:25:08 -05:00
thePR0M3TH3AN d698eff9cd Merge pull request #1944 from PR0M3TH3AN/codex/implement-nip-07-login-flow-updates
Improve login flow concurrency and loading states
2026-01-29 15:13:28 -05:00
thePR0M3TH3AN e9db549406 Update login flow loading states 2026-01-29 15:13:12 -05:00
thePR0M3TH3AN 8e26d7bed8 Merge pull request #1941 from PR0M3TH3AN/codex/update-non-blocking-auth-login-flow
Defer decrypt permission prompts; surface “loading in background” for hashtag prefs & subscriptions
2026-01-29 13:08:48 -05:00
thePR0M3TH3AN 379287c87c Defer subscription and hashtag decrypt prompts 2026-01-29 13:08:35 -05:00
thePR0M3TH3AN 2ed1a37518 Merge pull request #1940 from PR0M3TH3AN/codex/update-dm-hydration-and-activepubkey-handling
Load direct messages during login and guard identity refresh
2026-01-29 12:47:05 -05:00
thePR0M3TH3AN ce5e0e5726 Load DMs on login and fix identity refresh 2026-01-29 12:46:54 -05:00
thePR0M3TH3AN 66ba0b81a6 Merge pull request #1939 from PR0M3TH3AN/codex/decide-ownership-for-block-list-loading
Centralize block list loading in AuthService (remove app-level load)
2026-01-29 12:44:17 -05:00
thePR0M3TH3AN 377e6283a7 Remove duplicate block list load from app login 2026-01-29 12:43:58 -05:00
thePR0M3TH3AN 0cf39bce79 Merge pull request #1938 from PR0M3TH3AN/codex/refactor-authservice-for-partial-results
Emit post-login hydration updates without blocking login
2026-01-29 12:41:18 -05:00
thePR0M3TH3AN 95dc380f54 Emit post-login hydration events 2026-01-29 12:40:50 -05:00
thePR0M3TH3AN f46d90d1ae Merge pull request #1937 from PR0M3TH3AN/codex/add-extension-warm-up-routine-and-updates
Warm up NIP-07 extension readiness cache
2026-01-29 12:33:44 -05:00
thePR0M3TH3AN 589fdd2ec4 Warm up NIP-07 extension state 2026-01-29 12:33:27 -05:00
thePR0M3TH3AN a3b5bbb84f Merge pull request #1927 from PR0M3TH3AN/ai/doc-nostr-client-20250626-113034413351037010
chore(ai): document js/nostr/client.js
2026-01-29 11:56:30 -05:00
thePR0M3TH3AN ac4d27d5cc Merge pull request #1934 from PR0M3TH3AN/ai/fuzz-targets-20250125-13947639872878528331
Add fuzzing harnesses for Nostr schemas, DM decryptor, and magnet utils
2026-01-29 11:55:50 -05:00
thePR0M3TH3AN d04a8b1bf5 Merge pull request #1930 from PR0M3TH3AN/ds-audit/2026-01-29-15242833868872636900
Daily Design System Audit Remediation
2026-01-29 11:55:26 -05:00
google-labs-jules[bot]andPR0M3TH3AN 8fd9fb4a18 chore: Add daily design system audit script
- Add `audit` script to `package.json`.
- Add `scripts/daily-design-system-audit.mjs` implementation.
- Update `scripts/daily-design-system-audit.mjs` to explicitly lint `css/docs.css`.
- Revert changes to `lint:css` in `package.json` to prevent potential CI regressions.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 16:53:51 +00:00