Compose a Model pane header with independent representation selection

Đã đóng
#42 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

Một pull request liên quan đã được merge.

  • #46 của @rororowyourboat — đã merge

Đá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
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
design, frontend

Hướng nghiên cứu

Start by reading the implementation and acceptance checks for prerequisite issue #41, then inspect Diagram.tsx and the existing dataMode and selection flows. Map where named-view, exploration, metadata, and authoring controls currently live before deciding how ModelPaneHeader should own them. Done means the listed preservation, interaction, renderer, visual, and documentation checks pass without changing the workspace orchestration or engine contracts.

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

Mô tả

Design stage 2 of 4

Follow the agreed 2026-11-16 workbench product-design brief. Representation controls what Model displays; arrangement controls which Source/Model slots are visible.

Scope

  • Introduce ModelPaneHeader with a visibly labeled representation selector: Diagram, Requirements table, Traceability matrix.
  • Reuse existing dataMode; changing representation changes it only and preserves the outer arrangement.
  • Compose/relocate Diagram.tsx's existing named-view selector, exploration scope/representation controls, view metadata and supported New part/Connect ports actions. Leave one authoritative set of controls.
  • Show diagram-target controls only for Diagram. Project-level tables/matrices must not imply filtering by the active named view.
  • Keep table/matrix search/filter/sort/export in their owning content components.
  • Distinguish applied revision, unapplied drafts, current evaluation, temporary exploration and unavailable rendering. A pending draft must not imply the displayed model already reflects it.
  • Keep zoom, Fit, 100% reading, and lock actions on the diagram canvas only.

Acceptance

  • Representation changes preserve arrangement, active file/view, drafts, selection and project data.
  • Selecting a named view explicitly chooses Diagram representation without silently changing the active source file.
  • No duplicate named-view selector, exploration controls or authoring actions remain.
  • Requirement/table selection opens Inspector; source reveal remains a separate action with current-model and unchanged-draft guards from #38.
  • Evaluation/exploration actions, renderer mounting and busy/failure behavior retain their existing contracts.
  • Pointer/keyboard, requirements/exploration and preservation regressions plus reviewed desktop/narrow light/dark visuals pass.
  • Architecture/capability documentation reflects the implemented header ownership.

Related requirement: #34. Do not redesign workspace orchestration, engine contracts, persistence or introduce a plugin-like representation framework.

Implementation order

Depends on #41. Keep this stage reviewable independently and preserve the preceding stages' acceptance checks.

Ngôn ngữ chính
TypeScript
Star
2
Fork
0
Merge trung bình
13 giờ 40 phút
Pull request đã merge (30 ngày)
17

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 Open-MBEE/sysml_view_editor

Tất cả issue của Open-MBEE/sysml_view_editor

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.