SkateSpots/src/lib
shakespeare.diy 0ac5c1019d fix: eliminate all render-path nip44 getter crashes (Browser extension not available)
Root cause: NUser's extension signer exposes .nip44 as a getter that calls
.nostr (window.nostr) and THROWS when the extension isn't present. Any
synchronous access during render crashes the whole tree — the actual culprit
was useStash's `isEncryptionAvailable: !!user?.signer?.nip44` in its return
object, evaluated every render even when logged out.

- Add src/lib/signerCapabilities.ts: hasNip44/hasNip04 helpers that determine
  capability via login type + direct window.nostr probe (no throwing getter).
- useStash: use the helper for hasNip44 + isEncryptionAvailable
- useDirectMessages: replace all render-path `enabled: !!user?.signer?.nip44`
  with a pre-computed nip44Available across all 4 conversation hooks
- CrewChat, CrewRequestToJoin, ConversationPage, DirectMessagesPage,
  ContactsPage: use the safe helper in render/guard paths

Async accesses (inside queryFn/callbacks) are left as-is — they reject
gracefully within react-query and never crash render.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-07-30 19:37:08 +07:00
..
stubs feat: map as homepage, 3D globe, camera fix, Sasquatch upgrades, UI/UX polish 2026-07-22 22:47:39 +07:00
wallet fix: remove orphaned canvas code from RiderCardPage causing ctx/Printer is not defined crash 2026-06-16 17:02:59 +07:00
amber.ts fix: Amber intent: format + # in callbackUrl breaks intent parsing 2026-07-08 11:36:03 +07:00
capacitorAmberSigner.ts Amber signing: add timeout + one-time setPackageName so hangs surface as errors (v1.0.74) 2026-07-24 21:13:58 +07:00
crewAgent.ts Crew Agent Phases 0–2: opt-in AI guide (🐝 Sasquatch) per crew 2026-07-24 19:26:19 +07:00
crewHelpers.ts Crews: proximity discovery, activity/rep signals, treasury, hiring pipeline, crew-hosted events + reverse links; add Contacts page 2026-07-25 12:38:45 +07:00
exchangeRateService.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
genUserName.test.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
genUserName.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
geolocation.ts Fix Near Me crash on GrapheneOS: avoid Play-Services position API 2026-07-25 14:08:23 +07:00
glossary.ts Glossary: drop difficulty levels, expand & correct tricks 2026-07-29 23:08:37 +07:00
lightningAddress.ts Add duration tiers + layered NIP-57 zap verification, extend featured/Pro to tours 2026-07-24 16:18:15 +07:00
mintReachability.ts Platform-aware wallet mints (Option C: native + browser scoping) 2026-07-24 17:22:41 +07:00
nip06.test.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
nip06.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
offlineCache.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
platform.ts Platform-aware wallet mints (Option C: native + browser scoping) 2026-07-24 17:22:41 +07:00
polyfills.ts New project created with Shakespeare 2026-06-15 19:49:07 +07:00
quickCapture.ts Fix Quick Snap opening gallery instead of camera on native (v1.0.70) 2026-07-24 19:47:36 +07:00
relatr.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
sanitizeUrl.ts security: implement all 8 protection measures 2026-06-18 14:03:15 +07:00
sasquatchBrain.ts feat(sasquatch): Pro receipt DM + local Pro FAQ + tougher free-tier answers 2026-07-30 00:21:34 +07:00
sasquatchPro.ts Sasquatch Pro Phase 3: npub-bound Lightning paywall + gating 2026-07-29 23:33:39 +07:00
signerCapabilities.ts fix: eliminate all render-path nip44 getter crashes (Browser extension not available) 2026-07-30 19:37:08 +07:00
skateboardRating.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
skateTags.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
spotStatus.ts Add community Spot Status Reports (kind 2259) 2026-07-24 23:06:10 +07:00
tripPlanner.ts feat(sasquatch): add Trip Planner + tougher free-tier fallback + new joke book 2026-07-30 00:04:28 +07:00
types.ts Sasquatch Pro Phase 3: npub-bound Lightning paywall + gating 2026-07-29 23:33:39 +07:00
utils.ts New project created with Shakespeare 2026-06-15 19:49:07 +07:00
weather.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00