Skip to content

feat/fix(user ips): fixes and admin panel recent regs widget + v3 catchup#275

Merged
ScuffedNewt merged 96 commits intoScuffedNewt:extension/user-ipsfrom
liwoyadan:extension/user-ips
Feb 24, 2026
Merged

feat/fix(user ips): fixes and admin panel recent regs widget + v3 catchup#275
ScuffedNewt merged 96 commits intoScuffedNewt:extension/user-ipsfrom
liwoyadan:extension/user-ips

Conversation

@liwoyadan
Copy link
Copy Markdown

Had some time last night to put these on a fresh branch finally, but this PR includes the following:

  • Fixes the query for the 'most users' option on the user IPs index
  • Makes user IP tables (both index and on edit user) mobile friendly
  • Adjusts the DB::raw query to display the IP's updated_at value correctly on the index
  • Also made the user dropdown on the IP index selectize...since it's a bit nightmarish for larger sites otherwise hahaha
  • Adds a widget on the bottom of the admin panel visible to any staff with the edit_user_info power to show the 10 most recent registrations, the corresponding first IP logged on register, as well as if that IP is shared with any existing users
    • This is an include for ease of removal for any site owners who don't want it, you can also adjust the number of registrations it shows in the HomeController.php for the admin panel
    • Additionally moved the user IPs index link in the admin panel to be under 'Users' since the route itself is also set to be accessed by any staff with the edit_user_info power by default
  • Also made the 'shared with' columns on the IP tables (edit user + recent registrations) exclude the given user themself so it's easier at a glance to know which IPs are shared and which aren't
  • And then caught the code up to recent v3 branch so everything is current now

Side note: I also have a separate version that will also list if a given IP is a known VPN/proxy or not via using TrustIP Laravel package and its API, but it's not included here as it's an additional package and TrustIp does have a daily maximum quota (500 requests daily, resets at midnight UTC) when on the free plan...on my end I just cache the result so the info doesn't need to be re-fetched all the time from the API but idk how much this would be wanted. 🤔 (And ofc my disclaimer to anyone who is reading this PR: false positives and false negatives are always possible and IPs are largely just checked against known VPN/etc providers, so this is in no way a foolproof method of knowing if a given user is using a VPN or not.)

AW0005 and others added 30 commits August 25, 2024 15:18
* Bug(Comments): Permalinks pull all comments into memory

Permalinked comments were pulling all comments into memory before finding the comment actually linked to, which will eventually crash the page.

* refactor: fix blade formatting

---------

Co-authored-by: AW0005 <AW0005@users.noreply.github.com>
…g#1026)

* fix(admin): Sales index updated to bootstrap tables

* refactor: fix blade formatting

* fix(admin): 7 more

* refactor: fix blade formatting

* fix(admin): Uneven files index columns, thanks to @Moif for pointing it out

* fix(admin): Other fixes I should've done

---------

Co-authored-by: SpeedyD <SpeedyD@users.noreply.github.com>
…tent (lk-arpg#959)

* fix: update image size validation to correctly be 2mb instead of approx. 20mb & add validation to admin reuploads

* feat(nit): 2048(kb) -> 2mb & add to update rules (just in case!)

* fix(myos): update rules for myos
* fix(admin): Raffle Table messup
(Technically I should be cleaning up the indents but I'll let the automation catch that)

* refactor: fix blade formatting

---------

Co-authored-by: SpeedyD <SpeedyD@users.noreply.github.com>
fix(credits): Update all references to ne-wt to ScuffedNewt
…arpg#1082)

* hotfix: Fix visibility issues for gallery submissions

* Update User.php

* Requested changes re: scopes

* Clearing up a lil bit more redundancy and keeping in line with previous commit

* no visibility for you
…ports/mobile (lk-arpg#1099)

- User profile rows no longer are so small that they break heading text on >= 992px viewports (as their biggest breakpoint is lg)
- Character information pages (image info and stats tab) have also had rows adjusted to prevent breaking headings
* Update GalleryController.php

* Update gallery.blade.php
fix: remove extra $ from _profile_content.blade.php (release branch)
- Uses bs-custom-file-input and existing Bootstrap v4 classes to make file inputs that actually show on mobile devices
* Bug(Reports): Fix tabs not appropriately being set to active

* Update reports.blade.php

* refactor: fix blade formatting

---------

Co-authored-by: AW0005 <AW0005@users.noreply.github.com>
- impacts edit buttons displayed on news and sales posts
Mark and others added 27 commits July 26, 2025 18:33
* fix: add captcha block to register_with_driver.blade.php

* refactor: fix blade formatting

---------

Co-authored-by: perappu <perappu@users.noreply.github.com>
* fix(user profiles): Rank info help does not appear if description empty

* I did not think this through

* ..Not sure if big improvement?

* And we flip back
* fix(character): Minor button renaming

* Change 'Edit Notes' to 'Edit Description'

* Change 'Edit Features' to 'Edit Traits' link text
- Also selectize on the user dropdown
@ScuffedNewt
Copy link
Copy Markdown
Owner

Side note: I also have a separate version that will also list if a given IP is a known VPN/proxy or not via using TrustIP Laravel package and its API, but it's not included here as it's an additional package and TrustIp does have a daily maximum quota (500 requests daily, resets at midnight UTC) when on the free plan...on my end I just cache the result so the info doesn't need to be re-fetched all the time from the API but idk how much this would be wanted.

I think if there can be a config option to turn it on or off, and some ENV values added to .env.example it would be a perfectly fine optional addition that provides value

up to you!

Copy link
Copy Markdown
Owner

@ScuffedNewt ScuffedNewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great PR, thanks for submitting!

@ScuffedNewt ScuffedNewt merged commit 59e828b into ScuffedNewt:extension/user-ips Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.