Skip to content

Conversation

@notAreYouScared
Copy link
Member

Well... This should be fun ❤️

@notAreYouScared notAreYouScared marked this pull request as ready for review September 4, 2025 22:03
@rmartinoscar rmartinoscar linked an issue Sep 5, 2025 that may be closed by this pull request
@rmartinoscar rmartinoscar removed this from the beta26 milestone Sep 5, 2025

This comment was marked as outdated.

/** @return array<mixed> */
public function getCustomization(): array
{
return json_decode($this->customization, true) ?? [];
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't customization be a an array cast so you don't need json_decode?

Copy link
Member

Choose a reason for hiding this comment

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

Yes and even better you should be able to specify the key as a function arg, if there's none you return the full array otherwise you return the value of that key so we don't have getCustomization()['key'] but getCustomization('key')

Copy link
Member

Choose a reason for hiding this comment

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

It throws an App\Models\User::getCustomization(): Return value must be of type array, string returned when not using json_decode for some reason.


class TwoFactorListener
{
// TODO: add event to filament
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to do this now?

Copy link
Member

Choose a reason for hiding this comment

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

Yes-ish. If the event isn't called there is no activity logged.

@Boy132 Boy132 requested a review from Copilot September 8, 2025 08:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request upgrades the application from Filament v3 to Filament v4, bringing significant changes to the panel framework. The upgrade includes architectural changes such as replacing Forms with Schemas, updating authentication methods, and modernizing the codebase structure.

  • Upgraded core Filament framework from v3.3 to v4.0 with breaking API changes
  • Replaced authentication system with new multi-factor authentication using app-based TOTP and email
  • Updated form architecture from Forms to Schemas throughout the application

Reviewed Changes

Copilot reviewed 298 out of 379 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
composer.json Updated Filament version constraint and removed incompatible packages
database/migrations/ Added new MFA fields migration replacing TOTP system
app/Models/User.php Implemented new MFA interfaces and removed legacy TOTP fields
app/Livewire/Installer/ Updated installer components to use new Schema-based forms
app/Providers/Filament/ Updated panel providers for v4 authentication methods
app/Http/Middleware/ Removed legacy 2FA middleware in favor of built-in MFA

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@notAreYouScared notAreYouScared merged commit 1900c04 into main Sep 8, 2025
25 checks passed
@notAreYouScared notAreYouScared deleted the filament-v4 branch September 8, 2025 17:12
@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

6 participants