coder / coder/backstage-plugins

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

オープン
#145 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
TypeScript
スター
67
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
frontend
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。