74550[TASK] Refactor ext:tstemplate controllers
Commit message
Review
-
Code review CR +2 Done
- Christian Kuhn +2
- Jochen Roth +1
- Stefan Bürk +1
-
Verified V +2 Done
- Christian Kuhn +2
- Jochen Roth +1
- Stefan Bürk +1
- core-ci +1 CI
Issues 2
Files 35
- typo3/sysext/backend/Classes/Module/ModuleData.php+2 −0
- typo3/sysext/backend/Classes/Utility/BackendUtility.php+3 −1
- typo3/sysext/core/Classes/Localization/LanguageService.php+4 −4
- typo3/sysext/core/Tests/Acceptance/Application/Site/SiteModuleCest.php+4 −1
- typo3/sysext/core/Tests/Acceptance/Application/Template/TemplateCest.php+2 −30
- typo3/sysext/tstemplate/Classes/Controller/AbstractTemplateModuleController.php3new+234 −0
- typo3/sysext/tstemplate/Classes/Controller/ConstantEditorController.phprenamed+111 −103
- typo3/sysext/tstemplate/Classes/Controller/DummyController.php2new+42 −0
- typo3/sysext/tstemplate/Classes/Controller/InfoModifyController.phpnew+113 −0
- typo3/sysext/tstemplate/Classes/Controller/ObjectBrowserController.phpnew+365 −0
- typo3/sysext/tstemplate/Classes/Controller/TemplateAnalyzerController.php+90 −97
- typo3/sysext/tstemplate/Classes/Controller/TemplateRecordsOverviewController.phpnew+115 −0
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptObjectBrowserController.phpdeleted+0 −461
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationController.phpdeleted+0 −161
- typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.phpdeleted+0 −494
- typo3/sysext/tstemplate/Configuration/Backend/Modules.php+23 −10
- typo3/sysext/tstemplate/Configuration/Services.yaml+6 −6
- typo3/sysext/tstemplate/Resources/Private/Language/locallang.xlf2+4 −1
- typo3/sysext/tstemplate/Resources/Private/Language/locallang_info.xlf2+1 −1
- typo3/sysext/tstemplate/Resources/Private/Language/locallang_objbrowser.xlf+0 −9
Show 15 more files
- typo3/sysext/tstemplate/Resources/Private/Partials/ConstantEditorForm.htmlnew+81 −0
- typo3/sysext/tstemplate/Resources/Private/Partials/InfoModifyTable.htmlnew+98 −0
- typo3/sysext/tstemplate/Resources/Private/Partials/NoTemplate.htmlnew+94 −0
- typo3/sysext/tstemplate/Resources/Private/Partials/ObjectBrowserEdit.htmlnew+97 −0
- typo3/sysext/tstemplate/Resources/Private/Partials/ObjectBrowserTree.htmlnew+146 −0
- typo3/sysext/tstemplate/Resources/Private/Templates/Analyzer.htmlrenamed+2 −2
- typo3/sysext/tstemplate/Resources/Private/Templates/ConstantEditor.html+8 −75
- typo3/sysext/tstemplate/Resources/Private/Templates/InfoModify.htmlnew+21 −0
- typo3/sysext/tstemplate/Resources/Private/Templates/InformationModule.htmldeleted+0 −59
- typo3/sysext/tstemplate/Resources/Private/Templates/NoTemplate.htmldeleted+0 −99
- typo3/sysext/tstemplate/Resources/Private/Templates/ObjectBrowser.htmlnew+57 −0
- typo3/sysext/tstemplate/Resources/Private/Templates/PageZero.htmldeleted+0 −114
- typo3/sysext/tstemplate/Resources/Private/Templates/TemplateObjectBrowser.htmldeleted+0 −316
- typo3/sysext/tstemplate/Resources/Private/Templates/TemplateRecordsOverview.htmlnew+105 −0
- typo3/sysext/tstemplate/Tests/Unit/Controller/TypoScriptObjectBrowserControllerTest.php+2 −2
Review log 2337
Show 612 earlier messages
-
Christian Kuhn uploaded patch set 1 05/08/22, 08:28
-
core-ci voted on patch set 1 V -1 05/08/22, 08:38 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/26988
-
Christian Kuhn uploaded patch set 2 05/08/22, 21:09
-
core-ci voted on patch set 2 V -1 05/08/22, 21:17 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27008
-
Christian Kuhn uploaded patch set 3 05/08/22, 21:57
-
core-ci voted on patch set 3 V -1 05/08/22, 22:06 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27010
-
Christian Kuhn uploaded patch set 4 05/09/22, 09:31
-
core-ci voted on patch set 4 V -1 05/09/22, 09:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27020
-
Christian Kuhn uploaded patch set 5 05/09/22, 12:41
-
core-ci voted on patch set 5 V -1 05/09/22, 12:50 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27025
-
Christian Kuhn uploaded patch set 6 05/09/22, 12:51
-
core-ci voted on patch set 6 V -1 05/09/22, 13:08 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27026
-
Christian Kuhn uploaded patch set 7 05/09/22, 14:08
-
core-ci voted on patch set 7 V +1 05/09/22, 14:15 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27034
-
Christian Kuhn updated the commit message in patch set 8 05/09/22, 14:26
-
core-ci voted on patch set 8 V -1 05/09/22, 14:34 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27035
-
core-ci voted on patch set 8 V +1 05/09/22, 14:41 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27035
-
Oliver Klee commented on patch set 8 05/09/22, 14:44
Would it be possible to split this up to make this easier to review, e.g., have the class rename in a separate changeset first?Nitpick: Levearge -> Leverage -
Jochen Roth voted on patch set 8 V +1 CR +1 05/09/22, 14:57
-
Oli Bartsch commented on patch set 8 CR -1 05/09/22, 15:03
Will review soon. -
Oli Bartsch commented on patch set 8 05/09/22, 16:57
Being on page zero (or on no page - visually speaking) now also renders the action menu. However, selecting any other action than "Template Records Overview" ends in a redirect to the overview action. This IMO feels odd UX wise, since it is not clear to the user why selecting one of the displayed actions does not work.I'm not quite sure about this. I would actually expect that a list of templates on or below this page is displayed. What is the benefit of having the exactly same list on each an every page? IMO it's more likely that this will confuse admins. What do you think about just extending the "NoTemplate" View with a link to the "Template Records Overview" on pid=0 for now (making this already more visible to unexperienced users) and implement the "page-aware" variant in a separate patch?Why do you think that this feature is unknown and of limited use? I use it quite often and I'm sure others too. Actually, I remember there were some forge issues created, directly after we did changes to this functionality in v11. In case there is no technical background for dropping this, I would prefer to keep it for now and maybe make a patch to discuss this separately.AbstractTemplateModuleController.php:43Why do we declare this as an abstract class? Since it does not define any abstract method, this can just be a "base class".DummyController.php:26alwayslocallang.xlf:37Why do we remove this - correct - information?locallang_info.xlf:67While I don't fully understand this change. The id does no longer match the content which might make it hard for the translation team to adapt. -
Oliver Klee commented on patch set 8 05/09/22, 17:05
AbstractTemplateModuleController.php:43ReplyMaking the class abstract communicates to the reader that the class is not intended to be instantiated without subclassing, and technically prohibits it. -
Christian Kuhn uploaded patch set 9 05/09/22, 17:19
-
Christian Kuhn commented on patch set 8 05/09/22, 17:19
Reply
skipping the menu on pid 0 now.Reply
i'd actually like to keep that view in the drop down and change it to be page-id sensitive, later. what i really don't like is that it's so 'hidden' on page 0. we have no single other place is the backend that behaves this way and hides a useful on page 0. we really should align this.Reply
it's codewise a total mess. and it's a very hidden feature. i asked in the cms channel about it and nobody said 'i use it'. usuability wise, it's also *very* confusing that the tree is suddently limited. i'm pretty sure nobody will *really* miss it. also, it also works only if you have a sys_template record on that page, otherwise you can't add something to the object list. i think a 'bookmark' feature like - if we *really* think we need one here - should be usability wise integrated into the tree display directly. all in all i think we should rather improve the tree by making it quicker and more accessible, for instance with ajax expanding / collapsing. to implement this, the existing feature is a real hindrance.Reply
DoneAbstractTemplateModuleController.php:43Replyto declare that this is nothing that can be instantiated directly. an abstract is the correct way to go here.DummyController.php:26ReplyDonelocallang.xlf:37Replyuseless: you can't only click the title, but other columns things, too. additionally, many things in the backend are clickable and there is usually little information about that. i see no point in having that information and it's also an admin module after all.locallang_info.xlf:67Replythere is an edit icon exactly in front of that row. that should be more than enough than the ugly parenthesis with the useless 'edit' information. the 'how many lines are in there' is the main information we want to give here. -
core-ci voted on patch set 9 V -1 05/09/22, 17:26 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27041
-
core-ci commented on patch set 9 05/09/22, 18:34 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27041
-
core-ci voted on patch set 9 V +1 05/09/22, 18:56 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27041
-
Christian Kuhn uploaded patch set 10 05/09/22, 20:33
-
core-ci voted on patch set 10 V -1 05/09/22, 20:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27055
-
Christian Kuhn uploaded patch set 11 05/09/22, 20:46
-
core-ci voted on patch set 11 V +1 05/09/22, 20:53 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/27056
-
Stefan Bürk commented on patch set 11 V +1 CR +1 05/09/22, 21:14
Reply
Generally, from a "admin" site having the "same" information independent from the selected page (in a first step) is good. Had quite often the "why I do not thet this view -> ah have to selelect page 0 for it" round trip moments. Having thas available as a first move, and doing the additional filtering based on select page in a follow up is a improvement for admins. -
Jochen Roth voted on patch set 11 V +1 CR +1 05/10/22, 11:08
-
Christian Kuhn voted on patch set 11 V +2 CR +2 05/10/22, 11:09
-
Christian Kuhn merged patch set 12 05/10/22, 11:09
-
Benni Mack commented on patch set 12 05/10/22, 12:53
On a personal level, I still use the functionality "The TypoScript Object Browser has a detail view to edit single properties, which then write to a sys_template record." in customer projects, so sad to see it gone (at least a bit). -
Stefan Bürk commented on patch set 12 05/10/22, 13:02
Reply
That's not correct. This is still possible. If you open a view for a parent key, which has children, there was a button to add that to the "object browsler object list" which was a kind of "path / bookmark" and "filtered" the object tree to this parent key with children only. this os gone, not the detail/edit for properties.