240 Commits

Author SHA1 Message Date
3e4f8084ae fix(suspensions): fix missing datetime cast
A missing datetime cast caused issues in the suspension service, where it tried calling Carbon methods on a string (which should have been a Carbon instance).
2023-07-02 00:03:35 +01:00
2cfdabeb62 chore(deps): update sentry version, sentry handler 2023-07-02 00:01:22 +01:00
498534e9c0 chore(refactor): refactor events 2023-07-01 22:36:58 +01:00
b58922b168
chore: update demo mode wipe time for consistency
Signed-off-by: miguel456 <me@nogueira.codes>
2023-06-29 20:27:01 +01:00
57346f49e0
feat(overrides): check if value to modify is feature
Signed-off-by: miguel456 <me@nogueira.codes>
2023-06-29 19:46:13 +01:00
2b1caeb80c
branch commit
Signed-off-by: miguel456 <me@nogueira.codes>
2023-06-29 18:21:58 +01:00
17652307c8
feat(overrides): modify outgoing setting values
Signed-off-by: miguel456 <me@nogueira.codes>
2023-06-29 18:19:04 +01:00
05e2cd4f82
feat(overrides): add override functionality to Options
Signed-off-by: miguel456 <me@nogueira.codes>
2023-06-29 17:20:41 +01:00
25ef8ad19d
feat(theme): update adminlte config
Also adds a profile url method to the user model. Needs new way to do this.

Signed-off-by: miguel456 <me@nogueira.codes>
2023-02-26 02:41:49 +00:00
11db19cf6d
feat(models): remove deprecated "dates" model property, use casts instead
Also deprecates OneoffApplicant

Signed-off-by: miguel456 <me@nogueira.codes>
2023-02-26 01:08:40 +00:00
91990e7a1d
feat(providers): remove call to registerPolicies because it's now called by the framework
Signed-off-by: miguel456 <me@nogueira.codes>
2023-02-26 01:01:18 +00:00
4bf8190fe6
chore(deps): updated dependencies to Laravel 10
See #21 for details

Signed-off-by: miguel456 <me@nogueira.codes>
2023-02-25 23:43:46 +00:00
3727c84f3e
refactor: code style changes
Signed-off-by: miguel456 <me@nogueira.codes>
2023-01-15 00:04:00 +00:00
0941023aef
fix: check if absence is cancellable in expiry check instead
Approved & pending absences can be cancelled. Initial actionability check only accounts for pending absences. Fixes issue where expired absences wouldn't be ended.

Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-19 03:05:55 +00:00
228750e1c3
fix: check actual absence relationship instead of id
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-19 02:59:25 +00:00
4a2061fbf9
fix: prevent flood of absence expiry notifcation emails
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-12 22:09:42 +00:00
35d112a5ca
fix: check if absence is ended
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 01:19:58 +00:00
27ba576678
fix: remove n+1 absence notification
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 00:56:56 +00:00
66f6b9ffd0
fix: import missing user class in Bancheck.php
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 00:42:41 +00:00
a88d04e764
fix: remove dead middleware
Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 00:38:21 +00:00
81d995cfc7
refactor: remove useless check for existence
Route model binding already returns a 404 if a model is not found through its ID, thus rendering the code performing that validation useless.

Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 00:36:07 +00:00
f43ff4e9a0
refactor: count on the query, not collection
This commit introduces a short performance boost by counting the records in the query itself, instead of doing that in the collection Laravel returns.

Signed-off-by: miguel456 <me@nogueira.codes>
2022-11-08 00:32:48 +00:00
b89d71b371
Revert "Revert "merge 1""
This reverts commit 0c463d1f10145bf99dd63fd7128f992ab2371ffb.
2022-10-24 01:04:22 +01:00
0c463d1f10
Revert "merge 1"
This reverts commit 0bc6c20a6d6ad9b906827b9d3f3034a811178f60.
2022-10-24 01:03:43 +01:00
0bc6c20a6d
merge 1
Signed-off-by: miguel456 <me@nogueira.codes>
2022-10-24 01:01:10 +01:00
952e307f46 fix: add missing translation functions to controllers 2022-03-31 17:25:25 +01:00
a7c76ad7b8 fix: add validation to home contact form
The form wasn't previosly being validated, allowing spammers to proliferate and bypass the captcha.
2022-03-31 17:25:25 +01:00
498fe5d09e refactor: refactored administration strings
This commit also removes support for French and Spanish, and adds support for Brazillian Portuguese.
Additionally, the accidental leave protection on the form builder has also been fixed.
2022-03-31 17:25:25 +01:00
b8242dbc87 feat: add account deletion notifications
This also sets up notifications for all site admins
2022-03-07 21:14:51 +00:00
a265debe4c feat: add account unlock/lock notifications 2022-03-07 19:43:14 +00:00
a4f41b8f8d fix: add constraint actions to db structure
This commit adds several missing "cascade delete" actions to relationships on database tables. This effectively fixes errors while trying to delete user accounts because of pending child records.

Additionally, the observers for applications and vacancies were removed, since they are now obsolete.

The account deletion system was also refactored.
2022-03-07 18:14:42 +00:00
ec23c05c5f fix: paginate user search results 2022-03-06 12:56:41 +00:00
0e85f81fe6 chore: update verify email wording 2022-03-06 10:05:55 +00:00
52ece54202 chore: update wording and info on new user email 2022-03-05 23:24:25 +00:00
e9c24d8f37 chore: change wording on suspension notification 2022-03-05 22:24:38 +00:00
80965d786c fix: remove unnecessary notifiable 2022-02-27 17:07:31 +00:00
be494b5f21 feat: add pagination to absence list 2022-02-24 01:28:36 +00:00
e567094f40 feat: add loa requests
This commit adds a feature that allows users to request periods of inactivity from their managers. This is effectively known as a leave of absence.

The commit also introduces new permissions and migrations, therefore, you'll need to adapt your database according to these changes.
2022-02-24 00:56:46 +00:00
f61a287c78 chore: upgrade to L9
BREAKING CHANGE: This commit updates the Laravel framework to version 9. Additionally, it also updates outdated and abandoned dependencies in the composer.json file.

The resources/lang directory has also been moved to the repository's root directory.
2022-02-22 19:46:18 +00:00
0d62167f0c Add pagination and order to applications page 2022-02-11 02:11:59 +00:00
784c8f6595 Expand and simplify vacancy update notification 2022-02-11 01:55:01 +00:00
572d750711 Avoid Ghost User in mass notifications 2022-02-11 01:13:30 +00:00
294c678283 Fix broken opt-in notifications 2022-02-11 00:51:16 +00:00
025f69f622 Update email salutations/greetings 2022-02-10 20:33:08 +00:00
5e2eabac0c Improve transactional emails 2022-02-10 15:45:22 +00:00
127c972304 Removed staff profiles 2022-02-10 13:32:02 +00:00
6a4ba00c78 Prepared Pusher push notifications 2022-02-07 22:54:10 +00:00
09e48544d1 Removed unused log messages 2022-02-07 19:18:02 +00:00
23a191deb9 Add LOA feature, improve components 2022-02-07 18:59:22 +00:00
4da435dc1e Remove "staff member" list 2022-02-02 05:36:09 +00:00