ctessier / nova-advanced-image-field

🌄 📐 A Laravel Nova advanced image field with cropping and resizing using Vue Advanced Cropper and Intervention Image
https://novapackages.com/packages/ctessier/nova-advanced-image-field
MIT License
101 stars 26 forks source link

upgrade to nova-4 #80

Closed Grafikart closed 2 years ago

Grafikart commented 2 years ago

I did most of the work to upgrade to Nova 4 but you may need to add some style cause the classnames changed

Here is the render for my Nova 4.1 dashboard

image

laravel-nova is removed and it uses the dependency from composer : https://nova.laravel.com/docs/4.0/upgrade.html#removal-of-laravel-nova-npm-dependency

Fix #79

ctessier commented 2 years ago

Hi @Grafikart

Thank you for your work!

I guess these changes will make the package incompatible with Nova prior to version 4? If so, I guess we will have to merge that to a new branch for a 2.x.

Also, I couldn't find any upgrade guide for package maintainers. Did you find any?

Clément

Grafikart commented 2 years ago

Hi,

You guessed right, this break compatibility with previous version of nova so it need to be a major number upgrade. For the upgrade I followed the guide offered on nova but there is nothing related to package except this part.

Custom Nova packages that are developed outside of a nova-components directory should declare laravel/nova as a "dev" Composer dependency, and then define a laravel-nova Mix alias that points to the packages.js file within your custom package's vendor directory

But there is no information on component we can reuse for custom field :(

mziraki commented 2 years ago

@ctessier hi, any update about this PR?

SupchickCode commented 2 years ago

i think many people wait for it. Thanks u a lot =)

ctessier commented 2 years ago

Hi everyone 👋

First, I wanted to thank you all very much for the interest you are showing for this package 🙏

Unfortunately, as one needs to get a new license to upgrade to Nova's latest version (v4 Silver Surfer), I cannot help complete this PR and work on the compatibility with Nova 4 before I get a new license.

To help me purchase one, I created a GitHub sponsor page to allow people wanting to support my work to make a donation.

So if the Advanced Image Field helps your business, or if you simply wish to contribute, I will appreciate any donations.

Thank you very much for your support! I'm looking forward to keep maintaining this package 💪

Clément

hspromo commented 2 years ago

Mate, can you please just accept the pull request? Can even make it a separate tag or branch. Need to add this to my composer. Its been a month. Getting frustrating you won't accept this guys work just because you don't have a license anymore.

hspromo commented 2 years ago

And I emailed nova on your behalf. They should not charge developers like you who built plugins for Nova. Ridiculous.

ctessier commented 2 years ago

Mate, can you please just accept the pull request? Can even make it a separate tag or branch. Need to add this to my composer. Its been a month. Getting frustrating you won't accept this guys work just because you don't have a license anymore.

Thank you for your message @hspromo. I understand your frustration, however, I decided not to merge this PR yet for the very simple reason that I have no way to test it out and contribute to the branch.

Since people start to get impatient, I am willing to merge it now to the branch 2.x so you guys can update your composer with the dev branch if you want to, while we are still working on the support for Nova 4.

However, this would mean using an unstable version and you have to understand that I won't be able guarantee the well working of the package on this branch. So any reported issue would be voided and you would need to contribute if you find anything that needs fixing.

Regards

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information