feat: integrate Nostroots community notes into search map and profiles#2733
Open
leon-wbr wants to merge 29 commits into
Open
feat: integrate Nostroots community notes into search map and profiles#2733leon-wbr wants to merge 29 commits into
leon-wbr wants to merge 29 commits into
Conversation
Implements framework-agnostic NostrService class with connect/disconnect, map notes subscription, user notes fetch, and username resolution via kind 10390 events. Adds moduleNameMapper for nostr-tools/relay subpath to support Jest 26 resolution. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Wire up the NostrService to SearchMap so that enabling the Community Notes toggle subscribes to map notes for the visible area and renders them as blue circle markers via a new GeoJSON source and layer set. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds CommunityNotesPopup component that renders note content, verified indicator, relative timestamp, and Nostroots attribution when a pin is clicked; wires it into SearchMap via react-map-gl Popup with async Trustroots username resolution. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Creates NostrootsActionModal component that prompts users to open the Nostroots web app when they try to perform actions requiring Nostroots, wires it into SearchMap via the CommunityNotesPopup onActionGate prop. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Webpack 4 doesn't support package.json exports field, so nostr-tools/relay and nostr-tools/nip19 need explicit aliases to their CJS builds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ring Subscribe to kind 30398 events from the Nostroots validation server pubkey instead of filtering by plus-code prefixes. This fetches all verified map notes globally in a single subscription, removing the need to re-subscribe on map pan/zoom. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Clicking a community note pin now opens the sidebar (like hosts/meetups) showing all notes sharing the same plus code as a thread. Replaces the map popup approach. Also broadens filters to fetch all verified notes and adds debug logging. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Greenfield Nostr-native hospitality exchange platform with WoT-based encrypted offers, privacy by default, and legacy network connectors. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 tasks covering monorepo setup, all packages/apps scaffolded, CI/CD pipeline, Nostr key gen + relay client, and user stories checklist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…profile badge Align styles with Trustroots brand (replace hard-coded Material blue with @brand-primary), add keyboard accessibility to the action-gate modal (Escape, focus management, close button), rework modal to prioritize iOS/Android downloads matching notes.trustroots.org, add hover states and loading indicators to sidebar note cards, fix popup class name mismatch with LESS styles, and tighten spacing to use design tokens throughout. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
This was referenced Jun 7, 2026
Remove unrelated superpowers planning docs and dead CommunityNotesPopup code. Share a single nostrService singleton, close ephemeral relay subscriptions after EOSE, and drop debug logging. Clean up stale sidebar template attribute and unused openfreemap CSP entry. Add CommunityNotesSidebar tests and shared timeAgo helper. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Test plan
npx jest --testPathPattern="(CommunityNotesSidebar|NostrootsAction|ProfileNostr|nostr\.client\.service)")