Skip to content

Remove remaining Supabase clients and drop @supabase/supabase-js#90

Merged
krandder merged 2 commits into
mainfrom
remove-supabase-leftovers
Jul 5, 2026
Merged

Remove remaining Supabase clients and drop @supabase/supabase-js#90
krandder merged 2 commits into
mainfrom
remove-supabase-leftovers

Conversation

@krandder

@krandder krandder commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

What

Finishes the Supabase purge that #88 started. #88 only removed Supabase from the two bug-path files; three files still constructed live clients (one with a hardcoded project URL) and the npm dependency remained.

  • Deleted RecentTradesDataLayer.jsx — live client from env vars + realtime channels. Never rendered in prod: ENABLE_SUBGRAPH_FOR_ALL_PROPOSALS = true (featureFlags.js) forces useSubgraphTrades, so the ternary always picks SubgraphTradesDataLayer.
  • MarketPageShowcaseViewModel.jsx — removed module-level client (hardcoded nvhqdqtlsdboctqjcelq.supabase.co) and Supabase candle fetches; subgraph path kept.
  • MarketHistoryViewModel.jsx — removed guarded client init, fetchTradeHistoryFromSupabase, dead edge-function endpoint, and realtime subscription effect. Exports consumed by MarketPageShowcase (getFormattedTrades, openTransactionInExplorer, useTradeHistory) preserved.
  • Removed @supabase/supabase-js from package.json + lockfile.

Verified

  • grep -rn "@supabase" src/ package.json → zero hits; lockfile has zero @supabase entries.
  • futarchy-sdk sub-package still declares its own @supabase/supabase-js, but src only imports its three executor cartridges, which import only viem + a local util — no transitive pull into the interface build.
  • npm run build (static export) passes.
  • Netlify prod env contains only OPS_SIGNER_ACCESS_KEY — no Supabase vars — so everything removed was already dead in production.

Intentionally left

  • scripts/generate-seo.mjs still reads Supabase (market_event, ai_prompts) — build-time only, via the optional build-with-seo script. Rewriting it registry-fed is Tier 0 of the self-serve program (hub-9du).
  • Cosmetic "Supabase"-named residue (comments, variable names in untouched files, futarchy-sdk internals not consumed by the app).

🤖 Generated with Claude Code

- Delete RecentTradesDataLayer.jsx (never rendered in prod: ENABLE_SUBGRAPH_FOR_ALL_PROPOSALS forces the subgraph path)
- Strip Supabase client + candle/trade fetch paths from MarketPageShowcaseViewModel and MarketHistoryViewModel (subgraph/SQL-direct paths kept)
- Remove @supabase/supabase-js from package.json and lockfile

Netlify prod env has no Supabase vars, so all removed code was dead weight.
scripts/generate-seo.mjs still references Supabase but only runs via the
optional build-with-seo script; replacing it with a registry-fed generator
is tracked separately.
@netlify

netlify Bot commented Jul 5, 2026

Copy link
Copy Markdown

Deploy Preview for futarchy ready!

Name Link
🔨 Latest commit 37805b5
🔍 Latest deploy log https://app.netlify.com/projects/futarchy/deploys/6a4acecf51d7e80008cd996d
😎 Deploy Preview https://deploy-preview-90--futarchy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

The supabase ratchet fired as designed (this PR removed the last 10
imports). The GNOSIS_RPCS count went stale on main when #89 dropped the
dead Blast entry after the auto-qa suite (#75) pinned it at 5.
@krandder krandder merged commit 672fc3c into main Jul 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant