Hide Install Coder Desktop / Install CLI items in UserDropdown when already installed
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng việc xem xét UserDropdownContent và PR #28244, nơi đã giới thiệu các mục cài đặt. Điều tra các tín hiệu phía trình duyệt được đề xuất để phát hiện việc cài đặt Coder Desktop và CLI, sau đó xác định xem có tín hiệu đáng tin cậy hay không. Công việc được xem là hoàn tất khi các mục tương ứng được ẩn nếu việc phát hiện là đáng tin cậy, hoặc khi các phát hiện được ghi lại nếu không đáng tin cậy.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
Follow-up from #28244 (DEVEX-722), which added an Install Coder Desktop item to the UserDropdown, sitting above the existing Install CLI item.
During review, Christin suggested that we only surface these install options when the respective tool has not been installed yet. It was intentionally left out of scope for that PR, and we agreed to track it as a follow-up.
Proposal
Hide the Install Coder Desktop and Install CLI items in UserDropdownContent when the user already has the respective tool installed.
Considerations / open questions
- There is no reliable browser-side API to detect whether a native desktop application is installed. Some ideas to explore:
- Custom URL scheme / protocol handler probing (e.g., attempt to open a
coder://deep link and detect success/failure). - A signal sent from Coder Desktop itself (e.g., a local endpoint, a cookie, or a header) that the web app can read.
- Detecting a running local agent/session initiated by Coder Desktop.
- Custom URL scheme / protocol handler probing (e.g., attempt to open a
- For the CLI, detection is even trickier from the browser; we may need to rely on a heuristic (e.g., "has the user ever downloaded the CLI or authenticated a session via CLI on this deployment").
- UX: decide whether to hide the item entirely, collapse it into a submenu, or show it with a "installed" state.
Acceptance criteria (draft)
- Investigate feasible detection mechanisms for Coder Desktop (and, if practical, the CLI).
- If a reliable signal is available, hide the corresponding Install … item in the
UserDropdownwhen the tool is installed. - If no reliable signal is available, document the findings and close the issue.
References
- PR: https://github.com/coder/coder/pull/28244
- Review comment: https://github.com/coder/coder/pull/28244#pullrequestreview-4960748169
- Linear: DEVEX-722
Created on behalf of @jakehwll
- Ngôn ngữ chính
- Go
- Star
- 16.6k
- Fork
- 1.6k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 560
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của coder/coder
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
-
feat(site): suppress the web terminal context menu when the application has enabled mouse tracking Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
bug site
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug group: validation priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
codecheckers/chekhov#51 ·
-
Creating worktree from an existing remote branch with a slash in it, has unexpected behaviour Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100