* add correct validation of repeated name use
* update department create ruby script
* add new edit department ruby tests
* change parameter name of create department ruby scripts
* verify change of private state while editing department ruby tests
* 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>
* back-end y ruby test
* ruby test
* frontend part
* delete unused component
* resolve relevant github maxi comments
* delete .catch of getAllkeys
* fix github ivan comments
* add ruby test and minor changes
* search ruby test
* fix name checkticketpermission
* text-validation to edit article content
* shows only own department on my account
* add moment and update date
* Update date transformer
* Delete time zone setting.
* Use local date in date range component and utc date in date range filter.
* Fix github comment.
* Fix merge 'Fix filter show bug in ticket search when ordering'.
* Fix merge 'Fix filter show bug in ticket search when ordering' second part.
* Fix getDefaultUTCEndDate function.
Co-authored-by: Ivan Diaz <ivan@opensupports.com>
Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>
* Mandatory Login BE and Ruby tests
* registration handle and remove user-system setting
* create specific paths to mandatory login changing
* BE logic not allow turn off mandatory login without registratrion
* fix github issues
* Delete config['user-system-enabled'].
* Add some tabulations.
* Create MandatoryLoginReducer.
* Replace 'user-system' to 'mandatory-login'.
* Replace user-system toggle to mandatory-login checbox.
* Add some button in the header.
* Change onChange function mandatory login name.
* Disabled checkbox when you should not change it.
* Delete consolelog and some irrelevant lines.
* Change name of mandatory login reducer.
* Change style button in install step 1
* Change style button in install step 2
* Fix loading bug in submmit button.
* Change style button in install step 5
* Change style button in install step 6
* Delete UserSystemEnabled in ticket viewer component.
* Delete UserSystemEnabled in some files.
* Delete onRetriveFail function in main view ticket page.
* Replace user-system-enabled to mandatory-login in some files.
* replace user-system-enabled to mandatory-login in install steps.
* Fix style in dashboard-[Ccreate-ticket-page and dashboard-list-article-page.
* Fix mandatory login issues
Co-authored-by: LautaroCesso <lautaro_cesso@hotmail.com>
Co-authored-by: Ivan Diaz <ivan@opensupports.com>
* fix ticketEventId submit
* staff allow manage ticket feature
* edit-comment log
* fix staff1/2 change own perfile pic
* Makes frontend allow ticket editing for any staff member
* Allows all staff members in charge of the department of a ticket to manage it (change its department, priority, comment on it, etc.)
* fix comments github pt1
* tests ruby
* fix
* Fix ruby tests
* add commenteed tests