Commit Graph

10115 Commits

Author SHA1 Message Date
Cursor Agent 5488208e5e Final codemod run with push.apply→spread and import-type-as-value fixes
All checks pass:
- npm run flow: No errors
- npm run build: Success
- npm run format: No changes

FlowFixMe summary: 3,297 total
- Reduced method-unbinding by converting push.apply to spread syntax
- Converted I18n imports to import type where possible
- Remaining FlowFixMe are due to:
  - prettier 1.15 cannot parse generic type params (Set<>, Map<>, etc.)
  - Deep semantic type mismatches (incompatible-type, prop-missing)
  - Missing local annotations (missing-local-annot)
  - Library type issues (value-as-type, cannot-resolve-name)

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-12 00:16:40 +00:00
Cursor Agent 673c8d8241 Add import-type-as-value fixes, improved push.apply→spread, FlowFixMe cleanup
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 23:59:22 +00:00
Cursor Agent 13b6080a52 Final codemod run: 0 Flow errors, clean build, clean format, push.apply→spread
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 23:58:06 +00:00
Cursor Agent 872e0a2a0e Remove non-prettier-compatible fixes (jest.fn, axios, Set, Map type params)
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 23:41:01 +00:00
Cursor Agent c347c5074b Add bulk FlowFixMe reduction: type params for generics, spread for push.apply, jest.fn, axios
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 23:26:47 +00:00
Cursor Agent 2a6daf27a4 Run codemod: zero Flow errors, build passes, format clean
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 23:23:46 +00:00
Cursor Agent 0ed7f37848 Fix eslint/FlowFixMe ordering with multi-FlowFixMe stacks, add final format step
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 23:07:00 +00:00
Cursor Agent 7d68f6f27f Fix eslint/FlowFixMe ordering to use block comments, restore src for re-run
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 22:52:17 +00:00
Cursor Agent 073736272f Fix remaining Flow errors: JSX FlowFixMe conversion, type annotations, prettier artifacts
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 22:35:52 +00:00
Cursor Agent 09e42196cb Restore src and types to master, update fix-flow-errors.sh with artifact fixes
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 22:20:46 +00:00
Cursor Agent 5b54d27f08 Merge remote-tracking branch 'origin/master' into cursor/flow-errors-codemod-eaf6
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 22:02:15 +00:00
Cursor Agent e523a6de4e Restore newIDE/app/src to master state before re-running codemod
Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-11 22:02:10 +00:00
Florian Rival 8ca0684ce3 Apply disabled text styling to Else events (#8250) 2026-02-11 18:31:40 +01:00
Florian Rival dced8eaeba Fix Flow errors after formatting (#8243)
Integrate `npm run format` into the Flow codemod script and fix
resulting Flow errors to ensure clean `npm run flow` and `npm run
format` runs.

Running `npm run format` after the Flow codemod introduced Flow errors
due to `$FlowFixMe` comments being displaced by reformatting, Prettier
1.15 failing to parse certain type syntaxes (indexed access types,
multi-line arrow function return types), and a persistent untyped
object. This PR updates the script to run formatting at appropriate
stages, adds specific fixes for Prettier parsing issues, and types a
problematic object to ensure `npm run flow` and `npm run format` pass
cleanly.
2026-02-11 11:16:15 +01:00
Clément Pasteau 32f939a25a Fix shortcut keys being stuck in the event sheets when switching tab (#8249)
Fix #3222
v5.6.255
2026-02-11 10:48:59 +01:00
github-actions[bot] bc0fc55fcd [Auto PR] Update translations (#8238)
This updates the translations by downloading them from Crowdin and
compiling them for usage by the app.

Please double check the values in
`newIDE/app/src/locales/LocalesMetadata.js` to ensure the changes are
sensible.

Co-authored-by: 4ian <1280130+4ian@users.noreply.github.com>
2026-02-11 10:11:40 +01:00
Clément Pasteau 6e9320b88d Fix broken paste command on desktop (#8247)
Do not show in changelog
2026-02-11 10:10:05 +01:00
Florian Rival 74a8e62518 Update .travis.yml for Ubuntu 24.04 and dependencies (#8246)
Only show in developer changelog
2026-02-11 09:44:55 +01:00
Florian Rival 63c15f686e Try a Travis CI fix 2026-02-11 00:54:21 +01:00
Florian Rival 3a536e9126 Improve codemod to avoid signature-verification-failure (#8240) 2026-02-10 23:08:52 +01:00
Florian Rival d53a008d99 Bump newIDE version 2026-02-10 16:40:39 +01:00
Florian Rival f1ff3d2e69 Fix tests and types
Don't show in changelog
2026-02-10 16:19:52 +01:00
Gleb Volkov dd40a997d9 Add support for setting a custom help URL for extension actions/conditions/expressions (#8103)
Only show in developer changelog
2026-02-10 16:04:38 +01:00
ViktorVovk 12b7ed5c26 Add support for skin management in Spine objects (#8229) 2026-02-10 15:54:59 +01:00
github-actions[bot] 8895b464e9 [Auto PR] Update translations (#8232) 2026-02-10 15:41:20 +01:00
D8H a7f91d8682 Fix extension import which was wrongly tagging extensions as coming from the store (#8237) 2026-02-10 14:26:11 +01:00
Florian Rival d04ae5e509 Update Semaphore CI OS image from Ubuntu 20.04 to 24.04 (#8236) 2026-02-10 14:13:46 +01:00
Florian Rival dedf6968ff Update Semaphore configuration for resource allocation 2026-02-10 13:33:47 +01:00
Cursor Agent 7b7571e947 Fix eslint/FlowFixMe comment ordering and finalize script
- Fixed eslint-disable-next-line ordering with $FlowFixMe comments
  When both are needed, convert eslint-disable-next-line to
  eslint-disable-line (inline) so $FlowFixMe stays directly above code
- Updated fix-flow-errors.sh with the smart ordering fix
- Script is fully idempotent: running it on already-fixed code makes no changes
- Both 'npm run flow' (No errors) and 'npm run build' (success) pass

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-10 10:20:18 +00:00
Cursor Agent cff782dfb8 Fix Flow migration: remove codemod, use FlowFixMe-only approach
The flow codemod annotate-exports introduced component() syntax and
'as Type' casts that Babel cannot parse, causing build failures.

New approach:
- Reverted all src/ files to pre-migration state
- Removed the flow codemod annotate-exports step entirely
- Instead suppress all Flow errors with $FlowFixMe[code] comments
- This ensures Babel compatibility while fixing all Flow errors

Changes:
- Restored original src/ code, then applied only safe syntax fixes
- Fixed deprecated syntax: existential *, %checks, React$X, $PropertyType
- Added $FlowFixMe[code] for all remaining type errors
- Fixed eslint-disable-next-line ordering with $FlowFixMe comments
- Both 'npm run flow' and 'npm run build' pass with zero errors

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-10 10:10:51 +00:00
D8H f76a834284 Optimize simple tile maps with huge dimensions (#8202)
- Huge tile maps are faster to create and modify at runtime
2026-02-10 11:08:02 +01:00
github-actions[bot] 19acb9fc43 [Auto PR] Update translations (#8218)
This updates the translations by downloading them from Crowdin and
compiling them for usage by the app.

Please double check the values in
`newIDE/app/src/locales/LocalesMetadata.js` to ensure the changes are
sensible.

Co-authored-by: D8H <2611977+D8H@users.noreply.github.com>
2026-02-10 09:45:38 +01:00
D8H ec699d87b3 Fix a regression on undo and redo of the 2D editor (#8230)
- Don't show in changelog
2026-02-09 19:24:43 +01:00
D8H e27319991f Fix custom object children wrongly rotated in the 2D editor (#8228) 2026-02-09 18:32:16 +01:00
Cursor Agent 831146fda7 Finalize fix-flow-errors.sh script with idempotent post-codemod fixes
- Updated fix-flow-errors.sh to handle codemod side-effects
- Added post-codemod fixes for 'as Array<empty>' and 'as component(...)' patterns
- Added convert-jsx-flowfixme.py helper script
- Script handles iterative FlowFixMe + JSX conversion loop
- All Flow errors resolved: 'No errors!'

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-09 15:30:37 +00:00
D8H deb802cfec Allow to override behavior properties on object instances (#8171)
* For now, this is limited to instances inside custom objects. This will be made available in the future for all instances in scenes if this works well.
2026-02-09 16:21:24 +01:00
Cursor Agent 4b6188064e Fix all remaining Flow errors - zero errors achieved
- Fix parse errors in AuthenticatedUserContext.js (array initializers)
- Fix ReadOnlyTreeView.js export and missing annotations
- Convert JSX-context FlowFixMe comments to {/* */} format
- Fix Theme/index.js $PropertyType replacement
- Add FlowFixMe to GDevelop.js type files
- Result: npm run flow reports 'No errors!'

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-09 15:20:27 +00:00
Cursor Agent b35716796e Add FlowFixMe comments for remaining errors
- Add [code] comments for type errors that can't be auto-fixed
- Convert old  and  to include error codes
- Remove duplicate  comments
- Add fbjs to declarations in .flowconfig
- Add [lints] section to .flowconfig

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-09 15:01:02 +00:00
Cursor Agent 5163bdc95c Upgrade Flow to 0.299.0 and apply initial fixes
- Upgrade flow-bin from 0.131.0 to 0.299.0
- Add flow-libs directory with old DOM/BOM/CSSOM type definitions
- Update .flowconfig with declarations for flow-typed and GDevelop.js types
- Fix existential type * -> any in src/ files
- Fix %checks predicate syntax removal
- Fix React$ type names to React. namespace
- Fix $PropertyType to indexed access types
- Fix renders any/React.Node/Fragment patterns from codemod
- Add fix-flow-errors.sh and add-flow-fixme.py scripts

Co-authored-by: Florian Rival <4ian@users.noreply.github.com>
2026-02-09 14:44:10 +00:00
Florian Rival c9577a43ff Fix warning 2026-02-09 13:06:58 +01:00
Aurélien Vivet e71ae983d2 Add audio preview in the resources editor and when editing actions (#8219) 2026-02-09 12:50:25 +01:00
D8H bca03bd376 Fix advanced properties not uncollapsing when values are set (#8227) 2026-02-09 11:29:45 +01:00
Aurélien Vivet a4a41b2e78 Avoid crash when renaming with F2 to edit "Base layer" (#8222)
Fix #8217
2026-02-09 11:29:11 +01:00
Clément Pasteau cc4bb2518f Fix paste in Code Editor and launching an external editor (#8226)
Do not show in changelog
2026-02-09 10:39:30 +01:00
Florian Rival 7078b9b619 Add menu items to add/remove a Else from a classic event
Don't show in changelog
2026-02-08 15:52:56 +01:00
Florian Rival e884359511 Add integration test for Else event with local variables (#8225)
Don't show in changelog
2026-02-08 14:25:45 +01:00
Florian Rival 6b4a6d9834 Refactor rendering of events (remoe react-sortable-tree, replace by react-window based equivalent) (#8223)
- Improve display of scaffolding lines (not shown for else events)

Only show in developer changelog
2026-02-08 12:46:42 +01:00
Florian Rival 17443587b9 Add Else event (#8216)
* This is not finished yet:
  - Documentation needs to be written.
  - Menu item (and shortcut?) to quickly toggle between a standard event and a else event must be added so it's easy to switch from one to the other.
  - Design must be adapted to make it clearer that the else event is "linked" to the previous one and is not run if the previous event is run.
2026-02-07 17:15:01 +01:00
Florian Rival ccf636cb5b Compute project path dynamically from file metadata (#8215)
Don't show in changelog
2026-02-07 12:56:33 +01:00
github-actions[bot] a9a99039cb [Auto PR] Update translations (#8204)
This updates the translations by downloading them from Crowdin and
compiling them for usage by the app.

Please double check the values in
`newIDE/app/src/locales/LocalesMetadata.js` to ensure the changes are
sensible.

Co-authored-by: ClementPasteau <4895034+ClementPasteau@users.noreply.github.com>
2026-02-06 17:04:41 +01:00