Commit Graph

91 Commits

Author SHA1 Message Date
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
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
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
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
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
Roardom
5a9ae37921 update: use system user id constant in more places 2024-08-26 09:28:44 +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
Roardom
cdb063d8e0 add: private message threads 2024-06-07 20:47:36 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
d32ae88e86 remove: casino/trivia/bet bots
These bots don't currently do anything. Exception: the casino bot accepts donations through a nerdbot command but doesn't currently do anything else with it. If any trivia/casino/bet features need to be brought back, it would be easy enough to view the old code through the git history, but there's probably a bunch that can be improved with its interface as well.
2024-04-30 07:41:27 +00:00
HDVinnie
93b17f0419 chore: license 2024-03-19 17:56:44 -04:00
HDVinnie
9bc43d66d0 fix: ApplicationControllerTest.php 2024-03-12 10:50:30 -04:00
Roardom
580da7022d refactor: rename permissions to forum_permissions 2024-02-25 00:19:04 +00:00
Roardom
686f1560ca update: separate forum categories into their own model 2024-02-12 07:39:52 +00:00
HDVinnie
fdf90b808d (Add) System required groups validation (#3502)
* add: system required validation

- this will stop site operators from renaming system required groups which breaks things like:

`$validatingGroup = cache()->rememberForever('validating_group', fn () => Group::query()->where('slug', '=', 'validating')->pluck('id'));`
2024-02-08 11:45:22 -05:00
HDVinnie
0f53169cef add: missing commit for PR #3389 2024-01-15 21:47:06 -05:00
HDVinnie
aa3dc8ed18 refactor: enums 2024-01-04 03:26:10 -05:00
Roardom
a37e2013c4 update: use peer id for client blacklist instead of user agent 2023-12-31 09:27:48 +00:00
HDVinnie
834f7f4d7a update: UserGroups ENUM 2023-10-31 06:47:08 -04:00
HDVinnie
dfe027fced fix: tests 2023-08-19 12:45:23 -04:00
HDVinnie
4504137fef PHP Style Change (Laravel Pint CI) 2023-08-19 16:17:44 +00:00
HDVinnie
05099ad854 update: ChatBotControllerTest 2023-08-19 12:16:42 -04:00
HDVinnie
a77d0ae855 update: RegionControllerTest 2023-08-19 11:42:11 -04:00
HDVinnie
0854104639 update: more tests + sail docker-compose 2023-08-14 12:20:57 -04:00
HDVinnie
836fd2777c PHP Style Change (Laravel Pint CI) 2023-07-17 22:32:06 +00:00
HDVinnie
6af8a72af6 update: test-suite
- Tests: 422 incomplete, 318 passed (684 assertions) and coverage Total: 22.7%.
2023-07-17 18:30:58 -04:00
HDVinnie
8daf39c331 update: test suite 2023-07-11 16:48:07 -04:00
Shift
39e8a86b88 Generate HTTP tests for controllers 2023-07-11 18:27:15 +00:00
Shift
0f33d2846d Define test classes as final 2023-07-10 18:54:51 +00:00
Shift
812238b4b8 Adopt PHP attributes in test classes 2023-07-10 18:54:51 +00:00
Roardom
0a19cd4b07 refactor: use route model binding for staff types 2023-07-07 03:18:13 +00:00
Roardom
a5b8ff21bc refactor: use route model binding for staff pages 2023-07-07 03:18:13 +00:00
Roardom
a28667f969 refactor: use route model binding for staff groups 2023-07-07 03:18:13 +00:00
Roardom
0ecc17f366 refactor: use route model binding for staff chat statuses 2023-07-07 03:18:13 +00:00
Roardom
8f9f7ce824 refactor: use route model binding for staff chatrooms 2023-07-07 03:18:13 +00:00
Roardom
b4fd0afc26 refactor: use route model binding for staff bots 2023-07-07 03:18:13 +00:00
Roardom
3450577c00 refactor: use route model binding for staff categories 2023-07-07 00:28:47 +00:00
Roardom
ed4639083b refactor: use route model binding for staff articles 2023-07-07 00:28:47 +00:00
HDVinnie
59daaef299 Merge pull request #2401 from HDInnovations/Refund-System
(Add) Refund System
2023-06-15 19:46:15 -04:00