Filament Docs; original code.
There's a process for automatically generating the doc-assets for use in the astro docs.
It involves creating the actual Filament form used, rendering it, then Playwrite is used to take the actual screenshot that's used in the AutoScreenshot component.
I'm looking for where the original Filament code is stored.
Solution:Jump to solution
So for example this here: https://github.com/filamentphp/filament/blob/3.x/docs-assets/app/app/Livewire/TablesDemo.php#L1227
18 Replies
GitHub
filament/docs-assets/app at 3.x Ā· filamentphp/filament
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
Oh sorry. We were talking about screenshots before and Is sort of missed the code part š
I think its done here: https://github.com/filamentphp/filament/blob/3.x/docs-assets/app/app/Livewire/TablesDemo.php
GitHub
filament/docs-assets/app/app/Livewire/TablesDemo.php at 3.x Ā· filam...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
At least the table part
Solution
So for example this here: https://github.com/filamentphp/filament/blob/3.x/docs-assets/app/app/Livewire/TablesDemo.php#L1227
Ahahah yeah
legend
thanks both
so summaries() is converted to
tables/summaries
all of this, was trying to work out how to do this haha

LOL! Which is the second entry on TextColumn doc :Picardfacepalm: ....
It's called a "BADGE"
š
Btw. you know the demo? https://demo.filamentphp.com/
The code is here: https://github.com/filamentphp/demo
For some reason I was looking for a Badge column, and then I assumed it was an Icon. I'm blaming Monday :modCheck:
let's just say.... I was aware?
that's beautiful. No-one share that with my PM
haha
:allTheThings:
@Dennis Koch COuld you help with smth please? Im working on some final things on this PR. Whats left is generating the screenshots. What Ive done so far:
1) Cloned the branch locally, run
npm run build
and composer install
2) Under app/ I also ran npm run build
and composer install
and php artisan filament:assets
3) Under docs-assets/app/app/Livewire/Forms/FieldsDemo.php
I added my Slider class. For example:
4) Under docs-assets/screenshots/schema.js
I also added the path:
5) When I run the laravel server, I see all groups under in http://localhost:8000/forms/fields, but the Slider field is empty! The slider works fine locally
Am I missing a step?I have no idea. Sorry.
It's oke thank you anyways. I will ratrace my commits, and see if I broke something
Maybe something changed internally within filament