coder / coder/backstage-plugins

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

Open
#145 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
67
Forks
9
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.