Commit Graph
1821 Commits
Author SHA1 Message Date
thePR0M3TH3AN 1642b787ec Reset caches on logout 2026-01-29 15:54:44 -05:00
thePR0M3TH3AN aad2fe465a Tier login hydration and trim DM fetch 2026-01-29 15:43:34 -05:00
thePR0M3TH3AN 57d68846d1 Merge paged DM results into cache 2026-01-29 15:33:03 -05:00
thePR0M3TH3AN 89b8d124fa Consolidate profile metadata fetches 2026-01-29 15:25:08 -05:00
thePR0M3TH3AN e9db549406 Update login flow loading states 2026-01-29 15:13:12 -05:00
thePR0M3TH3AN 379287c87c Defer subscription and hashtag decrypt prompts 2026-01-29 13:08:35 -05:00
thePR0M3TH3AN ce5e0e5726 Load DMs on login and fix identity refresh 2026-01-29 12:46:54 -05:00
thePR0M3TH3AN 377e6283a7 Remove duplicate block list load from app login 2026-01-29 12:43:58 -05:00
thePR0M3TH3AN 95dc380f54 Emit post-login hydration events 2026-01-29 12:40:50 -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 c4a00653f4 Move DM relay settings into DM settings popover 2026-01-29 11:52:41 -05:00
thePR0M3TH3AN f116fff337 Wire profile modal refresh buttons 2026-01-29 11:35:15 -05:00
thePR0M3TH3AN fc95cd30ee Add DM relay fallback on discovery errors 2026-01-29 11:07:09 -05:00
thePR0M3TH3AN 5acdaa3b52 Respect list timeouts in incremental fetch 2026-01-29 11:01:40 -05:00
thePR0M3TH3AN 05f092ff9b Add relay fallback when healthy relays exhausted 2026-01-29 10:54:37 -05:00
google-labs-jules[bot]andPR0M3TH3AN 34f79c4e3f chore(ai): doc js/nostr/client.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 15:40:02 +00:00
thePR0M3TH3AN 1c51b29702 Improve media failure messaging and fallbacks 2026-01-29 10:40:01 -05:00
thePR0M3TH3AN 21ec20fc3f Improve user block list decryption handling 2026-01-29 10:27:22 -05:00
thePR0M3TH3AN c3e986c9d3 Improve relay hygiene and count status 2026-01-29 09:58:35 -05:00
google-labs-jules[bot]andPR0M3TH3AN bf7988226d Fix WebTorrent client race condition and silence legacy avatar warning
- Added a null check for `this.client` in `js/webtorrent.js` after `await this.init()` to prevent `TypeError` when cleanup occurs during initialization.
- Updated `js/utils/profileMedia.js` to silently ignore the legacy `images/robot.png` path, preventing "Unsupported media URL" warnings.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 14:14:30 +00:00
thePR0M3TH3AN 1b44dce544 Merge branch 'unstable' into ai/tests-nostr-20241026-16120042856826786205 2026-01-29 08:20:11 -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 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 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
google-labs-jules[bot]andPR0M3TH3AN aabed9aed2 refactor(ai): extract videoSettingsMenuController from js/app.js (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-29 03:19:06 +00:00
google-labs-jules[bot]andPR0M3TH3AN cfbbf78941 chore(ai): add automated PR review report
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 23:49:33 +00:00
thePR0M3TH3AN 10d628fe35 Fix ensureLoaded pubkey guard 2026-01-28 16:57:24 -05:00
thePR0M3TH3AN c14b29031c Handle empty block list when signed out 2026-01-28 16:49:31 -05:00
thePR0M3TH3AN 4f6035f709 Remove duplicate NIP-07 permission check 2026-01-28 15:40:07 -05:00
thePR0M3TH3AN 7992098f0f Merge pull request #1902 from PR0M3TH3AN/fix-nip07-permissions-login-4760472543706451561
fix(auth): restore NIP-07 permission request flow on login
2026-01-28 15:29:58 -05:00
thePR0M3TH3AN b9f01e3f74 Merge pull request #1903 from PR0M3TH3AN/codex/add-fast-relays-for-initial-fetch
Fast-relay fast-path for subscription/hashtag/block list fetches with background full-relay fallback
2026-01-28 15:29:10 -05:00
thePR0M3TH3AN e4ad07b2cf Add fast relay fallback for list fetches 2026-01-28 15:28:58 -05:00
google-labs-jules[bot]andPR0M3TH3AN 9edf4e3e6b fix(auth): restore NIP-07 permission request flow on login (agent)
This change restores the missing `ensureExtensionPermissions` call in `NostrClient.loginWithExtension` to ensure that encryption permissions (NIP-04/NIP-44) are requested upfront as intended. It also updates the unit tests to match the current optimized permission request strategy (Plain -> Structured -> String) and fixes a timeout calculation logic that was preventing fast test execution.

- js/nostr/client.js: Added `ensureExtensionPermissions` call in `loginWithExtension` and throw on failure.
- js/nostr/nip07Permissions.js: Allow short timeouts (<1s) to bypass the default 15s minimum for faster testing.
- tests/nostr-login-permissions.test.mjs: Updated test expectations to match the Plain -> Structured -> String request order.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 20:17:13 +00:00
thePR0M3TH3AN 5eb8ce9799 Merge pull request #1900 from PR0M3TH3AN/fix-nip07-permissions-17914553616063457773
fix(auth): request NIP-07 permissions during login and fix retry order
2026-01-28 15:16:48 -05:00
thePR0M3TH3AN dd9b9f1968 Defer login hydration loads 2026-01-28 15:15:52 -05:00
google-labs-jules[bot]andPR0M3TH3AN 4e549709a9 fix(auth): request NIP-07 permissions during login and fix retry order (agent)
- Updated `NostrClient.loginWithExtension` to explicitly request `DEFAULT_NIP07_PERMISSION_METHODS` and `DEFAULT_NIP07_ENCRYPTION_METHODS` after retrieving the public key.
- Ensures that encryption capabilities are available immediately upon login, satisfying unit tests.
- Modified `requestEnablePermissions` in `js/nostr/nip07Permissions.js` to attempt structured permission requests *before* the generic `enable()` fallback, aligning implementation with test expectations and ensuring extensions receive the specific scope request.
- `loginWithExtension` now throws if the permission request fails.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 20:12:17 +00:00
thePR0M3TH3AN 4fcb785f58 Adjust NIP-07 enable timeouts 2026-01-28 15:05:38 -05:00
thePR0M3TH3AN f0e27d175d Adjust NIP-07 timeouts and document overrides 2026-01-28 15:00:20 -05:00
thePR0M3TH3AN 7c47208255 Adjust NIP-07 permissions for decrypt flows 2026-01-28 14:47:06 -05:00
thePR0M3TH3AN c67bf61c50 Preload DM decryptor after NIP-07 login 2026-01-28 14:06:20 -05:00
thePR0M3TH3AN 596e2f472b Preserve NIP-07 permissions on logout 2026-01-28 14:03:43 -05:00
thePR0M3TH3AN 377564c53b Merge pull request #1893 from PR0M3TH3AN/codex/add-centralized-permission-gate
Add shared NIP-07 permission gate with memoized in-flight promise
2026-01-28 13:59:41 -05:00
thePR0M3TH3AN cf9082b83f Add shared NIP-07 permission gate 2026-01-28 13:57:40 -05:00
thePR0M3TH3AN e24207c12d Merge pull request #1892 from PR0M3TH3AN/ai/debug-frontend-20260128-16915912596521663527
fix(ai): frontend console error — ignore .torrent urls in probeUrl (agent)
2026-01-28 13:51:43 -05:00
google-labs-jules[bot]andPR0M3TH3AN 9f60eeaaf2 fix(ai): frontend console error — ignore .torrent urls in probeUrl (agent)
Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 18:50:36 +00:00
thePR0M3TH3AN b48dd4a28e Adjust NIP-07 enable permission fallback 2026-01-28 13:47:19 -05:00
thePR0M3TH3AN 57e9dfff2c Adjust NIP-07 login permission flow 2026-01-28 13:44:21 -05:00
google-labs-jules[bot]andPR0M3TH3AN 90a74e7721 fix(perf): parallelize user data loading during NIP-07 login
Optimizes `handleAuthLogin` in `js/app.js` to run user data fetching (blocks, subscriptions, hashtag preferences) in the background instead of blocking the main UI render. This significantly improves perceived login speed, especially for users with large lists or slow NIP-07 extensions.

- Moves `userBlocks.seedWithNpubs` (which involves publishing) to background.
- Moves `subscriptions.ensureLoaded` and `hashtagPreferences.load` (which involve decryption) to background.
- Adds a race condition for `userBlocks.ensureLoaded` (read-only) with a short timeout to attempt early hydration without blocking indefinitely.
- Ensures the UI updates reactively when background data arrives via existing event listeners.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 18:02:37 +00:00