-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filament v3 Support (Fixes #23) #24
base: main
Are you sure you want to change the base?
Conversation
🔧 Update Heroicons to v2
Camya\Filament\Forms\Components\TitleWithSlugInput::Camya\Filament\Forms\Components\{closure}(): Argument #2 ($set) must be of type Closure, Filament\Forms\Set given Working on figuring out some changes with |
Hmm this is very close to working. The exception above is fixed but when editing the slug it's not showing up once you press "OK" despite it properly storing it in the The slug is properly getting generated when creating an initial title, too. |
@Log1x I've pushed a couple of commits you can review. Adding |
fix: Fix manually changes slug enhance: Use filament link component for external link
nice!! i appreciate it |
Awesome, nice work @Log1x and @howdu. Thank you for the pull request. I just tested it a little bit. I found this problem: Video: Screen.Recording.2023-08-10.at.21.39.02.mov |
I don't think it's actually saving, I think it's just swapping a network request to update the state due to It'd probably be a safe bet to change this to Edit: I'm not seemingly able to reproduce the missed characters. |
Updated the test stuff a bit but 3 of them are still failing due to https://github.com/livewire/livewire/blob/main/src/Features/SupportModels/ModelSynth.php#L20-L22 As far as I can tell the only fix for this on Livewire 3 is to do a database migration for the tests so we can create the Record using a RecordFactory. |
Ok I reproduced the character skipping when on a resource Create page. |
Hmm, I'm not sure. I never used the plugin in v2 so I don't know how it behaved, but commenting out the It's possible this is a weird quirk with Livewire 3 since it tries to bundle network requests. If we have 1 form getting live updated while also |
I can't reproduce the flickering but I think the hidden input can be removed now it's manually being set from |
can't wait for this PR to merge 🚀 |
Same here |
I changed the input reactivity to use blur due to Livewire's network requests not being able to keep up with typing when on a "Create" page where it will auto-generate the slug for you. I think having it as blur still feels good and I'm having no issues on my end. Again, this issue only came into play on a Create page where the slug would get auto-generated based on the title you enter. Having it spam network requests to I also removed the hidden input that @howdu mentioned and everything seems good in my app. I think it's possible for the @camya do you want me to do a test database migration and fix the final 3 tests? |
Any update on this. ? We appreciate you guys working on this. |
A few suggestions:
|
If you want to do a quick PR against https://github.com/Log1x/filament-title-with-slug/tree/feat/filament-v3 I will merge it in – otherwise I don't mind doing these changes. I also don't mind forking and maintaining this if @camya doesn't want to anymore. For now, I'm using it in my projects by adding the repository to my {
"require": {
"camya/filament-title-with-slug": "dev-feat/filament-v3"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/log1x/filament-title-with-slug"
}
]
} |
🩹 Fix visit link style in read only mode 🩹 Fix page reload when canceling or resetting the slug 💄 More consistent styling for the edit link\ 💄 Add some space between links ✨ Support dot notation for attribute name
@Log1x I think it is pretty self evident that the op has lost interest in maintaining this package by now. I'd be very happy to see you fork and maintain this project! |
Change log
readOnly
to comply with Filament v3ServiceProvider
to support Filament v3slug-input
field wrapper