Hidden tabs: decide whether opening one from its URL redirects, consistently

Đang mở
#2,062 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

Read src/features/instance/applications/routes.ts and ApplicationsIndex.tsx alongside src/features/instance/extensions/DESIGN.md and useInstanceNavLinks.tsx to trace the current hidden tab behavior. Compare direct navigation to / and /apps with other hidden tab URLs, then apply the chosen redirect rule consistently. Done means the instance and cluster routes follow one documented rule.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Focused navigation (studio#2031) lets a cluster mark a built-in tab hidden. Hiding is focus, not security: a hidden tab disappears from the nav and from /start's choices, but its URL still opens it.

One built-in tab behaves differently. On a local or instance Studio, the root index (/) redirects away from Applications when Applications is hidden, because / is the default entry URL there. A cluster's /apps has no such redirect, so a typed URL, a bookmark or history opens the editor even when the cluster hides Applications. Every other hidden tab (/operations, /apis, …) also opens from its URL, so the inconsistency is only between the instance index and cluster /apps. Nothing in Studio links to a hidden /apps: the nav drops the tab and /start never lands on it.

Decide one rule and apply it everywhere. Either a hidden tab redirects to /start whenever it is opened directly, or none do and the instance index redirect is the only exception, documented as the entry-URL case. The code is in src/features/instance/applications/routes.ts and ApplicationsIndex.tsx; the visibility rules are in src/features/instance/extensions/DESIGN.md and useInstanceNavLinks.tsx.

Review-Deferral: 8af3368bcf37c858 severity=nit category=correctness

Ngôn ngữ chính
TypeScript
Star
5
Fork
4
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
65

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của HarperFast/studio

Tất cả issue của HarperFast/studio

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.