opensupports/server
Maximiliano Redigonda c5d6068e97
Add statistics (#904)
* Adds first_closed_at and last_closed_at to Ticket

* Fixes ticket isClosed function

* Adds reopened column to Ticket table

* Adds stats path

* Adds stats for instant tickets

* Adds basic connection with frontend

* Creates cards to display ticketData

* Adds tooltips with descriptions and i18n

* Adds date range filter to backend

* Adds DateRange filter on frontend

* Documents and better structures code

* Makes $dateRange local

* Adds departments filter on backend

* Adds stats path to menu

* Adds first UI for departments filter in stats

* Implements departments filter on frontend

* Improves styling by adding bootstrap rows

* Improves structure of dynamics queries

* Adds tags filter on backend

* Adding TagFilter for statistics WIP

* Adds missing `id` to propTypes TagSelector

* Removes console.warns

* Adapts form to pass tagnames as value as FormField

* Sends tags to API too

* Makes tag-selector change form with tagnames only

* Fixes tag-selector from ticket-viewer

* Removes console.warn

* Removes logs

* Adds owner filter on backend

* Connects owners frontend with backend for stats

* Style changes for date-selector

* Adds tickets by hours stat to /system/stats path

* Adds chart for tickets created on each hour

* Adds better wrap for ticketdata cards

* Adds getAverageFirstReply to backend stats path

* Adds getNumberOfCreatedTicketsByWeekday to backend

* Adds created tickets by weekday chart

* Disables clicking on the legend to toggle data

* Adds base functions for efficiency stats

* Adds getAverageFirstClosed to backend stats

* Adds getAverageLastClosed to backend stats

* Adds table, filters, and groupBy variables to queries

* Adds response structure with mocks

* Adds totalOwners and totalDepartments

* Adds SQL queries to get department/staff hops of a ticket

* Changes incorrect name

* Rolls back addition of near useless function

* Improves tag array management from redux store

* Fix bug in autocomplete filters.

* Sets default date range to current month.

improves date.js.

* Adds i18n

* wip

* Add media query in admin-panel-stats.scss

* Updates date handling in search-ticket-utils

* Makes tooltip open on hover of the entire block

* Fix date range mobile style.

* Add Loading

* Add submit button and clear button in admin panel stats

* Adds tests for stats and comments old ones

* Add test for stats after a ticket has been created

* Makes default dateRange for stats go to the end of the day

* Factors out function to create ticket and adds test

* Adds instant ticket test

* Adds reopened test

* Commit to save technique to test created_by_hour but is prohibitively slow.

* Updates test of created_by_hour to be more lightweight

* Adds test for created_by_weekday

* Fixes default date and renames a function

* Fixes hover bug by extracting card-stat to its own component

* Fix drawbacks with previous change in style - mobile

Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>

* Set up 0 as a minimum number for bar chart

* Moves styles from stats cards to the component

* Removes old /system/get-stats path

* Changes name from /system/stats to /system/get-stats

* Restore getCurrentDate in date transformer

Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>
Co-authored-by: Ivan Diaz <ivan@opensupports.com>
2020-12-27 16:22:55 -03:00
..
controllers Add statistics (#904) 2020-12-27 16:22:55 -03:00
data Changing a few texts (#761) 2020-11-15 10:51:03 -03:00
files Add request deployment 2020-11-13 17:32:56 -03:00
libs New apikeys permissions (#869) 2020-10-14 15:08:14 -03:00
models Add statistics (#904) 2020-12-27 16:22:55 -03:00
tests Fix ticket seach query when you are looking for an own ticket that is not in an owned department (#897) 2020-09-29 01:14:06 -03:00
.dockerignore Add docker and make support 2018-03-27 23:30:18 -03:00
.htaccess Fix private response css 2018-10-04 21:44:07 -03:00
API_STANDARD.md Update API documentation 2018-09-20 17:19:47 -03:00
Dockerfile Fix docker implementation 2020-05-13 02:51:51 -03:00
Makefile Revert "Google social login" (#886) 2020-08-28 14:13:23 -03:00
apidoc.json add script and change 4.7.0 to 4.8.0 (#848) 2020-07-22 07:32:18 -03:00
composer.json Fix deploy build 2020-11-26 21:03:26 -03:00
composer.lock Fix composer for 5.6 (#956) 2020-12-24 20:05:28 -03:00
config.php Email feature - wip 2018-12-23 21:44:59 -03:00
index.php Minor GitHub bugs (#806) 2020-08-28 07:13:34 -03:00
run-tests.sh fix phpunit tests 2017-11-06 16:06:34 -03:00