234 Commits

Author SHA1 Message Date
Jay Sizzla
25acde5e8d Fix tests 2025-11-01 12:19:38 +00:00
Jay
1d3b052b21 Updates from code review
Co-authored-by: Roardom <roardom@protonmail.com>
2025-11-01 12:19:38 +00:00
Jay Sizzla
74243f3b43 Add new tests for staff report handling 2025-11-01 12:19:38 +00:00
Roardom
7aee9f4c3e update: validate email dns for register, profile update, invite
closes #5030
2025-10-17 22:49:54 +00:00
Jay Sizzla
92179be953 Refactor user invite and registration tests
Remove obsolet tests, include email verification for registration tests, and complete more tests from InviteControllerTest
2025-09-21 14:05:23 +01:00
Roardom
cc26a18d05 update: prefer sentence case over title case in toast notifications 2025-09-20 03:09:40 +00:00
Roardom
902fd94b0c add: unfollow button to following page 2025-08-10 00:35:57 +00:00
HDVinnie
8bac01a5de Merge pull request #4811 from AnabolicsAnonymous/follow-controller-validation 2025-07-03 19:57:00 -04:00
AnabolicsAnonymous
de0ea160e9 chore: lint 2025-07-03 11:47:02 -05:00
AnabolicsAnonymous
de83aadfaf update: phpunit test to follow before unfollowing 2025-07-03 11:43:54 -05:00
AnabolicsAnonymous
257867c2a4 update: move follow test above unfollow test 2025-07-02 03:52:57 -05:00
Roardom
4a8248d576 refactor: rename top10 to trending
It is more than just a top 10 page now.
2025-06-30 07:39:55 +00:00
HDVinnie
ea36520af1 Merge pull request #4800 from Roardom/enum-strings 2025-06-29 13:32:57 -04:00
Roardom
da7a606d3a update: require 24 (configurable) hours after enabling 2fa before inviting
Previous (less secure) behavior can be restored by setting the config value to 0.
2025-06-23 06:33:03 +00:00
Roardom
46bfccc8b7 refactor: use enums for auth guards, middleware groups, and rate limits 2025-06-22 20:00:02 +00:00
Roardom
a84c6de560 refactor: use laravel 7 seeder naming conventions
In laravel 7 and onward, seeder naming convention was changed to be singular and without `Table`.
2025-06-13 18:05:32 +00:00
Roardom
0d92098d6f refactor: replace users.active with users.email_verified_at
This is the correct column intended to be used by the Laravel framework. `active` seems to be a custom column that was implemented in UNIT3D before Laravel added email verification in version 5.7.
2025-06-11 06:07:56 +00:00
Roardom
5f60ce6b77 refactor: enforce view filenames to use kebab case
Also had to use `@style` directives inside /resources/views/components/user-tag.blade.php. Prettier was erroring when the `@if` directive was inside the html attribute otherwise. Seems to have always been an issue, but the CI must only be formatting files that changed and because the file was only just changed now, it never discovered it until now.
2025-05-07 08:28:46 +00:00
HDVinnie
094f64ed46 refactor: mass private message system
- Dedicated CRUD controller
- Allow selected groups only
- Old Mass action controller will be moved to own Mass validate users controller in separate pr
- closes #4690
2025-05-06 08:37:54 -04:00
Roardom
9d478c928b remove: public view of all users in group 2025-04-05 10:31:11 +00:00
Roardom
9efc2d3c5c add: playlist categories 2025-04-01 09:54:31 +00:00
Roardom
ae33c74f2b refactor: prefix tmdb metadata models with tmdb
Will help for when there exists other metadata sources available (such as already done for igdb)

Step 4 in cleaner meta fetching code.
2025-03-17 20:41:01 +00:00
Roardom
32cf8da4db refactor: split tmdb into movie_id and tv_id
Step 2 in cleaner meta fetching code.
2025-03-16 22:55:24 +00:00
Roardom
a447269552 refactor: use moderation status enum and cast
For consistency and less magic numbers hard coded everywhere.
2025-02-26 14:23:02 +00:00
HDVinnie
740a0603d4 Merge pull request #4454 from Roardom/fix-sync-queue-tests
(Fix) Use sync for the connection queue in tests
2025-01-28 12:02:49 -05:00
HDVinnie
d2452f478f Merge pull request #4447 from Roardom/spellcheck
(Add) Spell check ci
2025-01-28 12:00:43 -05:00
Roardom
2967cc5d9d fix: use sync for the connection queue in tests
Tests more accurately as we can ensure jobs finish successfully.
2025-01-26 21:59:59 +00:00
Roardom
604b7e1937 add: spell check ci
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
2025-01-24 11:30:34 +00:00
Roardom
868ad35aa4 refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.

Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
Roardom
d922562f86 update: make bonus point allocation more customizable 2025-01-16 21:40:25 +00:00
Roardom
1e342d98fe add: edit forum permissions when creating/editing group 2024-12-16 11:04:27 +00:00
HDVinnie
a56c0cf73d (Add) New torrent moderator group (#4351)
* add: new torrent moderator group

- this group is limited to moderating and editing torrents via is_editor and is_torrent_modo group permissions
2024-11-26 20:17:49 -05:00
Ion Bazan
4c40916f9d fix test 2024-11-01 16:39:12 +08:00
Ion Bazan
67a34a4283 Update Pest tests 2024-11-01 15:28:28 +08:00
HDVinnie
25031dcf76 chore: pint ci 2024-10-30 07:29:13 -04:00
Ion Bazan
87e547b444 Add internal note for staff invitations 2024-10-30 11:14:48 +08:00
HDVinnie
d363acc3bd Merge pull request #4196 from Roardom/remove-unneccessary-home-page-queries
(Update) Remove unncessary home page queries
2024-10-01 10:47:56 -04:00
Roardom
a199eec068 update: remove unncessary home page queries
The data from these queries were originally used directly in the views to avoid n+1, but now the TopTorrents Livewire component includes the appropriate queries.
2024-10-01 08:46:31 +00:00
Jay
6e721e5cb3 Catch empty cache error
Catch the empty cache error instead of showing error 500
2024-09-30 19:12:58 +01:00
Roardom
5a9ae37921 update: use system user id constant in more places 2024-08-26 09:28:44 +00:00
Roardom
64a60089d9 refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
2024-08-09 21:08:26 +00:00
Roardom
2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
Jay Sizzla
6894cca148 Allow polls to expire after a certain date 2024-07-24 16:23:06 +02:00
Jay
2ac770746a (Add) Active and inactive uploader staff view (#3824)
Co-authored-by: HDVinnie <hdinnovations@protonmail.com>
2024-07-03 11:38:11 -04:00
Roardom
2a4d822a7c remove: unused bot columns 2024-06-09 05:32:05 +00:00
HDVinnie
157b0133dd Merge pull request #3914 from Roardom/application-form-refactor 2024-06-07 20:56:35 -04:00
Roardom
0cb58d4211 refactor: use form request for storing application 2024-06-08 00:48:32 +00:00
Roardom
cdb063d8e0 add: private message threads 2024-06-07 20:47:36 +00:00
Roardom
80b9aa32bf add: livewire top users
More cleanly modularized using livewire computed attributes. Abuses the fact that only one of the tabs is selected and most users won't access the other tabs. This significantly reduces the time spent loading the home page when the cache is cleared.
2024-06-01 15:47:26 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00