From cda76f979fe374b3aeb16281c2f6686829f83ba9 Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Wed, 13 Aug 2025 19:39:35 +0530 Subject: [PATCH 1/9] refactor: update Filament components structure --- .ai/filament/2/core.blade.php | 8 ++++++++ .ai/filament/3/core.blade.php | 13 +++++++++++++ .ai/filament/4/core.blade.php | 6 ++++++ .ai/filament/core.blade.php | 6 +++++- all.php | 1 + 5 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .ai/filament/2/core.blade.php create mode 100644 .ai/filament/3/core.blade.php diff --git a/.ai/filament/2/core.blade.php b/.ai/filament/2/core.blade.php new file mode 100644 index 0000000..6484650 --- /dev/null +++ b/.ai/filament/2/core.blade.php @@ -0,0 +1,8 @@ +## Filament 2 + +## Version 2 Changes To Focus On +- Resources are located in `app/Filament/Resources/` directory. +- Resource pages (List, Create, Edit) are auto-generated within the resource structure. +- Forms use the `Forms\Components` namespace for form fields. +- Tables use the `Tables\Columns` namespace for table columns. +- Admin panel accessible at `/admin` by default. diff --git a/.ai/filament/3/core.blade.php b/.ai/filament/3/core.blade.php new file mode 100644 index 0000000..553e291 --- /dev/null +++ b/.ai/filament/3/core.blade.php @@ -0,0 +1,13 @@ +## Filament 3 + +## Version 3 Changes To Focus On +- Resources are located in `app/Filament/Resources/` directory. +- Resource pages (List, Create, Edit) are auto-generated within the resource structure. +- Forms use the `Forms\Components` namespace for form fields. +- New RichEditor component available (`Filament\Forms\Components\RichEditor`) instead of Markdown Editor. +- Tables use the `Tables\Columns` namespace for table columns. +- Admin panel accessible at `/admin` by default. +- Form and table schemas now use fluent method chaining. +- Added `php artisan filament:optimize` command for production optimization. +- Requires implementing `FilamentUser` contract for production access control. +- New RichEditor component (Filament\Forms\Components\RichEditor) is available, diff --git a/.ai/filament/4/core.blade.php b/.ai/filament/4/core.blade.php index e4536d5..91395ec 100644 --- a/.ai/filament/4/core.blade.php +++ b/.ai/filament/4/core.blade.php @@ -9,3 +9,9 @@ - The `Form` & `Infolist` layout components have been moved to `Filament\Schemas\Components`, for example `Grid`, `Section`, `Fieldset`, `Tabs`, `Wizard`, etc. - A new `Repeater` component for Forms has been added. - Icons now use the `Filament\Support\Icons\Heroicon` Enum by default. Other options are available and documented. + +### Organize Component Classes Structure +- Schema components: `Schemas/Components/` +- Table columns: `Tables/Columns/` +- Table filters: `Tables/Filters/` +- Actions: `Actions/` diff --git a/.ai/filament/core.blade.php b/.ai/filament/core.blade.php index 94534e4..725426e 100644 --- a/.ai/filament/core.blade.php +++ b/.ai/filament/core.blade.php @@ -2,6 +2,9 @@ - Filament is by this application, check how and where to follow existing application conventions. - Filament is a Server-Driven UI (SDUI) framework for Laravel. It allows developers to define user interfaces in PHP using structured configuration objects. It is built on top of Livewire, Alpine.js, and Tailwind CSS. - You can use the `search-docs` tool to get information from the official Filament documentation when needed. This is very useful for Artisan command arguments, specific code examples, testing functionality, relationship management, and ensuring you're following idiomatic practices. +- Do not use the package name in the query, this project's packages are automatically share +- Use multiple, broad, simple, topic based queries +- Utilize static `make()` methods for consistent component initialization. ### Artisan - You must use the Filament specific Artisan commands to create new files or components for Filament. You can find these with the `list-artisan-commands` tool, or with `php artisan` and the `--help` option. @@ -29,7 +32,8 @@ @endverbatim -### Testing + +## Testing - It's important to test Filament functionality for user satisfaction. - Ensure that you are authenticated to access the application within the test. - Filament uses Livewire, so start assertions with `livewire()` or `Livewire::test()`. diff --git a/all.php b/all.php index 0b5537a..1b3466f 100644 --- a/all.php +++ b/all.php @@ -60,6 +60,7 @@ public function packages(): \Laravel\Roster\PackageCollection $enumMapping = [ 'php' => \Laravel\Roster\Enums\Packages::LARAVEL, // Use Laravel as placeholder for php 'laravel' => \Laravel\Roster\Enums\Packages::LARAVEL, + 'filament' => \Laravel\Roster\Enums\Packages::FILAMENT, 'fluxui-free' => \Laravel\Roster\Enums\Packages::FLUXUI_FREE, 'fluxui-pro' => \Laravel\Roster\Enums\Packages::FLUXUI_PRO, 'inertia-laravel' => \Laravel\Roster\Enums\Packages::INERTIA_LARAVEL, From 349ad10e6a95b8b9c12741e384afa781ee7c869c Mon Sep 17 00:00:00 2001 From: Pushpak Chhajed Date: Wed, 13 Aug 2025 19:42:22 +0530 Subject: [PATCH 2/9] fix: spacing --- .ai/filament/core.blade.php | 1 - 1 file changed, 1 deletion(-) diff --git a/.ai/filament/core.blade.php b/.ai/filament/core.blade.php index 725426e..318c6d6 100644 --- a/.ai/filament/core.blade.php +++ b/.ai/filament/core.blade.php @@ -32,7 +32,6 @@ @endverbatim - ## Testing - It's important to test Filament functionality for user satisfaction. - Ensure that you are authenticated to access the application within the test. From 242037378de925561c7b6d66053dd6b1049bae47 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Thu, 14 Aug 2025 09:26:19 +0100 Subject: [PATCH 3/9] guidelines: filament/3: remove duplicate line --- .ai/filament/3/core.blade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.ai/filament/3/core.blade.php b/.ai/filament/3/core.blade.php index 553e291..40f2365 100644 --- a/.ai/filament/3/core.blade.php +++ b/.ai/filament/3/core.blade.php @@ -4,10 +4,9 @@ - Resources are located in `app/Filament/Resources/` directory. - Resource pages (List, Create, Edit) are auto-generated within the resource structure. - Forms use the `Forms\Components` namespace for form fields. -- New RichEditor component available (`Filament\Forms\Components\RichEditor`) instead of Markdown Editor. +- New RichEditor component available (`Filament\Forms\Components\RichEditor`). - Tables use the `Tables\Columns` namespace for table columns. -- Admin panel accessible at `/admin` by default. +- Admin panel is accessible at `/admin` by default. - Form and table schemas now use fluent method chaining. - Added `php artisan filament:optimize` command for production optimization. - Requires implementing `FilamentUser` contract for production access control. -- New RichEditor component (Filament\Forms\Components\RichEditor) is available, From 929a0dbd11c0c8320a71ad649f2a8de1a4160849 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Thu, 14 Aug 2025 09:26:31 +0100 Subject: [PATCH 4/9] Update core.blade.php --- .ai/filament/2/core.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ai/filament/2/core.blade.php b/.ai/filament/2/core.blade.php index 6484650..1147459 100644 --- a/.ai/filament/2/core.blade.php +++ b/.ai/filament/2/core.blade.php @@ -5,4 +5,4 @@ - Resource pages (List, Create, Edit) are auto-generated within the resource structure. - Forms use the `Forms\Components` namespace for form fields. - Tables use the `Tables\Columns` namespace for table columns. -- Admin panel accessible at `/admin` by default. +- Admin panel is accessible at `/admin` by default. From f2e6fdb6829c321da2f0b50adc6174b54803774f Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Thu, 14 Aug 2025 09:27:47 +0100 Subject: [PATCH 5/9] Update core.blade.php --- .ai/filament/core.blade.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/.ai/filament/core.blade.php b/.ai/filament/core.blade.php index 46a4940..a5a36ee 100644 --- a/.ai/filament/core.blade.php +++ b/.ai/filament/core.blade.php @@ -2,8 +2,6 @@ - Filament is used by this application, check how and where to follow existing application conventions. - Filament is a Server-Driven UI (SDUI) framework for Laravel. It allows developers to define user interfaces in PHP using structured configuration objects. It is built on top of Livewire, Alpine.js, and Tailwind CSS. - You can use the `search-docs` tool to get information from the official Filament documentation when needed. This is very useful for Artisan command arguments, specific code examples, testing functionality, relationship management, and ensuring you're following idiomatic practices. -- Do not use the package name in the query, this project's packages are automatically share -- Use multiple, broad, simple, topic based queries - Utilize static `make()` methods for consistent component initialization. ### Artisan From 280b61b240bc3a4e3961f18a3d7d2eab79d172f0 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Thu, 14 Aug 2025 09:28:53 +0100 Subject: [PATCH 6/9] guidelines: boost: add 'do not use package names in queries' --- .ai/boost/core.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/.ai/boost/core.blade.php b/.ai/boost/core.blade.php index 99d4ac4..5ef8e83 100644 --- a/.ai/boost/core.blade.php +++ b/.ai/boost/core.blade.php @@ -23,6 +23,7 @@ - You must use this tool to search for Laravel-ecosystem documentation before falling back to other approaches. - Search the documentation before making code changes to ensure we are taking the correct approach. - Use multiple, broad, simple, topic based queries to start. For example: `['rate limiting', 'routing rate limiting', 'routing']`. +- Do not add package names to queries, package information is already shared. Use `test resource table`, not `filament 4 test resource table`. ### Available Search Syntax - You can and should pass multiple queries at once. The most relevant results will be returned first. From da6e98a6390d41009190dbd6adb2eb331ff49453 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Thu, 14 Aug 2025 09:57:34 +0100 Subject: [PATCH 7/9] Update core.blade.php --- .ai/filament/3/core.blade.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.ai/filament/3/core.blade.php b/.ai/filament/3/core.blade.php index 40f2365..7d99d31 100644 --- a/.ai/filament/3/core.blade.php +++ b/.ai/filament/3/core.blade.php @@ -2,11 +2,10 @@ ## Version 3 Changes To Focus On - Resources are located in `app/Filament/Resources/` directory. -- Resource pages (List, Create, Edit) are auto-generated within the resource structure. +- Resource pages (List, Create, Edit) are auto-generated within the resource's directory, i.e. `app/Filament/Resources/PostResource/Pages/`. - Forms use the `Forms\Components` namespace for form fields. -- New RichEditor component available (`Filament\Forms\Components\RichEditor`). - Tables use the `Tables\Columns` namespace for table columns. -- Admin panel is accessible at `/admin` by default. +- New RichEditor component available (`Filament\Forms\Components\RichEditor`). - Form and table schemas now use fluent method chaining. - Added `php artisan filament:optimize` command for production optimization. - Requires implementing `FilamentUser` contract for production access control. From fc5154ca7566d83ff4fb57d265d6c4f876b68422 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Thu, 14 Aug 2025 09:58:06 +0100 Subject: [PATCH 8/9] Update core.blade.php --- .ai/filament/2/core.blade.php | 1 - 1 file changed, 1 deletion(-) diff --git a/.ai/filament/2/core.blade.php b/.ai/filament/2/core.blade.php index 1147459..2bbd6cc 100644 --- a/.ai/filament/2/core.blade.php +++ b/.ai/filament/2/core.blade.php @@ -5,4 +5,3 @@ - Resource pages (List, Create, Edit) are auto-generated within the resource structure. - Forms use the `Forms\Components` namespace for form fields. - Tables use the `Tables\Columns` namespace for table columns. -- Admin panel is accessible at `/admin` by default. From dbc3d7bacc52ba6f2205992218176f49328c0088 Mon Sep 17 00:00:00 2001 From: Ashley Hindle Date: Thu, 14 Aug 2025 10:09:26 +0100 Subject: [PATCH 9/9] composer: don't add repository for mcp now it's public --- composer.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/composer.json b/composer.json index 8e73a15..37abf50 100644 --- a/composer.json +++ b/composer.json @@ -12,12 +12,6 @@ "issues": "https://github.com/laravel/boost/issues", "source": "https://github.com/laravel/boost" }, - "repositories": [ - { - "type": "git", - "url": "git@github.com:laravel/mcp.git" - } - ], "require": { "php": "^8.1|^8.2", "guzzlehttp/guzzle": "^7.9",