coder / coder/backstage-plugins
[Devcontainers frontend plugin] Make the component hidden if no annotation is present
- Langage dominant
- TypeScript
- Étoiles
- 67
- Forks
- 9
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Start in packages/app/src/components/catalog/EntityPage.tsx and inspect the DevcontainersProvider EntitySwitch case, along with the existing DEVCONTAINERS_ANNOTATION and isDevContainersAvailable references. Done means the component is hidden when the annotation is absent and remains visible when the correct annotation is present.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- typescript
- Domaine
- frontend
- Type d'issue
- Fonctionnalité
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 45/100