coder / coder/backstage-plugins

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

Abierto
#145 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.