coder / coder/backstage-plugins
[Devcontainers frontend plugin] Make the component hidden if no annotation is present
- 主要语言
- 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.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 packages/app/src/components/catalog/EntityPage.tsx 开始,检查 DevcontainersProvider EntitySwitch case,以及现有的 DEVCONTAINERS_ANNOTATION 和 isDevContainersAvailable 引用。当缺少 annotation 时组件被隐藏,并且存在正确的 annotation 时组件仍然可见,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100