team-ljyzipelo

공개

Merge pull request #91 from Team-LJY/fix/ui-empty-list-notice

빈 폴더와 검색 결과 없음 안내를 목록 안에 표시
작성자
LeeJunyoung
작성 시각
커밋
784e0a91e84c9dff9a9855f75c21b7cbffc101ec
이 시점의 파일 보기

변경된 파일 3개

+98-31
수정experiments/rust-ui-memory-app/src/archive_screen.rs+10-9
@@ -731,6 +731,16 @@ impl ArchiveApp {
731731 theme::column_label(ui, "암호", 64.0, Align::Min);
732732 });
733733 ui.separator();
734추가: if rows.is_empty() {
735추가: ui.centered_and_justified(|ui| {
736추가: ui.label(if self.search.is_empty() {
737추가: "이 폴더는 비어 있습니다"
738추가: } else {
739추가: "일치하는 항목이 없습니다"
740추가: });
741추가: });
742추가: return;
743추가: }
734744 egui::ScrollArea::vertical()
735745 .id_salt("archive-rows")
736746 .auto_shrink([false, false])
@@ -835,15 +845,6 @@ impl ArchiveApp {
835845 );
836846 }
837847 });
838삭제: if rows.is_empty() {
839삭제: ui.centered_and_justified(|ui| {
840삭제: ui.label(if self.search.is_empty() {
841삭제: "이 폴더는 비어 있습니다"
842삭제: } else {
843삭제: "일치하는 항목이 없습니다"
844삭제: });
845삭제: });
846삭제: }
847848 }
848849
849850 fn result_visible(&self) -> bool {
수정tests/rust-app-ui/toolbar.rs+50-0
@@ -415,3 +415,53 @@ fn dialog_failures_show_alerts_while_cancelled_dialogs_remain_silent() {
415415 }
416416 }
417417}
418추가:
419추가: #[test]
420추가: fn empty_list_notices_remain_visible_in_the_archive_content_area() {
421추가: for case in ["archive", "folder", "search"] {
422추가: let scratch = Folder::new();
423추가: let factory = FakeFactory::default();
424추가: let mut app = loaded(&scratch, &factory);
425추가: if case == "archive" {
426추가: app.model.entries.clear();
427추가: }
428추가: if case == "folder" {
429추가: app.model.entries[0].name = "empty".into();
430추가: app.model.entries[0].kind = Kind::Directory;
431추가: app.browse_folder("empty");
432추가: }
433추가: let ctx = egui::Context::default();
434추가: narrow_frame(&ctx, &mut app, 0.0, vec![]);
435추가: if case == "search" {
436추가: ctx.memory_mut(|memory| memory.request_focus(egui::Id::unique("archive-search")));
437추가: narrow_frame(
438추가: &ctx,
439추가: &mut app,
440추가: 0.1,
441추가: vec![egui::Event::Text("no-match".into())],
442추가: );
443추가: }
444추가: for frame in 2..8 {
445추가: narrow_frame(&ctx, &mut app, frame as f64 / 10.0, vec![]);
446추가: }
447추가: let output = narrow_frame(&ctx, &mut app, 1.0, vec![]);
448추가: let expected = if case == "search" {
449추가: "일치하는 항목이 없습니다"
450추가: } else {
451추가: "이 폴더는 비어 있습니다"
452추가: };
453추가: let shown = layout_text(&output);
454추가: let notice = shown
455추가: .iter()
456추가: .find(|(text, _, _)| text == expected)
457추가: .unwrap_or_else(|| panic!("{case}: 안내 없음"));
458추가: assert!(
459추가: notice.1.top() > 200.0 && notice.1.bottom() < 490.0,
460추가: "{case}: {:?}",
461추가: notice.1
462추가: );
463추가: assert_narrow_text(&output);
464추가: assert!(shown.iter().any(|(text, _, _)| text == "0개 항목"));
465추가: assert_eq!(factory.state.borrow().starts.len(), 1);
466추가: }
467추가: }
수정tests/ui-redesign/validation.json+38-22
@@ -1,17 +1,17 @@
11{
2삭제: "recorded_at_utc": "2026-11-12T06:50:59.515143+00:00",
3삭제: "tested_local_commit": "2228c846a91d10f82051fac5cf80d25fb4ea132f",
4삭제: "tested_source_tree": "140cd3b560846d6ef267b9c22e9af399ca3558c0",
5삭제: "equivalent_remote_source_commit": "8ce724306fa9cadc13967f6db37be304325cb81b",
2추가: "recorded_at_utc": "2026-11-12T07:24:03.358981+00:00",
3추가: "tested_local_commit": "b6c645b7509217c0aa44480611e5fc9cf2b22bad",
4추가: "tested_source_tree": "5f4e0879caeab4d3a92ebb7ba6520e88303a9968",
5추가: "equivalent_remote_source_commit": "949a1fa5685e70f4ab98aada9b99e5ca5b9cfb10",
66 "command": "python3 tests/ci/run_rust.py local",
77 "exit_code": 0,
8삭제: "rust_tests_passed": 1015,
8추가: "rust_tests_passed": 1016,
99 "runner_tests_passed": 34,
10삭제: "ui_suite_tests_passed": 68,
10추가: "ui_suite_tests_passed": 69,
1111 "actual_worker_ui_tests_passed": 26,
12삭제: "local_log_sha256": "3514f176373ec2ffacaeb033d7877bc8da5623ec768f090a3c4e1abc91c50ee6",
12추가: "local_log_sha256": "7cf00b3f314939a14be5d6849183c5f78260bd5fe8da7f8ccbe4511fd0f065d0",
1313 "local_results": {
14삭제: "head": "2228c846a91d10f82051fac5cf80d25fb4ea132f",
14추가: "head": "b6c645b7509217c0aa44480611e5fc9cf2b22bad",
1515 "platform": "linux",
1616 "windows_cross_target": "x86_64-pc-windows-gnu",
1717 "windows_runtime_tested": false,
@@ -527,6 +527,21 @@
527527 "Native title command is shortened to fit and retains the Zipelo suffix; full archive title is available in the Open action tooltip"
528528 ],
529529 "scope": "Actual egui layout geometry and tooltip rendering; synthetic listing plus generated local source file and destination directory. Native Windows title-bar rendering is not tested."
530추가: },
531추가: "empty_list_notice": {
532추가: "test": "empty_list_notices_remain_visible_in_the_archive_content_area",
533추가: "viewport": [
534추가: 760,
535추가: 540
536추가: ],
537추가: "cases": [
538추가: "empty archive",
539추가: "empty folder",
540추가: "no matching search results"
541추가: ],
542추가: "baseline": "Fails: the notice is outside the visible list content area after the expanding ScrollArea.",
543추가: "baseline_log_sha256": "53c59d86aceb87ae7db157629779e5c830ef1a1291131d748c2ee83291159db8",
544추가: "fixed": "Passed: notice stays between list header and status bar, count is zero and no extra worker request starts."
530545 }
531546 },
532547 "licenses": {
@@ -594,8 +609,7 @@
594609 ],
595610 "portal_failure_screenshot_scope": "Actual eframe and NativeDialogs Linux backend with an unreachable private D-Bus address and synthetic archive listing. Success-path portal interaction is not covered.",
596611 "validation_notes": [
597삭제: "Two ad hoc cargo test attempts using default parallelism intermittently failed to start copied worker probes in existing tests. The required local runner uses --test-threads=1 and all 26 real-worker tests passed. No worker or probe implementation was changed.",
598삭제: "This layout task first failed the large worker test with DiskFull. Own obsolete capture binaries and generated ZIP corpus payloads were removed, retaining logs and results.tsv. The unchanged source then passed the complete local command. Shared build caches were not removed."
612추가: "The empty-list regression failed before the correction and passed afterwards for three states. The complete local command passed on the corrected source. Build caches were removed after verification; source, Git data, test logs and toolchains remain."
599613 ],
600614 "long_layout_screenshots_source_local_commit": "2228c846a91d10f82051fac5cf80d25fb4ea132f",
601615 "long_layout_screenshots": [
@@ -628,17 +642,19 @@
628642 "sha256": "f88f934379dff0c90961a8f3adf9d46bfe1e6afdd0583b102fdb533d7e1d1049"
629643 }
630644 ],
631삭제: "local_retry": {
632삭제: "first_exit_code": 1,
633삭제: "first_log_sha256": "488941866c676358b1b61860266f19b8373109c9075d2c2dd80228ba965275d3",
634삭제: "failed_test": "hardening::linux::gigabyte_seven_zip_and_zip_creation_stay_below_64_mib",
635삭제: "failure": "DiskFull during the large Deflate creation case",
636삭제: "recovery": {
637삭제: "removed_own_generated_bytes": 669517168,
638삭제: "available_bytes_after_cleanup": 13080125440,
639삭제: "scope": "Own obsolete capture binary copies and generated ZIP corpus payloads only; logs and results.tsv retained; shared build cache untouched."
640삭제: },
641삭제: "source_changed_between_attempts": false,
642삭제: "retry_exit_code": 0
645추가: "build_cache_cleanup": {
646추가: "incremental_cache_paths": [
647추가: "tests/rw/tests/ci/target/debug/incremental",
648추가: "tests/rw/tests/ci/target/x86_64-pc-windows-gnu/debug/incremental"
649추가: ],
650추가: "free_before": 14029524992,
651추가: "free_after": 24867364864,
652추가: "reclaimed_bytes": 10837839872,
653추가: "remaining_cache_path": "tests/rw/tests/ci/target",
654추가: "remaining_cache_reclaimed_bytes": 59119988736,
655추가: "total_reclaimed_bytes": 69957828608,
656추가: "available_bytes_after_cleanup": 83569205248,
657추가: "active_cache_processes": [],
658추가: "scope": "Only own generated build cache under tests/rw/tests/ci/target; source, Git data, logs and toolchains retained."
643659 }
644660}