coder / coder/backstage-plugins

[Devcontainers frontend plugin] Make the component hidden if no annotation is present

Aperta
#145 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
67
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

If the annotation is not present, make the `DevcontainersProvider` component hidden.

This should be working in `packages/app/src/components/catalog/EntityPage.tsx`:

```









```

The `isDevContainersAvailavble` function should check if the correct annotations are in place like (pseudocode):
```
export const isDevContainersAvailable = (entity: Entity) =>
Boolean(entity.metadata.annotations?.[DEVCONTAINERS_ANNOTATION]);
```

This way the item can be hidden and the page can be cleaner.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.