fix(tui): clarify update and version dialogs

This commit is contained in:
objz committed 2026-08-05 11:57:21 +02:00
1 parent e9ad30dc29
commit 2d0007de52
8 files changed
+91 -22

No files matched your search

@@ -895,6 +895,19 @@ fn installed_labels_follow_exact_manifest_projects() {
state.list.entries[0].installed_path,
Some(PathBuf::from("first/mods/example-project-1.0.0.jar"))
);
state.list.list_state.selected = Some(0);
let request = state.begin_versions().unwrap();
assert_eq!(request.current_version_id.as_deref(), Some("version"));
assert_eq!(
state
.version_popup
.as_ref()
.unwrap()
.current_version_id
.as_deref(),
Some("version")
);
state.version_popup = None;
state.refresh_installed_manifest(
&crate::instance::ContentManifest::default(),
@@ -14,7 +14,7 @@ expression: terminal.backend()
" "
" ╭Update installed content──────────────────────────────────╮ "
" │▌▄▄▄▄▄▄ Example Mod Update │ "
" │▌▄▄▄▄▄▄ 1.0 ➜ 2.0 │ "
" │▌▄▄▄▄▄▄ Existing project description 1.0 ➜ 2.0 │ "
" │▌▄▄▄▄▄▄ │ "
" ╰───────────[j/k] navigate [Enter] update all [Esc] close╯ "
" "
+1 -1
View File
@@ -110,6 +110,6 @@ fn update_conflicts_explain_why_the_item_was_not_updated() {
);
assert_eq!(
state.list.entries[0].description,
"Other updates need different Library versions (1.0 and 2.0). This mod was left unchanged; update it separately with v."
"Other selected updates require different versions of Library.\nThis mod was left unchanged; update it separately with v."
);
}