Commit Graph
18 Commits
Author SHA1 Message Date
objz ce0bb34401 fix(tui): retain per-instance Java labels across switches
Cache completed and in-flight Java inspections by instance and execution context, refresh changed executables and settings, and cover cached rendering and configuration changes. Remove instance names from Overview activity labels.
2026-10-02 01:06:06 +02:00
objz 00ba2faffe fix: preserve authoritative settings through profile switches and refreshes 2026-10-01 23:23:26 +02:00
objz 2114cdc72a refactor: share filesystem helpers and correct pack imports 2026-10-01 18:48:37 +02:00
objz 3149b96971 fix: verify downloads and bound imported metadata 2026-10-01 17:44:06 +02:00
objz 783fb76f06 style: remove redundant code narration 2026-10-01 13:53:12 +02:00
objz 9d480f8bfb fix(content): preserve instance data and isolate provider caches 2026-09-25 11:22:43 +02:00
objz 29ad70fa16 chore: add SPDX copyright headers 2026-08-24 19:13:43 +02:00
objz e09e5a0168 feat(modpacks): refresh managed instances safely 2026-08-05 00:16:24 +02:00
objz 695ba5a758 feat(modpacks): check discovered pack updates 2026-08-04 21:32:25 +02:00
objz 1742f62cd0 feat(discovery): add CurseForge and modpack browsing 2026-07-28 14:12:38 +02:00
objz c6205a337c refactor: reorganize source and tests 2026-07-27 11:28:57 +02:00
objz e21f68fd7c test: harden migration and UI coverage 2026-07-27 00:37:48 +02:00
objz d123bb5c19 fix(import): clean up failed modpack imports 2026-07-27 00:17:24 +02:00
objz 09bc8f26fb chore: improve rmcl diagnostic logging 2026-06-16 10:22:51 +02:00
objz a58e6fb76d style: apply rustfmt 2026-06-16 09:58:34 +02:00
objz c6c774b1e3 refactored: final review polish and detect_format + neoforge coverage
Addresses the six items the last review flagged. Four are polish for
existing tests; two add coverage for previously-untested public APIs.

Polish:

- instance/content/mods.rs: icon_path_from_value_map now asserts a
  single deterministic value. serde_json::Map is a BTreeMap so the
  "128" key sorts before "64" and the test no longer needs an
  order-tolerant disjunction.

- cli/log.rs: replace the hand-rolled unique_temp_dir with
  tempfile::tempdir() across both tests. Drop the trailing
  remove_dir_all cleanup since TempDir handles that on Drop. Last
  inline test file using the hand-rolled pattern.

- running.rs: remove drain_empty_returns_empty. Two consecutive calls
  to drain_last_played in the same test can race with the parallel
  push_and_drain_last_played test which pushes to the same global
  LAST_PLAYED state. drain semantics are covered by the existing
  push_and_drain test.

- tui/error_buffer.rs: peek_does_not_remove now actually verifies the
  invariant the name promises. Pushes a tagged event, captures the
  count before and after peek_error, asserts the count is unchanged
  and the tagged event is still in the queue. Previous version only
  asserted that something was returned.

New coverage:

- net/neoforge.rs: added fetch_neoforge_game_versions_from(client,
  api_url) mirroring the existing _from pattern. tests/net_loaders.rs
  gains neoforge_fetch_game_versions_reverse_engineers_mc_versions
  covering the maven-version-to-MC-version reverse mapping, which was
  only touched by the #[ignore] live API test before.

- instance/import/mod.rs: six new tests for detect_format covering
  mrpack detection, mmc-pack at root and nested, the priority case
  where both markers are present, unknown archives, and missing
  files. Helper make_pack_zip builds in-memory zips so the tests
  don't need fixture files on disk.
2026-05-27 18:55:19 +02:00
objz 5dbb2be873 no-mistakes(lint): fix(lint): rustfmt formatting in mods.rs 2026-04-25 14:25:04 +02:00
objz 5f3f7890aa added mmc/prism modpack import and refactored import module
split import.rs into import/ module with mod.rs, mrpack.rs, mmc.rs.
auto-detects pack format from zip contents (modrinth.index.json or
mmc-pack.json). moved input parsing from net/modrinth.rs to the
import module since it handles routing for all formats now.
2026-04-20 19:24:47 +02:00