89140[BUGFIX] Load `draggable-resizable-element` in top-level scope
Commit message
Review
-
Code review CR +2 Done
- Andreas Kienast +2
- Benjamin Franzke +1
- Garvin Hicking +1
-
Verified V +2 Done
- Andreas Kienast +2
- Benjamin Franzke +1
- Garvin Hicking +1
- core-ci +1 CI
Issues 2
Files 6
- Build/Sources/TypeScript/backend/element/draggable-resizable-element.ts2+13 −48
- Build/Sources/TypeScript/backend/image-manipulation.ts5+27 −42
- Build/Sources/TypeScript/backend/offset.tsnew+36 −0
- typo3/sysext/backend/Resources/Public/JavaScript/element/draggable-resizable-element.js+1 −1
- typo3/sysext/backend/Resources/Public/JavaScript/image-manipulation.js+1 −1
- typo3/sysext/backend/Resources/Public/JavaScript/offset.jsnew+13 −0
Review log 2330
Show 45 earlier messages
-
Andreas Kienast uploaded patch set 1 04/16/25, 11:16
-
core-ci voted on patch set 1 V +1 04/16/25, 11:22 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/77830
-
Garvin Hicking commented on patch set 1 V -1 04/17/25, 07:06
Thanks so much for chewing through this, however: Good news: Firefox shows the focus area, and no JS errors! Bad news: Neither Firefox, nor Chrome can move the focus area. Without the patch, in chrome I can move the focus area. -
Garvin Hicking commented on patch set 1 04/17/25, 07:06
Reply
(With TCA styleguide imagemanipulation, crop_7) -
Andreas Kienast uploaded patch set 2
V +104/17/25, 08:08
-
core-ci voted on patch set 2 V +1 04/17/25, 08:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/77879
-
Garvin Hicking commented on patch set 2 CR +1 V +1 04/24/25, 17:24
Thanks! I couldn't break it 😄 -
Christian Kuhn voted on patch set 2 CR +1 V +1 04/24/25, 19:57
-
Simon Schaufelberger commented on patch set 2 04/25/25, 00:53
image-manipulation.ts:27; missing -
Andreas Kienast commented on patch set 2 04/25/25, 05:22
image-manipulation.ts:27ReplyA trailing semicolon is technically not necessary here as the compiling process handles this already. I'd rather invest time to check whether there's an eslint rule to enforce this (which will very likely affect other files as well). -
Benjamin Franzke uploaded patch set 3
CR +1V +104/25/25, 05:27 -
Benjamin Franzke commented on patch set 3 04/25/25, 05:27
draggable-resizable-element.ts:101All these workarounds regarding `windowRef` and `documentRef` could (and should) now be removed, now that the element is properly created on the top-frame.image-manipulation.ts:27ReplyDoneimage-manipulation.ts:381Btw, I'm wondering why we need to await here. We shouldn't even have to await the top-level module load, since we could initialize the element set all properties and be fine with lazy initialization. It's also a bit strange that both `cropBuiltHandler` and `update` invoke `initFocusArea`, maybe that caused the issue Garvin mentioned (not being able to move in patchset 1) and we're now "hiding" issues caused by double-initialization. -1 for now, I'd like this to be checked/clarified. -
core-ci voted on patch set 3 V +1 04/25/25, 05:33 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78165
-
Benjamin Franzke uploaded patch set 4
CR -1V +104/25/25, 05:36 -
Benjamin Franzke commented on patch set 4 04/25/25, 05:36
draggable-resizable-element.ts:101ReplyDone -
core-ci voted on patch set 4 V -1 04/25/25, 05:41 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78166
-
Benjamin Franzke uploaded patch set 5
CR -1V -104/25/25, 06:07 -
Benjamin Franzke commented on patch set 5 04/25/25, 06:07
image-manipulation.ts:381ReplyFixed. -
core-ci voted on patch set 5 V -1 04/25/25, 06:13 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78168
-
Andreas Kienast uploaded patch set 6
CR +1V +104/25/25, 06:20 -
core-ci voted on patch set 6 V +1 04/25/25, 06:26 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78169
-
Benjamin Franzke voted on patch set 6 CR +1 V +1 04/25/25, 06:33
-
Garvin Hicking commented on patch set 6 CR +1 V +1 04/28/25, 06:41
Verified in Safari, Chromium, Firefox on macOS. I adjusted the crop_7 EXT:styleguide example to also have multiple focus areas and that also works well (we could add that example in a separate patch, or not). -
Andreas Kienast voted on patch set 6 CR +2 V +2 04/28/25, 07:08
-
Andreas Kienast uploaded patch set 7
CR +1V +104/28/25, 07:10 -
Garvin Hicking voted on patch set 7 CR +1 V +1 04/28/25, 07:11
-
Benjamin Franzke voted on patch set 7 CR +1 V +1 04/28/25, 07:14
-
core-ci voted on patch set 7 V +1 04/28/25, 07:16 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/78266
-
Andreas Kienast voted on patch set 7 CR +2 V +2 04/28/25, 07:17
-
Andreas Kienast merged patch set 8 04/28/25, 07:42