Skip to content

Commit 672fc3c

Browse files
authored
Remove remaining Supabase clients and drop @supabase/supabase-js (#90)
* Remove remaining Supabase clients and drop the dependency - 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. * Update auto-qa baselines: supabase imports 10→0, GNOSIS_RPCS 5→4 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.
1 parent e52a020 commit 672fc3c

8 files changed

Lines changed: 39 additions & 1792 deletions

File tree

auto-qa/tests/algebra-pool-price.test.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* This file targets the newer Algebra Integral shape. A regression
1717
* that flips them silently mis-decodes globalState in production.
1818
*
19-
* 2. GNOSIS_RPCS — 5 endpoints, HTTPS-only, deduplicated. Cross-pin
19+
* 2. GNOSIS_RPCS — 4 endpoints, HTTPS-only, deduplicated. Cross-pin
2020
* vs the canonical lists in getRpcUrl.js / providers.jsx (already
2121
* covered in rpc-config.test.mjs but here as a third occurrence
2222
* worth pinning so the duplication is visible).
@@ -121,15 +121,15 @@ test('cross-file divergence — algebraQuoter.js POOL_ABI uses the OLDER V3 7-fi
121121
});
122122

123123
// ---------------------------------------------------------------------------
124-
// GNOSIS_RPCS — 5 endpoints, HTTPS-only, deduplicated
124+
// GNOSIS_RPCS — 4 endpoints, HTTPS-only, deduplicated
125125
// ---------------------------------------------------------------------------
126126

127-
test('GNOSIS_RPCS — has exactly 5 entries (drift surfaces as more/fewer fallback options)', () => {
127+
test('GNOSIS_RPCS — has exactly 4 entries (drift surfaces as more/fewer fallback options)', () => {
128128
const m = SRC.match(/GNOSIS_RPCS\s*=\s*\[([\s\S]*?)\]/);
129129
assert.ok(m);
130130
const urls = [...m[1].matchAll(/['"]([^'"]+)['"]/g)].map(x => x[1]);
131-
assert.equal(urls.length, 5,
132-
`GNOSIS_RPCS drifted from 5 entries; got ${urls.length}. ` +
131+
assert.equal(urls.length, 4,
132+
`GNOSIS_RPCS drifted from 4 entries; got ${urls.length}. ` +
133133
`Compare against rpc-config.test.mjs canonical list.`);
134134
});
135135

auto-qa/tests/dead-references.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ test('PR #43 — no tickspread.com URLs remain in src/', () => {
6868
});
6969

7070
// ────────────────────────────────────────────────────────────────────────
71-
// PR #47 — Remove dead Supabase code (cleanup is PARTIAL)
71+
// PR #47 — Remove dead Supabase code (cleanup COMPLETE as of PR #90)
7272
//
7373
// Baseline = the count of imports as of this iteration. If new ones get
7474
// added: test fails (regression). If real-fix work removes some: test
7575
// fails (forces the baseline to be lowered, ratcheting the cleanup).
7676
// ────────────────────────────────────────────────────────────────────────
77-
const SUPABASE_IMPORT_BASELINE = 10;
77+
const SUPABASE_IMPORT_BASELINE = 0;
7878

7979
test('PR #47 — supabase import count matches baseline', () => {
8080
const hits = findHits("from\\s+['\"]@supabase/supabase-js['\"]");

package-lock.json

Lines changed: 0 additions & 96 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"@safe-global/protocol-kit": "^6.1.2",
3333
"@safe-global/safe-core-sdk-types": "^5.1.0",
3434
"@storybook/addon-actions": "^8.1.10",
35-
"@supabase/supabase-js": "^2.97.0",
3635
"@swapr/sdk": "github:rodsouto/swapr-sdk#5e3b4f7abf8411434f0a05628a23653c8d6b87a0",
3736
"@tanstack/react-query": "^5.62.16",
3837
"@uniswap/universal-router-sdk": "^4.32.0",

0 commit comments

Comments
 (0)