분할 ZIP의 미지원 안내 누락을 수정한다
- 작성자
- 호시노 히나타
- 작성 시각
- 커밋
859f064c7896342bee4aa309fa21aa18c8ed1c54- 부모
- 8ac2ccf
변경된 파일 4개
+66-14| @@ -177,7 +177,7 @@ Ubuntu 제거 안내는 패키지 관리자 터미널 출력입니다. 이전 | ||
| 177 | 177 | - split-first-volume: .7z.002 등 선택 시 필요한 .001의 정확한 이름 안내. 자동으로 다른 파일을 열지 않음. |
| 178 | 178 | - split-missing-volume: 확정된 중간 누락의 파일명과 같은 폴더에 모든 조각을 모은 뒤 .001을 다시 여는 방법 안내. |
| 179 | 179 | - split-incomplete: 불완전하거나 손상된 묶음 안내. 마지막 누락 파일명을 추측하지 않음. |
| 180 | 삭제: - split-unsupported: 분할 ZIP, RAR과 분할 압축 만들기 미지원 안내. | |
| 180 | 추가: - split-unsupported: 실제 분할 ZIP의 UnsupportedFeature 오류로 분할 ZIP, RAR과 분할 압축 만들기 미지원 안내를 표시한다. UnsupportedFormat도 같은 안내를 사용한다. | |
| 181 | 181 | - split-source-changed: 목록 이후 조각 변경 시 다시 열기 안내. |
| 182 | 182 | |
| 183 | 183 | 운영체제 기본 열기 창에서 같은 폴더의 첫 조각 `.7z.001`을 선택한다. 분할 묶음은 최대 999개이며 목록 열람 성공은 전체 데이터 무결성 검증 완료를 뜻하지 않는다. 실제 분할 파일 처리는 작업자 구현 후 독립 도구 표본으로 확인한다. Windows와 Wayland에서 첫 조각 선택, 누락 이름, .001 재시도 안내와 닫기를 확인하며, 위 디자인 상황은 실제 파일 검증을 대신하지 않는다. |
| @@ -1788,12 +1788,14 @@ impl ArchiveApp { | ||
| 1788 | 1788 | && (self.model.volume_problem.is_some() |
| 1789 | 1789 | || self.model.terminal.as_ref().is_some_and(|terminal| { |
| 1790 | 1790 | terminal.error == Some(ErrorCode::Limit) |
| 1791 | 삭제: || (terminal.error == Some(ErrorCode::UnsupportedFormat) | |
| 1792 | 삭제: && self | |
| 1793 | 삭제: .model | |
| 1794 | 삭제: .archive | |
| 1795 | 삭제: .as_ref() | |
| 1796 | 삭제: .is_some_and(|p| present::excluded_split(p))) | |
| 1791 | 추가: || (matches!( | |
| 1792 | 추가: terminal.error, | |
| 1793 | 추가: Some(ErrorCode::UnsupportedFormat | ErrorCode::UnsupportedFeature) | |
| 1794 | 추가: ) && self | |
| 1795 | 추가: .model | |
| 1796 | 추가: .archive | |
| 1797 | 추가: .as_ref() | |
| 1798 | 추가: .is_some_and(|p| present::excluded_split(p))) | |
| 1797 | 1799 | })) |
| 1798 | 1800 | } |
| 1799 | 1801 | |
| @@ -2144,12 +2146,14 @@ impl ArchiveApp { | ||
| 2144 | 2146 | ui.add(egui::Label::new(present::volume_problem_text(problem)).wrap()); |
| 2145 | 2147 | } else if let Some(code) = t.as_ref().and_then(|t| t.error) { |
| 2146 | 2148 | ui.label( |
| 2147 | 삭제: if code == ErrorCode::UnsupportedFormat | |
| 2148 | 삭제: && self | |
| 2149 | 삭제: .model | |
| 2150 | 삭제: .archive | |
| 2151 | 삭제: .as_ref() | |
| 2152 | 삭제: .is_some_and(|p| present::excluded_split(p)) | |
| 2149 | 추가: if matches!( | |
| 2150 | 추가: code, | |
| 2151 | 추가: ErrorCode::UnsupportedFormat | ErrorCode::UnsupportedFeature | |
| 2152 | 추가: ) && self | |
| 2153 | 추가: .model | |
| 2154 | 추가: .archive | |
| 2155 | 추가: .as_ref() | |
| 2156 | 추가: .is_some_and(|p| present::excluded_split(p)) | |
| 2153 | 2157 | { |
| 2154 | 2158 | present::SPLIT_SUPPORT.to_owned() |
| 2155 | 2159 | } else if creating && code == ErrorCode::SourceChanged { |
| @@ -603,3 +603,51 @@ fn split_errors_use_main_modal_without_native_child() { | ||
| 603 | 603 | assert!(labels.contains("작업 결과"), "{name}: {labels}"); |
| 604 | 604 | } |
| 605 | 605 | } |
| 606 | 추가: | |
| 607 | 추가: #[test] | |
| 608 | 추가: fn excluded_split_errors_show_support_guidance_in_main_modal() { | |
| 609 | 추가: use zipelo_ui_memory_app::archive_ui::ErrorCode; | |
| 610 | 추가: | |
| 611 | 추가: for code in [ErrorCode::UnsupportedFeature, ErrorCode::UnsupportedFormat] { | |
| 612 | 추가: for archive in ["sample.zip.001", "sample.z01", "sample.rar", "sample.7z"] { | |
| 613 | 추가: let scenario = scenarios::parse("split-unsupported").unwrap(); | |
| 614 | 추가: let mut app = scenario.build(); | |
| 615 | 추가: let ctx = egui::Context::default(); | |
| 616 | 추가: ctx.set_embed_viewports(false); | |
| 617 | 추가: let input = || egui::RawInput { | |
| 618 | 추가: screen_rect: Some(egui::Rect::from_min_size( | |
| 619 | 추가: egui::Pos2::ZERO, | |
| 620 | 추가: egui::vec2(1060.0, 720.0), | |
| 621 | 추가: )), | |
| 622 | 추가: ..Default::default() | |
| 623 | 추가: }; | |
| 624 | 추가: for _ in 0..3 { | |
| 625 | 추가: let mut output = ctx.run_ui(input(), |ui| scenario.show(&mut app, ui)); | |
| 626 | 추가: output.textures_delta.clear(); | |
| 627 | 추가: } | |
| 628 | 추가: assert_eq!( | |
| 629 | 추가: app.model.terminal.as_ref().unwrap().error, | |
| 630 | 추가: Some(ErrorCode::UnsupportedFeature) | |
| 631 | 추가: ); | |
| 632 | 추가: app.model.terminal.as_mut().unwrap().error = Some(code); | |
| 633 | 추가: app.model.archive = Some(archive.into()); | |
| 634 | 추가: let mut output = ctx.run_ui(input(), |ui| scenario.show(&mut app, ui)); | |
| 635 | 추가: let labels = text(&output.shapes); | |
| 636 | 추가: output.textures_delta.clear(); | |
| 637 | 추가: if archive == "sample.7z" { | |
| 638 | 추가: assert!(!labels.contains("분할 ZIP과 RAR")); | |
| 639 | 추가: } else { | |
| 640 | 추가: assert!( | |
| 641 | 추가: labels.contains("분할 ZIP과 RAR"), | |
| 642 | 추가: "{code:?} {archive}: {labels}" | |
| 643 | 추가: ); | |
| 644 | 추가: assert!( | |
| 645 | 추가: output | |
| 646 | 추가: .viewport_output | |
| 647 | 추가: .keys() | |
| 648 | 추가: .all(|id| *id == egui::ViewportId::ROOT) | |
| 649 | 추가: ); | |
| 650 | 추가: } | |
| 651 | 추가: } | |
| 652 | 추가: } | |
| 653 | 추가: } |
| @@ -302,7 +302,7 @@ impl Scenario { | ||
| 302 | 302 | Some(VolumeProblemReason::MissingVolume) => ErrorCode::MissingVolume, |
| 303 | 303 | Some(VolumeProblemReason::IncompleteSet) => ErrorCode::Integrity, |
| 304 | 304 | None if self.name == "split-source-changed" => ErrorCode::SourceChanged, |
| 305 | 삭제: None => ErrorCode::UnsupportedFormat, | |
| 305 | 추가: None => ErrorCode::UnsupportedFeature, | |
| 306 | 306 | }; |
| 307 | 307 | if let Some(reason) = reason { |
| 308 | 308 | state.frame(Event::VolumeProblem(VolumeProblem { |