151 Commits

Author SHA1 Message Date
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
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
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
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
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
93b015f98b Remove giveaway page and announcements 2021-12-19 03:43:30 +00:00
10da9f6797 feat: add Discord authentication framework 2021-12-15 02:27:32 +00:00
4d1bfe7c46 Add temporary giveaway page 2021-12-09 21:22:40 +00:00
60c53d9b31
Add missing namespace 2021-11-07 18:13:26 +00:00
a2f7b76fcb Add interface to force rejections 2021-11-06 15:06:47 +00:00
aed473a01a Add logic for forced application rejection 2021-11-06 14:52:48 +00:00
fce6e92d9d
Added an appointment cancellation button 2021-11-03 00:38:20 +00:00
93172d1e81
Improve devtools interface
This commit revamps the interface and adds more commands.
2021-10-30 04:37:10 +01:00
59cfbd7ed1
Fix broken suspension cleaner
This commit rewrites the previously broken auto ban cleaner. It's now much more efficient and compact, and it removes bans correctly and on the right date.

Fixes #1
2021-10-30 03:53:32 +01:00
230eda1974
Removed API key feature
Removed API key generation feature in preparation for JWT authentication
2021-10-29 20:23:45 +01:00
c657da951c
Allow vacancies to be deleted 2021-10-25 05:45:45 +01:00
3c0e33fef7
Fix issue with account deletions
Also, added the ignition file for customising the error page for devs
2021-10-25 02:08:32 +01:00
de2c3a0efd
Add IP facade 2021-10-24 04:41:33 +01:00
ab037a3474
Allow hiding IP addresses
This commit introduces a new feature where users can disable the collection and display of IP addresses. It's hardcoded in the .env config file for security reasons, and demo mode ignores this setting, because it already hides IPs by default.
2021-10-23 07:27:35 +01:00
5ff96143a7
Fix no-license UUID bug
This commit fixes a registration bug while license requirements are off.
Since the app always expects a UUID, it would error out without one.
2021-10-20 03:43:58 +01:00
521810c23c
Fix team update issue 2021-09-04 13:50:43 +01:00
e6f84cd09a
Fixed broken Laravel Mix
Also disabled IP history logger for demo mode
2021-09-04 02:56:18 +01:00
3f4bc28fd4
Added Demo mode
Demo mode allows to safely run a demo version of the app, with destructive features limited.

Some bugs were also fixed in this commit.
2021-09-04 00:44:54 +01:00
8942623bde
Added services
This commit moves most controller logic onto Services. Services are part of the Service-Repository pattern. The models act as repositories.

Services are easily testable and are needed for the upcoming API, in order to avoid duplicated code and to maintain a single source of "truth".

 The User, Vacancy and Vote controllers still need their logic moved onto services.
2021-07-25 22:54:15 +01:00
c739933668
Push suspension logic onto Service
In preparation to the upcoming API, most logic is being moved to services. Models function as repositories.
2021-07-21 19:33:52 +01:00
cbcc1f025a
Refactored ban system
Implemented a Reddit-like account suspension system (similar to subreddit bans). This makes it easier to ban users from the app, and the code has also been cleaned up.

The interface was also revamped.
2021-07-20 22:35:49 +01:00
6cda1fe183
More refactoring
Refactored some old code and added missing translation calls.
2021-07-20 10:32:43 +01:00
620453c1e4
Separation of Concerns + old coude cleanup 2021-07-20 00:35:03 +01:00
9baa249ba7
Added logging to API calls 2021-03-31 19:53:23 +01:00
f62ea9669b
Finished applications API endpoint group 2021-03-31 19:39:42 +01:00
6940b1816e
Merge remote-tracking branch 'origin/develop' into develop 2021-03-31 15:50:55 +01:00
ddd79d38fe
API Resources and first endpoints 2021-03-31 03:55:09 +01:00
2bc07d8ca0
Add key management page 2021-03-30 18:16:01 +01:00