tighten / novapackages

https://novapackages.com
335 stars 61 forks source link

How to highlight package for Nova 4 #323

Open scramatte opened 1 year ago

scramatte commented 1 year ago

Hello,

How can I highlight my packages for Nova 4?

regards

RhysLees commented 1 year ago

Hi, I contributed that feature!

You simply need to require a nova 4 version in your package for example in composer.json

{
  "name": "ideatocode/nova-tooltip-field",
  "description": "A Laravel Nova field to show additional data but not clutter the table.",
  "keywords": [
    "laravel",
    "nova"
  ],
  "license": "MIT",
  "require": {
    "php": "^7.3|^8.0",
+    "laravel/nova": "^4.0"
  },
}
johnpaulmedina commented 1 year ago

So I had a nova 4 requirement on require-dev as the Nova documentation indicates. Once I submitted the package it did not tag it as Nova4 support and after seeing this issue I bumped the patch version and switched the requirements but it still has not tagged it as Nova4.

I would recommend looking at the dev-requirements as well.

As well as on package version change trigger the support tag check once again.

kaiserkiwi commented 11 months ago

Hm… This doesn't to be the case. I have the following in my composer.json

"require": {
    "php": "^8.0",
    "laravel/nova": "^4.0"
},

But it doesn't get the badge. https://novapackages.com/packages/kaiserkiwi/nova-queue-management

Is there anything I could do?

wdelfuego commented 10 months ago

Same here, just submitted (and then re-submitted to be sure) my new package, it has the laravel/nova requirement in composer.json, but no Nova 4 support tag is shown on the site.

Link to the relevant composer.json: https://github.com/wdelfuego/nova-wizard/blob/main/composer.json

kaiserkiwi commented 10 months ago

I have to update here. I did nothing but now the badge is there. It probably needs some time to process this? It's odd, but my package is listed as Nova 4 package now.

RhysLees commented 10 months ago

I have to update here. I did nothing but now the badge is there. It probably needs some time to process this? It's odd, but my package is listed as Nova 4 package now.

It will take until the next time the package is fetched from packagist i believe

wdelfuego commented 10 months ago

Yep, happened to me too, the Nova 4 support tag was added overnight 👍