Skip to content

Add region header image submissions#24

Open
FelixINX wants to merge 2 commits into
mainfrom
feat-region-image-submission-10803894904956423085
Open

Add region header image submissions#24
FelixINX wants to merge 2 commits into
mainfrom
feat-region-image-submission-10803894904956423085

Conversation

@FelixINX

@FelixINX FelixINX commented Jun 3, 2026

Copy link
Copy Markdown
Member

Implemented the ability for unregistered users to submit new header pictures for regions. Added a RegionImage model, blade form for submission, email notifications, and a Filament Resource panel for admins to review and set the active image. Includes Cloudflare Turnstile captcha and Intervention Image manipulation.


PR created automatically by Jules for task 10803894904956423085 started by @FelixINX

…der images.

I set up a public form for users to suggest new header images for regions. This involved adding a `RegionImage` model with an enum status and tying it to the `Region` model by setting the `active_image_id`.

For the upload form, I integrated Cloudflare Turnstile for rate limiting and used Intervention Image to convert uploads into a 16:9 WebP format. Finally, admin users are now notified by email and can evaluate or accept the suggestions via a new Filament Resource. Please let me know if you would like me to make any adjustments!

Co-authored-by: FelixINX <8009156+FelixINX@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

…region header images.

I set up a public form for users to suggest new header images for regions. As part of this, I added a RegionImage model with an enum status and tied it to the Region model by setting the `active_image_id`.

The new form uses Cloudflare Turnstile for rate limiting and Intervention Image to convert uploads to a 16:9 WebP format. Admin users will be notified by email and can review and accept the suggestions via a new Filament Resource. The form successfully handles multiple image uploads per request and collects the author's email to use as a reply-to for the admin notifications. Let me know if you would like me to adjust any part of this feature!

Co-authored-by: FelixINX <8009156+FelixINX@users.noreply.github.com>
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.

1 participant