34 Commits

Author SHA1 Message Date
James Brooks
c9b4ee0ee6 Use the includeWhen macro 2017-07-27 15:58:04 -04:00
James Brooks
bbb3bd805d Fix select name. Fixes #2366 2017-02-14 19:29:46 +00:00
James Brooks
4bc039a50c Pre-select some component group options 2017-02-14 19:29:46 +00:00
Nicolas Fagotti
1f09622022 Change "order" condition when a component is edited 2016-10-27 18:42:19 -03:00
James Brooks
5a9f6134c4 Completely refactor all routes 2016-10-12 21:47:46 +01:00
Abhimanyu Sharma
dd7943632a Added placeholders 2016-10-10 15:51:02 +05:30
Abhimanyu Sharma
22cbe16007 Minor HTML tweaks 2016-10-08 21:39:39 +05:30
Marius Palade
ad0954eb20 Add visibility to component groups (#2027)
Implement visibility for the components groups. Closes #1892

Add functional test that asserts a guest can only see public items.

* Fix tests not running due to hitting the Setup page.

The missing `boostrap/cachet/testing.php` file is now generated the first time tests are ran.

* Add a functional test that asserts logged in users can see all items.

Add constants for possible values for the visible column/field of the ComponentGroup model.
Code review changes.

* Add API tests for component group visibility feature.

* Implement the visibility hidden option for a component group. Fixes #1892.

Add migration for the created_by column, in component_groups table.
Add methods to the ComponentGroup and User models to be able to work with the created_by column.
Hidden component groups are no longer displayed on the index page for loggedin users.
Add functional test for the dashboard page.
Save owner on create/edit component group.
Update the API tests for Component group visibility feature.

* Replace auth() usage with app(Guard::class).

* Apply StyleCI fixes.

* Drop the hidden visibility feature and fix all tests.

Some code review fixes too.

* Rename public to visible since it's a reserved keyword. Apply StyleCI fixes and correct typo.

* Code review changes.

* Tidy up component and component groups gathering.

* Code review changes and StyleCI fixes.

* Code review changes.

* Remove extra whitespace

* Remove useless method.
2016-10-02 13:57:32 +01:00
Abhimanyu Sharma
1438caf5ca HTML CS fix 2016-10-01 21:37:36 +05:30
Connor S. Parks
486642df03 utilise a more generic sortable list system 2016-08-20 11:44:18 +01:00
James Brooks
135ce7ebef Fix template indentations 2016-08-10 20:40:54 +01:00
James Brooks
4d97f3ce12 Increase size of index buttons 2016-08-10 20:38:40 +01:00
James Brooks
3fde593a86 Standardise the error message 2016-06-03 10:15:08 +01:00
Joseph Cohen
9844d0cff4 New backoffice theme 2016-03-15 15:15:40 -06:00
James Brooks
a0477b03e3 Option to auto-expand groups when components are down. Closes #1602 2016-03-10 15:01:13 +00:00
James Brooks
da7af1fca0 Allow component groups to be collapsed by default. Closes #1398 2016-01-29 16:02:44 +00:00
phecho
8a47dd873f Move HumanStatus to Presenter 2015-12-23 19:44:06 +08:00
James Brooks
1bd54696c9 Add link on components page too 2015-11-21 13:54:20 +00:00
phecho
32b66df5f0 Fixes issue #1158 2015-11-20 17:02:11 +08:00
phecho
be1fccd682 Fixed translations of dashboard page title 2015-11-11 14:57:02 +08:00
James Brooks
c89691cb2c Fixes #1104 - Re-adds enabled field to dashboard 2015-11-07 11:29:44 +00:00
James Brooks
d4c1b23b3f Added UpdateComponentGroupCommand 2015-09-23 18:19:01 +01:00
James Brooks
6ee697cf7f Added AddComponentGroupCommand 2015-08-31 20:16:38 +01:00
Michael Babker
3de15fc5e8 Route 'dashboard.components' not found
Updated to reference `dashboard.components.index` route instead.
2015-08-27 21:21:56 -04:00
James Brooks
bef736e865 Merge pull request #898 from cachethq/avoid-redirect-back
Completely remove the use of Redirect::back - closes #867
2015-08-13 22:38:30 +01:00
James Brooks
3b487ea2ec Move dashboard partials into the dashboard directory 2015-08-13 22:34:26 +01:00
James Brooks
b393557c8a Completely remove the use of Redirect::back - closes #867 2015-08-13 22:28:30 +01:00
Graham Campbell
fcbbfdd84e Refactor validator stuff and fix variable names in views 2015-08-03 22:32:51 +01:00
James Brooks
c1a0fc10ae Use snake_case in views. Closes #778 2015-07-02 16:37:38 +01:00
James Brooks
9337c1a75b Allows ordering of component groups. Closes #573. 2015-05-19 22:54:28 +01:00
James Brooks
31336478fe Fixes #606 - Bad component.group_id when adding/editing components. 2015-05-18 16:26:34 +01:00
James Brooks
fe1425a6c0 Closes #605 2015-05-10 19:51:06 +01:00
EdeMeijer
c4c55a73cb Use APC cache for Docker and fix bug with changing component sort order
By default, the file cache is used, but this breaks the throttling detection when authenticating.
The APC cache is tagged and will allow you to log in again after installation.
---
When changing the sort order, a form with hidden inputs for every component was serialized. The hidden inputs
had names in the form of `component[id]`. When you removed components, there would be holes in this ID sequence,
yielding a serialized array with empty values (since JS arrays always have every index until the highest one, even
if you don't specify a value).

This is fixed by just passing an array of component IDs in the desired sort order to the API endpoint. The API
will then update the components based on the implicit given sort order. Much simpler.
2015-04-25 12:00:53 +02:00
Joseph Cohen
b4ac66d727 Cachet is now a Laravel 5 app 2015-03-20 18:30:45 -06:00