coder / coder/backstage-plugins
[Devcontainers frontend plugin] Make the component hidden if no annotation is present
- Ngôn ngữ chính
- TypeScript
- Star
- 67
- Fork
- 9
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu tại packages/app/src/components/catalog/EntityPage.tsx và kiểm tra case DevcontainersProvider EntitySwitch, cùng với các tham chiếu hiện có đến DEVCONTAINERS_ANNOTATION và isDevContainersAvailable. Công việc được hoàn tất khi component bị ẩn nếu annotation không tồn tại và vẫn hiển thị khi annotation chính xác tồn tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 45/100