[Executive Summary] - Overview Tab section
Maintainer thường phản hồi trong vòng 2 ngà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
- 68/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ệ
- typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start by locating the executive summary page and reading the useEditExecutiveSummary hook to understand how its fields are edited. Build a component that takes an executiveSummary object and displays its goals, wins, and improvements. Done means the overview section appears on the page and each field can be edited using a pencil icon.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Add an Overview section to the executive summary page showing the season's Goals and Wins & Improvements (stored as one winsAndImprovements string). Each field has a pencil icon next to its label. Clicking it turns the text into an editable text box in place, with Save and Cancel buttons. See the mockup in the original issue.
Acceptance Criteria
- New component takes an executiveSummary: ExecutiveSummary prop and displays goals and winsAndImprovements under their own labels.
- Clicking a field's pencil swaps its text for a multiline TextField prefilled with the current value, with Save and Cancel buttons.
- Only one field can be edited at a time (track an editingField state in the parent).
- Save calls useEditExecutiveSummary. The payload must include all fields of EditExecSummaryPayload (season dates, goals, winsAndImprovements,
budgetNotes, recruitmentNotes) with only the edited one changed, so other fields aren't blanked. - The save button shows a loading state. On error, show the app's existing error or toast pattern and stay in edit mode. On success, return to
display mode. - Cancel discards the draft and restores the current value. Escape also cancels. Enter adds a newline and doesn't save.
- Empty values show a placeholder such as "No goals set yet".
Proposed Solution
- Build a small reusable EditableTextField component (label, value, onSave, isEditing, onEditStart, onCancel) and render it twice in the Overview component.
- Reset the draft to the current value each time edit mode starts, so it never goes stale after a refetch.
- Use useEditExecutiveSummary from hooks/exec-summaries.hooks.ts. It already invalidates the executive-summaries query, so no manual refetch is needed.
- See shared/src/types/exec-summary-shared-types.ts for the ExecutiveSummary shape.
- Build it standalone with the summary passed as a prop.
Mocks
Not in editing mode:
What it should look like while editing:
note: the +/- values should be stored in the string
- Ngôn ngữ chính
- TypeScript
- Star
- 39
- Fork
- 10
- Merge trung bình
- 3 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 41
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có 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 Northeastern-Electric-Racing/FinishLine
-
maintenance
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Northeastern-Electric-Racing/FinishLine#4614 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Naman Patel - CreditsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Northeastern-Electric-Racing/FinishLine#4595 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Northeastern-Electric-Racing/FinishLine#4590 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Northeastern-Electric-Racing/FinishLine#4588 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Northeastern-Electric-Racing/FinishLine#4586 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của Northeastern-Electric-Racing/FinishLine
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
farion1231/cc-switch#8829 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverĐang mởdoc-audit enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100