Skip to content

Commit 9a63391

Browse files
authored
Merge pull request #446 from TaloDev/develop
Release 0.66.1
2 parents 8ea5c0c + 9c34c0b commit 9a63391

File tree

13 files changed

+56
-22
lines changed

13 files changed

+56
-22
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: 20
13+
node-version: 24
1414

1515
- uses: actions/cache@v4
1616
with:
@@ -29,7 +29,7 @@ jobs:
2929
- uses: actions/checkout@v4
3030
- uses: actions/setup-node@v4
3131
with:
32-
node-version: 20
32+
node-version: 24
3333

3434
- name: Run Cypress
3535
uses: cypress-io/github-action@v6
@@ -48,7 +48,7 @@ jobs:
4848
- uses: actions/checkout@v4
4949
- uses: actions/setup-node@v4
5050
with:
51-
node-version: 20
51+
node-version: 24
5252

5353
- uses: actions/cache@v4
5454
with:
@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@v4
7272
- uses: actions/setup-node@v4
7373
with:
74-
node-version: 20
74+
node-version: 24
7575

7676
- uses: actions/cache@v4
7777
with:

.github/workflows/create-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: 20
16+
node-version: 24
1717

1818
- uses: actions/cache@v4
1919
with:

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Required environment variables (set via `.env` files):
173173

174174
## Node Version
175175

176-
This project requires Node.js 22.x (see package.json engines).
176+
This project requires Node.js 24.x (see package.json engines).
177177

178178
## Git Workflow
179179

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
"lint-staged": {
7979
"*.{ts,js,tsx,jsx}": "eslint --fix"
8080
},
81-
"version": "0.66.0",
81+
"version": "0.66.1",
8282
"engines": {
83-
"node": "22.x"
83+
"node": "24.x"
8484
},
8585
"type": "module"
8686
}

src/api/createCheckoutSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import makeValidatedRequest from './makeValidatedRequest'
44
import { invoiceSchema } from '../entities/invoice'
55

66
const createCheckoutSession = makeValidatedRequest(
7-
(pricingPlanId, pricingInterval) => api.post('/billing/checkout-session', { pricingPlanId, pricingInterval }),
7+
(pricingPlanId: number, pricingInterval: string) => api.post('/billing/checkout-session', { pricingPlanId, pricingInterval }),
88
z.object({
99
redirect: z.string().url().optional(),
1010
invoice: invoiceSchema.optional()

src/components/billing/PricingPlanTile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function PricingPlanTile({
101101
<Button
102102
variant={isUpgrade() ? undefined : 'grey'}
103103
onClick={onChangePlanClick}
104-
className='!w-40'
104+
className='w-40!'
105105
icon={isUpgrade() && <IconArrowUp />}
106106
isLoading={planLoading === plan?.id}
107107
disabled={Boolean(planLoading)}

src/components/saves/SaveContentFitManager.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { useRecoilValue } from 'recoil'
44
import saveDataNodeSizesState from '../../state/saveDataNodeSizesState'
55
import { useDebounce } from 'use-debounce'
66

7+
export const minZoom = 0.1
8+
79
export default function SaveContentFitManager() {
810
const reactFlow = useReactFlow()
911
const nodeSizes = useRecoilValue(saveDataNodeSizesState)
@@ -12,7 +14,9 @@ export default function SaveContentFitManager() {
1214

1315
useEffect(() => {
1416
if (debouncedLength > 0) {
15-
reactFlow.fitView()
17+
reactFlow.fitView({
18+
minZoom
19+
})
1620
}
1721
}, [debouncedLength, reactFlow])
1822

src/components/saves/SaveModePicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ type SaveModePickerProps = {
88
}
99

1010
const modes: ButtonGroupOption<SaveMode>[] = [
11-
{ id: 'tree', label: 'Tree mode' },
12-
{ id: 'linear', label: 'Linear mode' }
11+
{ id: 'linear', label: 'Linear mode' },
12+
{ id: 'tree', label: 'Tree mode' }
1313
]
1414

1515
export default function SaveModePicker({ selectedMode, onModeChange }: SaveModePickerProps) {

src/modals/NewGame.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,21 @@ export default function NewGame({ modalState }: NewGameProps) {
3030

3131
try {
3232
const { game } = await createGame(name)
33+
const allGames = [...user.organisation.games, game]
34+
3335
setUser({
3436
...user,
3537
organisation: {
3638
...user.organisation,
37-
games: [...user.organisation.games, game]
39+
games: allGames
3840
}
3941
})
4042
setActiveGame(game)
4143
setOpen(false)
44+
45+
if (allGames.length > 1) {
46+
window.location.href = '/'
47+
}
4248
} catch (err) {
4349
setError(buildError(err))
4450
setLoading(false)

0 commit comments

Comments
 (0)