feat: Mainnet migration + Reality Tunnel trust-weighted filtering#47
feat: Mainnet migration + Reality Tunnel trust-weighted filtering#47y4motion wants to merge 1 commit intointuition-box:devfrom
Conversation
… filtering - api/Base.js: testnet.intuition.sh -> mainnet.intuition.sh/v1/graphql - api.js: 'base' endpoint URL + displayName updated to Intuition Mainnet - App.js: green Mainnet badge, trustThreshold state wired to GraphVisualization - RealityTunnel.js: added Trust Threshold slider (0-100%) + filterGraphByTrust helper - GraphVisualization.js: imports filterGraphByTrust, applies via useMemo as displayGraphData - App.css: trust-threshold pill + custom range slider styles (green accent) Closes intuition-box#45
|
Hi @jeremie-olivier and @danielamodu 👋 This PR implements the full scope of Mission 05 (#45): Mainnet migration — all GraphQL endpoints now point to Reality Tunnel enhancement — added a Trust Threshold slider that filters graph nodes/edges by vault share weight (% of max total_shares). The filter is a pure Happy to adjust anything based on your feedback. Let me know if you'd like the Reality Tunnel feature scoped differently! |
|
Hey! Thanks for the tag. The mainnet migration looks clean — GraphQL endpoint switch and network badge update are exactly what was needed. On the Reality Tunnel Trust Threshold slider:
Happy to test on mainnet and report back if you need QA eyes on it. |
Summary
Resolves #45 — migrates
graph.intuition.boxfrom testnet to Intuition Mainnet and enhances the Reality Tunnel with a trust-weighted graph filter.Changes
🌐 Mainnet Migration
src/api/Base.jstestnet.intuition.sh→mainnet.intuition.sh/v1/graphqlsrc/api.jsbaseendpoint URL + display name → Intuition Mainnetsrc/App.js🔭 Reality Tunnel — Trust-Weighted Filtering
The Reality Tunnel panel now includes a Trust Threshold slider that filters the graph by vault share weight:
vault.total_shares < threshold × max_sharesare hidden; edges where either endpoint is hidden are also prunedfilterGraphByTrust()applied viauseMemo— base graph state is never mutated, filter is instant and reversiblesrc/RealityTunnel.jsfilterGraphByTrust()pure helpersrc/GraphVisualization.jsfilterGraphByTrust, acceptstrustThresholdprop, applies viauseMemoasdisplayGraphDatasrc/App.cssHow it works
Testing
mainnet.intuition.sh/v1/graphql