Skip to content

Commit 97c964c

Browse files
amcaplanclaude
andcommitted
Remove old GraphiQL template implementation
With the new standalone React 18 package now fully functional, remove the deprecated template-based implementation to reduce technical debt. Changes: - Deleted packages/app/src/cli/services/dev/graphiql/templates/graphiql.tsx (old template) - Inlined DEFAULT_SHOP_QUERY constant in server.ts (was imported from deleted template) - Server now uses React app's default content instead of server-side templates The modern graphiql-console package handles all UI rendering and default content through its own constants and components. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 63057f6 commit 97c964c

File tree

2 files changed

+15
-367
lines changed

2 files changed

+15
-367
lines changed

packages/app/src/cli/services/dev/graphiql/server.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import {defaultQuery} from './templates/graphiql.js'
21
import {unauthorizedTemplate} from './templates/unauthorized.js'
32
import express from 'express'
43
import bodyParser from 'body-parser'
@@ -17,6 +16,20 @@ import {createRequire} from 'module'
1716

1817
const require = createRequire(import.meta.url)
1918

19+
// Default query for GraphiQL - matches DEFAULT_SHOP_QUERY in graphiql-console package
20+
const DEFAULT_SHOP_QUERY = `query shopInfo {
21+
shop {
22+
name
23+
url
24+
myshopifyDomain
25+
plan {
26+
displayName
27+
partnerDevelopment
28+
shopifyPlus
29+
}
30+
}
31+
}`
32+
2033
class TokenRefreshError extends AbortError {
2134
constructor() {
2235
super('Failed to refresh credentials. Check that your app is installed, and try again.')
@@ -181,7 +194,7 @@ export function setupGraphiQLServer({
181194
storeFqdn,
182195
baseUrl,
183196
key: key ?? undefined,
184-
query: query ?? defaultQuery,
197+
query: query ?? DEFAULT_SHOP_QUERY,
185198
}
186199

187200
// Inject config script before </head>

0 commit comments

Comments
 (0)