Skip to content

Commit ad09e9d

Browse files
authored
Merge pull request #11612 from neinteractiveliterature/moar-spinnar
Remove treeshake:false, delete dead GraphQL ops, fix broken section-move route
2 parents 887fd48 + ce7ac05 commit ad09e9d

12 files changed

Lines changed: 106 additions & 184 deletions

File tree

.github/workflows/static.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ jobs:
3434
skip_install: true
3535
use_bundler: true
3636
only_changed: true
37+
check-graphql-documents:
38+
name: check-graphql-documents
39+
runs-on: ubuntu-latest
40+
if: github.actor != 'dependabot[bot]'
41+
steps:
42+
- uses: actions/checkout@v6
43+
- uses: actions/setup-node@v6
44+
with:
45+
cache: yarn
46+
- run: yarn install
47+
- run: yarn build:web
48+
- run: yarn check-graphql-documents
3749
eslint:
3850
name: eslint
3951
runs-on: ubuntu-latest

app/graphql/graphql_operations_generated.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/javascript/AppRouter.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,10 @@ export const appRootRoutes: RouteObject[] = [
11521152
{
11531153
path: ':sectionId',
11541154
children: [
1155+
{
1156+
path: 'move',
1157+
lazy: () => import('./FormAdmin/$id/edit/section/$sectionId/move'),
1158+
},
11551159
{
11561160
path: 'item',
11571161
lazy: () => import('./FormAdmin/$id/edit/section/$sectionId/item/route'),

app/javascript/EventsApp/StandaloneEditEvent/mutations.generated.ts

Lines changed: 1 addition & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
#import "./queries.graphql"
22

3-
mutation StandaloneDropEvent($input: DropEventInput!) {
4-
dropEvent(input: $input) {
5-
event {
6-
id
7-
status
8-
}
9-
}
10-
}
11-
123
mutation StandaloneUpdateEvent($input: UpdateEventInput!) {
134
updateEvent(input: $input) {
145
event {
@@ -18,38 +9,3 @@ mutation StandaloneUpdateEvent($input: UpdateEventInput!) {
189
}
1910
}
2011

21-
mutation StandaloneAttachImageToEvent($id: ID!, $signedBlobId: ID!) {
22-
attachImageToEvent(input: { id: $id, signedBlobId: $signedBlobId }) {
23-
event {
24-
id
25-
...StandaloneEditEvent_EventFields
26-
}
27-
}
28-
}
29-
30-
mutation StandaloneCreateMaximumEventProvidedTicketsOverride($input: CreateMaximumEventProvidedTicketsOverrideInput!) {
31-
createMaximumEventProvidedTicketsOverride(input: $input) {
32-
maximum_event_provided_tickets_override {
33-
id
34-
...StandaloneEditEvent_MaximumEventProvidedTicketsOverrideFields
35-
}
36-
}
37-
}
38-
39-
mutation StandaloneDeleteMaximumEventProvidedTicketsOverride($input: DeleteMaximumEventProvidedTicketsOverrideInput!) {
40-
deleteMaximumEventProvidedTicketsOverride(input: $input) {
41-
maximum_event_provided_tickets_override {
42-
id
43-
...StandaloneEditEvent_MaximumEventProvidedTicketsOverrideFields
44-
}
45-
}
46-
}
47-
48-
mutation StandaloneUpdateMaximumEventProvidedTicketsOverride($input: UpdateMaximumEventProvidedTicketsOverrideInput!) {
49-
updateMaximumEventProvidedTicketsOverride(input: $input) {
50-
maximum_event_provided_tickets_override {
51-
id
52-
...StandaloneEditEvent_MaximumEventProvidedTicketsOverrideFields
53-
}
54-
}
55-
}

app/javascript/MailingLists/queries.generated.ts

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

app/javascript/MailingLists/queries.graphql

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ fragment MailingListsResultFields on MailingListsResult {
1212
metadata_fields
1313
}
1414

15-
query MailingListsMenuQuery {
16-
convention: conventionByRequestHost {
17-
id
18-
ticket_mode
19-
ticket_name
20-
}
21-
}
22-
2315
query TicketedAttendeesQuery {
2416
convention: conventionByRequestHost {
2517
id
@@ -99,17 +91,6 @@ query WaitlistMailingListsQuery {
9991
}
10092
}
10193

102-
query WhosFreeFormConventionQuery {
103-
convention: conventionByRequestHost {
104-
id
105-
name
106-
starts_at
107-
ends_at
108-
timezone_name
109-
timezone_mode
110-
}
111-
}
112-
11394
query WhosFreeQuery($start: Date!, $finish: Date!) {
11495
convention: conventionByRequestHost {
11596
id

app/javascript/Store/queries.generated.ts

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

app/javascript/Store/queries.graphql

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
#import "./orderFields.graphql"
22
#import "./pricingStructureFields.graphql"
33

4-
query AdminStoreAbilityQuery {
5-
currentAbility {
6-
can_update_products
7-
can_update_orders
8-
}
9-
10-
convention: conventionByRequestHost {
11-
id
12-
timezone_name
13-
}
14-
}
15-
164
query OrderHistoryQuery {
175
convention: conventionByRequestHost {
186
id

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"scripts": {
1010
"analyze": "vite-bundle-visualizer",
1111
"build": "yarn run build:web && yarn run build:cli",
12+
"check-graphql-documents": "tsx scripts/check-graphql-documents.mts",
1213
"build:web": "vite build",
1314
"build:cli": "rollup -c rollup.cliUtils.config.ts --configPlugin swc && chmod +x ./bin/*.cjs",
1415
"build:timezone_data": "node script/buildTimezoneData.js",

0 commit comments

Comments
 (0)