63328[FEATURE] Add bar- and doughnut-graph widgets to dashboard
Commit message
Review
-
Code review CR +2 Done
- Susi Moog +2
- Daniel Goerz +1
-
Verified V +2 Done
- Susi Moog +2
- Daniel Goerz +1
- Daniel Siepmann +1
- TYPO3com +1 CI
Issues 1
Files 18
- Build/Sources/TypeScript/dashboard/Resources/Public/TypeScript/ChartInitializer.ts6new+53 −0
- Build/Gruntfile.js+6 −4
- Build/package.json+1 −0
- Build/yarn.lock+30 −2
- typo3/sysext/core/Documentation/Changelog/master/Feature-90333-Dashboard.rst+5 −0
- typo3/sysext/dashboard/Classes/Widgets/AbstractBarChartWidget.php1new+52 −0
- typo3/sysext/dashboard/Classes/Widgets/AbstractChartWidget.php10new+174 −0
- typo3/sysext/dashboard/Classes/Widgets/AbstractDoughnutChartWidget.php1new+42 −0
- typo3/sysext/dashboard/Classes/Widgets/AbstractRssWidget.php+13 −0
- typo3/sysext/dashboard/Classes/Widgets/SysLogErrorsWidget.php1new+98 −0
- typo3/sysext/dashboard/Classes/Widgets/TypeOfUsersWidget.php4new+61 −0
- typo3/sysext/dashboard/Configuration/Backend/DashboardWidgetGroups.php+3 −0
- typo3/sysext/dashboard/Configuration/Services.yaml+14 −0
- typo3/sysext/dashboard/Resources/Private/Language/locallang.xlf+29 −0
- typo3/sysext/dashboard/Resources/Private/Templates/Widget/ChartWidget.html3new+15 −0
- typo3/sysext/dashboard/Resources/Public/Css/Contrib/chart.cssnew+1 −0
- typo3/sysext/dashboard/Resources/Public/JavaScript/Contrib/chartjs.jsnew+7 −0
- typo3/sysext/dashboard/Resources/Public/JavaScript/ChartInitializer.jsnew+13 −0
Review log 2530
Show 45 earlier messages
-
Richard Haeser uploaded patch set 1 02/19/20, 23:21
-
TYPO3com voted on patch set 1 V -1 02/19/20, 23:39 Completed build in 18m 07s on Wed, 19 Feb, 11:39 PM Test Summary: 71464 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-333
-
Stephan Großberndt commented on patch set 1 02/20/20, 05:31
TypeOfUsersWidget.php:40Please use count(*) instead of selecting all rows and using rowcount. -
Stephan Großberndt voted on patch set 1 CR -1 02/20/20, 05:31
-
Daniel Siepmann commented on patch set 1 02/20/20, 06:53
ChartInitializer.ts:14As far as I know we wanna get rid of jQuery? So we should prefer native JavaScript, not sure on that. Maybe ask Andreas Fernandez.ChartInitializer.ts:33I'm a big fan of early returns. Not sure how this is handled within TYPO3. Everything following is inside this if condition, so inverting and adding early return would make code more readable, at least to me.AbstractChartWidget.php:16The first thing I've missed as a user when adding the concrete widgets was a link to the source of the data. E.g. to the sys log module or backend user module. Would it make sense to always add a button "Go to source" or something like that?AbstractChartWidget.php:18Maybe we should add some PHPDoc to the properties? Some are intended to be filled by concrete widgets and foreign developers. Providing at least a url to some docs regarding structure would be cool. E.g. how to provide `chartData`? Which array structure is expected?AbstractChartWidget.php:58Could be shortened to `GeneralUtility::getFileAbsFileName('EXT:dashboard/Resources/Public/')` I guess? Not sure which one to prefer. But would make code shorter and easier to read.TypeOfUsersWidget.php:40ReplyJust do give more context, the reason is missing support across supported DBMS, see: https://forge.typo3.org/issues/78129 E.g. widgets would not work work with sqlite.ChartWidget.html:7I guess this will result in same `id` used multiple times, when multiple chart widgets are added? Should we use an class or nothing at all, just select by tag name?
-
Stephan Großberndt commented on patch set 1 02/20/20, 07:10
ChartInitializer.ts:14ReplyAckChartInitializer.ts:33ReplyAckAbstractChartWidget.php:16ReplyAckAbstractChartWidget.php:18ReplyAckAbstractChartWidget.php:58ReplyAm I missing sth? The variable is unused and should be removedTypeOfUsersWidget.php:40ReplyIt's also a performance issue on most DBMS. You are requesting lots of data to be processed you are not using at all.ChartWidget.html:7ReplyAck -
Daniel Siepmann voted on patch set 1 V +1 02/20/20, 07:14
-
Richard Haeser commented on patch set 1 02/20/20, 07:30
ChartInitializer.ts:33Reply UnresolvedAckAbstractChartWidget.php:16Reply UnresolvedWe can add the possibility to add a button to this type of button as it can make sense indeed. Although I think that not every widget does need such a button and sometimes there are no overviews yet of data. Will add a button possibility so it can be defined in the implementation.AbstractChartWidget.php:18Reply UnresolvedWill add some PHPDocAbstractChartWidget.php:58Reply UnresolvedRefactoring your code just before you push is never a good idea... :( Will remove the variable.TypeOfUsersWidget.php:40Reply UnresolvedWill change to count(*) indeedChartWidget.html:7ReplyYou are totally right! Will fix this -
Richard Haeser commented on patch set 1 02/20/20, 08:24
ChartInitializer.ts:14ReplyAs discussed with Andreas on Slack. For now this is ok. Event delegation (what is used in this script) is a broader topic and we should check to get a reusable solution. After that we can do a small refactor of this code. -
Richard Haeser uploaded patch set 2 02/20/20, 20:28
-
TYPO3com voted on patch set 2 V -1 02/20/20, 21:14 Completed build in 27m 46s on Thu, 20 Feb, 09:14 PM Test Summary: 1 of 71920 failed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-363
-
Susi Moog uploaded patch set 3 02/21/20, 12:49
-
Susi Moog uploaded patch set 4 02/21/20, 13:02
-
TYPO3com voted on patch set 4 V +1 02/21/20, 13:48 Completed build in 39m 24s on Fri, 21 Feb, 01:48 PM Test Summary: 71464 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-399
-
TYPO3com voted on patch set 3 V +1 02/21/20, 13:58 Completed build in 49m 30s on Fri, 21 Feb, 01:58 PM Test Summary: 71464 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-398
-
Koen Wouters voted on patch set 4 V +1 02/21/20, 15:31
-
Daniel Siepmann voted on patch set 4 V +1 02/21/20, 15:39
-
Richard Haeser uploaded patch set 5 02/22/20, 14:01
-
Benjamin Kott commented on patch set 5 CR -1 02/22/20, 14:10
AbstractBarChartWidget.php:26Unresolvedcontent-widget-chart-barAbstractDoughnutChartWidget.php:26Unresolvedcontent-widget-chart-piedashboard-chart-bar.svg:1Unresolvedunuseddashboard-chart-doughnut.svg:1Unresolvedunused -
Benjamin Kott commented on patch set 5 02/22/20, 14:11
AbstractChartWidget.php:120Unresolvedcontent-widget-chart -
Daniel Goerz uploaded patch set 6 02/22/20, 14:19
-
Daniel Goerz commented on patch set 6 CR -1 02/22/20, 14:20
Reapply the -1 from Benji, because I did not tackle hie comments in the last PS -
Richard Haeser uploaded patch set 7 02/22/20, 14:49
-
Daniel Siepmann voted on patch set 7 V +1 02/22/20, 14:52
-
Susi Moog voted on patch set 7 CR +1 02/22/20, 14:54
-
Susi Moog voted on patch set 7 V +1 02/22/20, 14:57
-
Daniel Goerz voted on patch set 7 V +1 CR +1 02/22/20, 14:59
-
TYPO3com voted on patch set 7 V +1 02/22/20, 15:54 Completed build in 59m 38s on Sat, 22 Feb, 03:54 PM Test Summary: 71518 passed Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-479
-
Susi Moog voted on patch set 7 V +2 CR +2 02/22/20, 16:49
-
Susi Moog merged patch set 8 02/22/20, 16:50
SysLogErrorsWidget.php:46Unresolved