Commit Graph
30 Commits
Author SHA1 Message Date
objz 40db30ce5a fix(net): verify modrinth pack downloads before use
download_mrpack now routes through the shared temp-file download with
size/hash verification and rename instead of writing the final path
directly.
2026-08-24 19:14:20 +02:00
objz bf2957e75b fix(discovery): preserve provider results across pages 2026-08-04 20:55:28 +02:00
objz 95a25836a0 fix(content): validate provider download paths 2026-08-04 20:46:21 +02:00
objz 37cccc352b fix(content): correct discovery loading status 2026-08-04 20:06:41 +02:00
objz 7986bab3a7 feat(content): add datapack discovery and world installs 2026-08-01 19:47:47 +02:00
objz aefc4535e1 fix(content): only clean up library dependencies 2026-07-28 20:37:10 +02:00
objz 3b26581af5 feat(content): manage required mod dependencies 2026-07-28 19:38:38 +02:00
objz 315567a79c fix(tui): clarify Modrinth progress labels 2026-07-28 16:46:02 +02:00
objz 1742f62cd0 feat(discovery): add CurseForge and modpack browsing 2026-07-28 14:12:38 +02:00
objz feeb3e6d50 refactor: use canonical module paths 2026-07-27 11:32:15 +02:00
objz c6205a337c refactor: reorganize source and tests 2026-07-27 11:28:57 +02:00
objz 15d76c18a0 refactor: clarify content and tui ownership 2026-07-27 11:03:46 +02:00
objz 9b17ec96c5 test(net): consolidate live API smoke tests 2026-07-27 00:38:03 +02:00
objz 72b8b19f52 fix(discovery): guard unsupported vanilla content 2026-07-26 22:00:07 +02:00
objz 77980dbb4d feat(content): add Modrinth project pages 2026-07-26 17:16:06 +02:00
objz 130661f144 feat(content): manage discovery installs incrementally 2026-07-26 14:05:49 +02:00
objz 0a930a4f86 fix(content): make provider metadata durable 2026-07-25 12:39:34 +02:00
objz fbf8142ea0 feat(content): add managed content metadata layout 2026-07-25 12:14:30 +02:00
objz a05b030862 feat(content): install Modrinth project versions 2026-07-23 00:29:05 +02:00
objz 19c47cdf7b feat(content): refine Modrinth discovery streaming 2026-07-22 22:22:00 +02:00
objz 774a6c6723 feat(content): add Modrinth discovery mode 2026-07-22 20:44:16 +02:00
objz 09bc8f26fb chore: improve rmcl diagnostic logging 2026-06-16 10:22:51 +02:00
objz 5f43128a80 added: tests for patches helpers, forge installer detection, url_encode, profile fetchers
Closes the seven remaining tractable coverage gaps the final review
flagged. All tests-only or tiny *_from variants matching the existing
pattern. 18 new tests.

- src/instance/launch/patches.rs: seven inline tests for the lwjgl3ify
  patch helpers that were entirely untested before. strip_replaced_libs
  has happy + no-op cases. parse_add_opens covers the basic Add-Opens
  extraction, the MANIFEST.MF continuation-line case (the tricky one:
  jar manifests wrap lines with a trailing space + leading-space marker
  that gets stripped on join), missing manifest, and missing file.
  add_lwjgl3 verifies that only jars that actually exist in lib_dir
  end up on the classpath.

- src/net/forge.rs: three inline tests for has_legacy_install_profile.
  Builds synthetic forge installer zips in a tempdir with and without
  the versionInfo key in install_profile.json; covers the missing-jar
  branch with a path that doesn't exist.

- src/net/modrinth.rs: five-case rstest for url_encode covering the
  unreserved set, space, RFC 3986 reserved characters, multi-byte UTF-8
  (the encoder operates per-byte so emoji exercises the multi-byte
  path), and empty input.

- src/net/fabric.rs / src/net/quilt.rs: added fetch_*_profile_from and
  fetch_*_profile_with_raw_from variants mirroring the existing pattern.
  Existing fetch_*_profile and *_with_raw delegate to them with the
  upstream constants.

- tests/net_loaders.rs: two new wiremock tests (fabric_fetch_profile
  parses libraries, quilt_fetch_profile parses libraries) using the
  new _from variants.

- src/tui/widgets/popups/import_modpack/render.rs: extra snapshot for
  the Confirm step when loader_version is None (vanilla pack or old
  mmc pack). The previous Confirm snapshot covered Some(_) only.

Production touches stay minimal: the four new pub fn delegators in
fabric.rs and quilt.rs, all behaviour-preserving.
2026-05-27 18:19:26 +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
objz 52787b57c7 fix: switch default profile to terminal and fixed some comments 2026-04-18 19:44:59 +02:00
objz 47dad69321 refactor: upgrade crates and restructure project 2026-04-18 16:59:27 +02:00
objz f7349cada3 feat(theme): add dedicated popup_import theme section 2026-03-28 18:14:35 +01:00
objz b5d4d58fd9 feat(modrinth): add API client and mrpack parser 2026-03-07 17:42:56 +01:00
objz 24eb902ea5 feat(modrinth): add API types, mrpack manifest, and URL parsing 2026-03-07 17:08:22 +01:00