coder / coder/backstage-plugins
[Devcontainers frontend plugin] Make the component hidden if no annotation is present
Abierto
enhancement
- Lenguaje dominante
- TypeScript
- Estrellas
- 67
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.