code.quarkus.io icon indicating copy to clipboard operation
code.quarkus.io copied to clipboard

Display extensions as read only when incompatible with the selection

Open ia3andy opened this issue 4 years ago • 3 comments

Description

  • Add the relevant data to /api/extensions
  • Display extensions as read only when incompatible with the selection
  • Add a tooltip in the incompatible extensions explaining why they have been disabled and which extension is responsible.

ia3andy avatar Oct 05 '21 14:10 ia3andy

What does "read only" mean ? Greyed out/disabled or ?

maxandersen avatar Oct 06 '21 03:10 maxandersen

Both (Greyed out & Disabled)

ia3andy avatar Oct 06 '21 06:10 ia3andy

While looking into #1266, I found that some extensions have a minimum required java version, e.g. the Camel ones. Accessing https://code.quarkus.io/d?j=11&e=org.apache.camel.quarkus%3Acamel-quarkus-core&cn=code.quarkus.io yields:

Quarkus Command error > Some extensions are not compatible with the selected Java version (11):

  • org.apache.camel.quarkus:camel-quarkus-core (min: 17)

However this restriction is not available when querying https://code.quarkus.io/api/extensions/stream/io.quarkus.platform:3.6?platformOnly=false

It'd be useful to have the min required Java version in that json payload, so that IDEs can also filter out incompatible extensions.

fbricon avatar Jan 17 '24 12:01 fbricon