Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(www): bucket Codex/ChatGPT/OpenAI responses in SoS chart (DEBR-302) (#46398)

Alan Danieladeb6bf56c1c
diff --git a/apps/www/app/state-of-startups/components/charts/AICodingToolsChart.tsx b/apps/www/app/state-of-startups/components/charts/AICodingToolsChart.tsx
index 4908714d640..f81f21dc613 100644
--- a/apps/www/app/state-of-startups/components/charts/AICodingToolsChart.tsx
+++ b/apps/www/app/state-of-startups/components/charts/AICodingToolsChart.tsx
@@ -18,9 +18,12 @@ function generateAICodingToolsSQL(activeFilters: Record<string, string>) {
'Tempo',
'None'
) THEN technology
+ WHEN LOWER(technology) LIKE '%antigravity%' THEN 'Antigravity'
WHEN LOWER(technology) LIKE '%claude%' THEN 'Claude or Claude Code'
- WHEN LOWER(technology) = 'chatgpt' THEN 'ChatGPT'
- ELSE 'Other'
+ WHEN LOWER(technology) LIKE '%codex%'
+ OR LOWER(technology) LIKE '%chatgpt%'
+ OR LOWER(technology) LIKE '%chat gpt%'
+ OR LOWER(technology) LIKE '%openai%' THEN 'Codex'
END AS technology_clean
FROM (
SELECT id, unnest(ai_coding_tools) AS technology
@@ -28,10 +31,11 @@ function generateAICodingToolsSQL(activeFilters: Record<string, string>) {
${whereClause}
) sub
)
- SELECT
+ SELECT
technology_clean AS technology,
COUNT(DISTINCT id) AS total
FROM ai_coding_tools_mapping
+ WHERE technology_clean IS NOT NULL
GROUP BY technology_clean
ORDER BY total DESC;`
}