stable

Clone or download

Read-only

Select and save a row layout in user dashboard

This is part of story #10173 Have multiple dashboards How to test: - yarn install; yarn run build in tuleap root - when you hover a dashboard row, there is an icon at the top right. when you click it, a dropdown opens. Depending on the number of columns, you can choose a layout. It is applied and saved in DB. - when you move a widget to another column or row, the default layout (equal size) is applied to the source and destination rows. - only project admins should see the layout dropdown in project dashboard Change-Id: Ic8941edbe5479199c96cd9c5f60aa438042c139f

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +4 −1 Go to diff View file
M site-content/tuleap-core.pot +3 −0 Go to diff View file
M src/common/Dashboard/Project/ProjectDashboardRouter.php +3 −0 Go to diff View file
M src/common/Dashboard/User/UserDashboardRouter.php +3 −0 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetDao.php +12 −0 Go to diff View file
M src/common/Dashboard/Widget/DashboardWidgetLinePresenter.php +9 −0 Go to diff View file
A src/common/Dashboard/Widget/DashboardWidgetLineUpdater.php +39 −0 Go to diff View file
M src/common/Dashboard/Widget/WidgetDashboardController.php +33 −10 Go to diff View file
M src/common/autoload.php +3 −2 Go to diff View file
A src/templates/dashboard/edit-layout-dropdown.mustache +117 −0 Go to diff View file
M src/templates/dashboard/widgets.mustache +11 −1 Go to diff View file
M src/www/my/index.php +5 −1 Go to diff View file
M src/www/projects.php +5 −1 Go to diff View file
A src/www/scripts/dashboards/dashboard-drag-drop.js +153 −0 Go to diff View file
M src/www/scripts/dashboards/dashboard-dropdowns.js +109 −2 Go to diff View file
M src/www/scripts/dashboards/dashboard-layout.js +84 −95 Go to diff View file
M src/www/scripts/dashboards/dashboard-modals.js +2 −1 Go to diff View file
M src/www/scripts/dashboards/dashboard.js +5 −5 Go to diff View file
A src/www/scripts/dashboards/dom-tree-walker.js +42 −0 Go to diff View file
M src/www/themes/BurningParrot/css/includes/_dashboard.scss +97 −11 Go to diff View file
M src/www/themes/common/tlp/src/js/dropdowns.js +9 −18 Go to diff View file
M src/www/themes/common/tlp/src/scss/components/_dropdowns.scss +18 −7 Go to diff View file