popcodeorg / popcodeorg/popcode
Console open state should be preserved when project persisted
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 191
- Fork
- 143
- Merge trung bình
- 4 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 5
Mô tả
Right now, the console is always closed when a project is loaded, even if it was open last time that project was modified. This is different from other UI components, whose minimization state is retained when a project is persisted and then loaded.
This is because the collection of minimized components is represented as a set of component names. This is fine as far as it goes, but it precludes adding new minimized components that are minimized by default (e.g. the console), because the absence of the console from the array in a saved project might mean either:
- The console is not minimized in this project, or
- The project was last saved before the console feature was introduced
To work around this, when loading a project from storage, we assume the second case and always add the console to the list of minimized components.
Instead, we should store the collection of minimized components as a Map whose keys are component names, and values are either true or false. Entries should only be present in the map if the user has explicitly hidden or shown a component; if an entry is not present, the appropriate default for the editor in question can be used (this logic should probably live in the React component layer).
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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.
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi việc lưu giữ và tải dự án, sau đó kiểm tra lớp thành phần React nơi các giá trị mặc định của các thành phần được thu nhỏ được áp dụng. Xác nhận cách bộ sưu tập các thành phần được thu nhỏ đã lưu được tuần tự hóa và khôi phục. Được xem là hoàn tất khi các trạng thái ẩn hoặc hiển thị được chỉ định rõ ràng vẫn được duy trì, trong khi các mục không tồn tại sử dụng giá trị mặc định của từng trình chỉnh sửa, bao gồm cả console.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, react
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100