528 Commits

Author SHA1 Message Date
LautaroCesso
0ecf88237f
[DEV-340] Refactor edit ticket comment no permission validations (#1207)
* Refactor edit ticket comment no permission validations

* Refactor edit comment path
2022-05-16 17:36:06 -03:00
LautaroCesso
c82aaa001e
[DEV-318] Add edit comment tests (#1194)
* WIP Fix ruby tests

* WIP

* WIP

* Add edit ticket comment test
2022-05-04 11:30:37 -03:00
Guillermo Giuliana
41d7aa5406
[DEV-302] Fix custom filed error message padding (#1190)
* add en translation

* add margin

* add i18n to error

* add minor changes

* add en translations
2022-04-25 18:16:07 -03:00
LautaroCesso
62bd70cc3b
[DEV-318] Make staffs able to edit their own content (#1187)
* Fix edit ticket comment permissions

* wip

* Rename ticketEventToArray variable
2022-04-25 12:43:25 -03:00
LautaroCesso
0f6c64674e
Fix ruby tests (#1188)
* Fix ruby tests

* Add pageSize default value
2022-04-25 12:38:44 -03:00
Joel Elias Méndez
83b8e8094b
[DEV-195] Fix php documentation (#1134)
* fix php documentation

* add descriptions to backend docs

* add missing php documentation

* correct some documentation details
2022-04-19 13:18:23 -03:00
Joel Elias Méndez
81cc579d57
[DEV-260] Make modal in CSV import actually check if the password entered is correct (#1155)
* check for correct password when uploading csv file

* allow to import only csv files

* add validation for password in csv import
2022-04-19 13:18:04 -03:00
Joel Elias Méndez
b3c8819d83
[DEV-279] Make ticket table show more tickets overview (#1164)
* make ticket table show more tickets overview

* allow user to choose ticket quantity

* add styles

* fix New Tickets section dropdown

* add commented changes

* correct some code issues
2022-04-19 13:17:48 -03:00
Joel Elias Méndez
86cad910ec
[DEV-222] Search fails when staff has no departments assigned (#1172)
* commented pr

* fix no department assigned issue

* undo irrelevants changes
2022-04-19 13:16:31 -03:00
Guillermo Giuliana
f890fdc2d3
[DEV-161] Add apikey to ticket comment path (#1173)
* update ticket comment path

* update validations

* remove useless line
2022-03-29 13:48:46 -03:00
Nícolas Castillo
784d470ba5
Fixed e-mail reply polling (#1154) 2022-02-21 14:12:04 -03:00
LautaroCesso
54a5a9803d
[DEV-239] Remove unexpected error in upload csv file (#1151)
* Remove unexpected error in upload csv file

* Fix bug when render csv file error list

* csv files without eof line work OK

* [DEV-239] Prettify code
2022-02-18 18:33:34 -03:00
Guillermo Giuliana
639d40ddb0
[DEV-194] Change same department of a ticket bug (#1135)
* add logic into change-departmetn path

* add ruby tests
2022-01-28 14:22:07 -03:00
LautaroCesso
8b4b73402e
Change 4.10.0 to 4.11.0 (#1126) 2022-01-04 13:24:06 -03:00
LautaroCesso
9291aa66a4
[DEV-197] Message bug (#1113)
* Fix message bug

* Add controlled pattern to message component

* Fix bug in admin panel custom fields form message

* Fix bug in dashboard ticket page message

* Fix bug in staff editor messages

* Fix bug in ticket viewer messages

* Fix bug in admin login page messages

* Fix bug in password recovery messages

* Fix bug in main home page login widget messages

* Fix bug in main signup widget messages

* Fix bug in admin panel custom responses message

* Fix bug in admin panel email settings message

* Fix bug in admin panel ban users message

* Fix bug in admin panel ban users message

* Fix bug in main recover password page messages

* Fix bug in dashboard list tickets page message

* Fix bug in dashboard edit profile page messages

* Fix bug in create ticket form messages

* Fix bug in invite user widget messages

* Fix bug in create ticket form messages

* Fix bug in admin panel list users messages

* Fix bug in admin panel system preferences messages

* Fix bug in admin panel advanced settings messages

* Fix bug in install step 3 database message

* Fix bug in install step 5 settings message

* Fix bug in install step 6 admin message

* Fix bug in install completed message

* Fix bug in ticket query list message

* Fix bug in articles list message

* Fix bug in admin pane search tickets message

* Fix bug in admin panel my tickets message

* Fix bug in admin panel new tickets messages

* Fix bug in ticket list messages

* Fix bug in main home page portal message

* Fix bug in dashboard create ticket page message

* Fix bug in main home page messages
2021-12-28 14:03:53 -03:00
Guillermo Giuliana
b9f5f7fcf1
[DEV-205] Users/Staffs should not be able to change the email for one already used by another user/staff (#1121)
* add verification of email on staffs

* add email verification users

* fix inviteStaff ruby test function

* add edit staff ruby tests

* add edit user ruby tests

* update other ruby tests
2021-12-28 00:26:55 -03:00
Guillermo Giuliana
fe1dd1bd48
[DEV-199] Can't put a department in private (#1115)
* 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
2021-12-17 14:10:57 -03:00
Guillermo Giuliana
237801e9ed
Revert "add last files (#1110)" (#1114)
This reverts commit 950439bf4776168e7e075c7b944efa7323dfa7e6.
2021-12-13 16:32:53 -03:00
Guillermo Giuliana
950439bf47
add last files (#1110) 2021-12-13 09:57:20 -03:00
LautaroCesso
b39e4c2a5f
Fix edit ticket comment (#1107)
* Fix edit ticket comment

* Add some docs comments

* Change some test names
2021-12-02 21:35:37 -03:00
LautaroCesso
5a1b558a6d
Fix some article bugs (#1102) 2021-12-01 20:00:36 -03:00
Guillermo Giuliana
4b9a55b334
[DEV-155] add captcha into login (#1090)
* fix apidoc

* part 1

* pt2

* add classname and css
2021-11-30 01:37:24 -03:00
LautaroCesso
402af565a9
[DEV-162] Fix ticket comment issues (#1081)
* Fix bug in UI

* Fix bug in backend

* Fix some issues

* Improve coding

* Improve coding
2021-11-26 17:37:33 -03:00
Guillermo Giuliana
0df57af11e
[DEV-187] Fix duplicated-department-names bug (#1083)
* fix apidoc

* add new custom validation

* add ruby tests

* add frontend error

* take out the ternary
2021-11-24 14:21:16 -03:00
LautaroCesso
edddc8d2c5
[DEV-163] Fix custom fields issue (#1079)
* Fix custom fields issue

* Add custom fields options validation

* Add not blank option validation

* Fix description length
2021-11-17 13:31:39 -03:00
LautaroCesso
d7ccff1a5a
[DEV-26] Update length validations (#1075)
* Update length validations

* Fix language validations

* Remove unnecessary import

* Delete some semicolons
2021-11-11 17:17:39 -03:00
Guillermo Giuliana
9ed4caf202
[DEV-160] Add user permission into logout path (#1073)
* fix apidoc

* add user verification into logout.php and update ruby tests
2021-11-05 17:06:08 -03:00
Joel Elias Méndez
09150d6940
fix message issue (#1063) 2021-10-20 14:10:09 -03:00
Guillermo Giuliana
02cf8f0da3
Update php cookies security (#1056)
* set php cookies

* update edit title doc

* add session renerate id to session createSession function
2021-10-18 22:06:32 -03:00
Guillermo Giuliana
e15bd15f07
Updates to 4.10.0 (#1061)
* change 4.9 to 4.10

* new translations
2021-10-18 22:06:20 -03:00
Guillermo Giuliana
c657d8291f
add controller request secure param (#1060) 2021-10-18 22:05:54 -03:00
Guillermo Giuliana
143776febe
update api documentation (#971) 2021-10-14 17:57:02 -03:00
Joel Elias Méndez
b8be664809
fix-response-width (#1054) 2021-10-14 13:29:12 -03:00
Guillermo Giuliana
c64f1f1ea6
[DEV-146] resend verification email backend (#1049)
* add path resend signup token

* add ruby tests
2021-10-08 19:07:14 -03:00
Guillermo Giuliana
5d4fe0250b
[DEV-148] Resend invitation backend (#1050)
* add resend-staff-invite path

* add resend-user-invite path

* add departments verification staff invite and ruby test

* add user invite ruby tests

* add resend invite paths and ruby tests
2021-10-08 19:04:25 -03:00
Guillermo Giuliana
27e86c934c
[DEV-131] Fix delete ticket bug (#1035)
* verify ticket author-user before reduce amount of tickets created

* add ruby test

* change geting tickets by id in ruby tests
2021-09-22 18:20:19 -03:00
Ivan Diaz
064f00388a
Fix undefined property check for user 2021-09-18 23:07:09 -03:00
LautaroCesso
e6441179c9
Fix bug in ticket count in admin panel list users (#967) 2021-01-19 17:15:43 -03:00
Guillermo Giuliana
e554bb64d1
Release 4.9.0 (#965)
Co-authored-by: CircleCI-BOT <ivan@opensupports.com>
2021-01-08 16:27:24 -03:00
J0WI
1a9e1a852c
Only erase all mails on success (#894) 2021-01-05 21:47:33 -03:00
Guillermo Giuliana
49dc1ab56c
DEV-86 (#959) 2021-01-05 21:02:35 -03:00
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
LautaroCesso
51eee4ed7b
Paginate ticket list in admin panel view user (#944)
Co-authored-by: Ivan Diaz <ivan@opensupports.com>
2020-12-26 19:13:59 -03:00
LautaroCesso
15f765cf85
Fix bug in ticket list in my account and view staff (#921)
* wip

* Delete ticket of staff/get.php response

* Move paginate functions to staff editor component

* wip

* fix assignedTickets and closedTickets values in staff/get-all

* add show closed tickets checkbox in admin panel my account

* WIP

* Add initial api value

* Fix staff/get-all test

* WIP
2020-11-13 14:23:14 -03:00
Guillermo Giuliana
b8944a3f04
New apikeys permissions (#869)
* 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
2020-10-14 15:08:14 -03:00
LautaroCesso
994a39ad6d
Add more descriptive error messages when in delete staff. (#892) 2020-09-30 17:35:32 -03:00
Guillermo Giuliana
b73d6d534d
Fix ticket seach query when you are looking for an own ticket that is not in an owned department (#897)
* update departments filter

* update php test
2020-09-29 01:14:06 -03:00
Maximiliano Redigonda
80a9a958a8
Revert "Google social login" (#886) 2020-08-28 14:13:23 -03:00
Guillermo Giuliana
c00720d6a2
Minor GitHub bugs (#806)
* 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>
2020-08-28 07:13:34 -03:00
LautaroCesso
5184c31907
Fix error in edit button for ticket owner. (#872)
* Retrieve staff members after edit staffs.

* Delete retun after throw new RequestException in staff/edit.php

* Resolve github Ivan comments.

* wip
2020-08-28 06:27:04 -03:00