coder / coder/backstage-plugins

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

Offen
#145 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
TypeScript
Sterne
67
Forks
9
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.