Switching day tabs silently discards unsaved schedule edits (TODO in SchedulePage)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 58/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Read ui/src/pages/SchedulePage/SchedulePage.tsx around line 55, then trace selectDay through scheduleStore.tsx lines 67–88 and the tab handlers in DayTabs.tsx line 16. Check how changesPresent is set and cleared, then reproduce switching days or sides with unsaved power time, temperature, or alarm edits. Done means those edits are not silently discarded and the user gets a confirm prompt before they are lost.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
ui/src/pages/SchedulePage/SchedulePage.tsx:55 notes // TODO: Add changes lost notification using changesPresent when user tries to switch tab before saving. selectDay -> reloadScheduleData (scheduleStore.tsx:67-88) resets selectedSchedule from originalSchedules and sets changesPresent:false with no warning, so unsaved edits to power time/temperature/alarm are lost when the user taps another day tab (DayTabs.tsx:16) or switches side. The store already tracks changesPresent; wiring a confirm prompt would prevent silent data loss. Related: #6 (Scheduling).
Filed from a repo-wide code audit (working tree at bcad746).
- Ngôn ngữ chính
- Rust
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 GoogleBot42/podd
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
GoogleBot42/podd#63 ·
-
documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
GoogleBot42/podd#62 ·
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
GoogleBot42/podd#60 ·
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
GoogleBot42/podd#61 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
GoogleBot42/podd#58 ·
Tất cả issue của GoogleBot42/podd
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
rubys/roundhouse#1917 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
good first issue
Độ 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
-
[cosmic-applet-battery] Division by zero displays NaN% when UPower reports max_brightness = 0Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
pop-os/cosmic-applets#1619 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
binding:python bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày