Repository navigation
feat(launcher): browse CurseForge by section, import any package, and quieten the mod menu button - #191
Closed
Lynxifyy wants to merge 5 commits into
Closed
feat(launcher): browse CurseForge by section, import any package, and quieten the mod menu button#191Lynxifyy wants to merge 5 commits into
Lynxifyy wants to merge 5 commits into
Conversation
The tab did nothing until a query was typed: nothing called the API on entry. It now browses on first visit, and the section chips are the API's own Minecraft Bedrock classes (Addons 4984, Texture Packs 6929, Scripts 6940, Maps 6913, Skins 6925, read from /v1/categories?gameId=78022) instead of an unfiltered mixture. Every section asks for total downloads descending and the list is re-sorted on the client, so a row cannot read out of order. The result row drew a hardcoded CurseForge mark in place of the project's picture, which made every texture pack look identical. It draws logo.thumbnailUrl through the existing avatar cache and keeps the mark only as the fallback.
…gress The importer only worked for a bare .apk. An .xapk unpacks its APKs at the root and its OBB under Android/obb/, but the installer only reads apk/ and obb/, so an XAPK produced an empty instance that appeared in the list and refused to launch. ImportedPackageLayout now collects the parts wherever the archive put them, makes the largest APK base.apk and keeps the splits, so both layouts install. A .zip is accepted too, and the picker's own subtitle stops promising a zip the importer used to reject. Archive entries that point outside the import directory (../, an absolute path, a Windows separator) are skipped instead of being written, which was an arbitrary-write path. Importing now shows a modal progress ring with the percentage in the pixel face. It was writing to busyMessage, which only the sign-in dialog reads, so the import looked frozen.
… brand mark The floating button wore the Caramel apple, so it named the client in every screenshot it appeared in. It now draws a three-bar handle: still obviously a menu, no longer a logo. ModMenuButtonIconTest pins the choice and the properties the glyph needs to stay legible on any game scene (a vector, visible strokes, one flat white).
…b at API 28 VersionManager crossed its file-size baseline once import grew, so the archive unpacking moved to ArchiveExtractor; the tab used Stream.toList, which the API-28 gate rejects.
…mport layout Both bugs came from a contract nobody had written down: the CurseForge tab only searched on demand, and the importer assumed every package already had the installer's layout.
Lynxifyy
temporarily deployed
to
github-pages
November 28, 2026 06:34 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three launcher fixes from the reported list. Each one has a JVM test; none of them could be checked on a phone from here (no device, and
assembleDebugneeds the Rust toolchain, which this container does not have).CurseForge tab was blank until you searched
GET /v1/categories?gameId=78022): All, Add-ons (4984), Texture packs (6929), Scripts (6940), Maps (6913), Skins (6925).sortField=6) and the page is re-sorted on the client, so a row cannot read out of order.logo.thumbnailUrlthrough the existing bounded avatar cache and keeps the mark only as the fallback.CurseForgeClient.searchUrlwas extracted so the query shape is testable: an empty query sends nosearchFilter, All sends noclassId.Import instance said "zip" and did not import
.zipwhile the importer rejected anything that was not.apk/.xapk. A real XAPK unpacks its APKs at the root and its OBB underAndroid/obb/, but the installer only readsapk/andobb/— so an imported XAPK produced an empty instance that appeared in the list and refused to launch.ImportedPackageLayoutcollects every APK/OBB/manifest wherever the archive put it (four levels deep), makes the largest APKbase.apk, keeps the splits, and is idempotent. Detection is by name and zip signature, so a package renamed by a file provider still opens.ArchiveExtractor(split out ofVersionManager, which is at its file-size baseline) skips zip entries that resolve outside the scratch directory — the old code joined the entry name and wrote it.busyMessage, which only the sign-in dialog reads, so a minute-long import looked frozen.In-game Mod Menu button
ModMenuButtonIconTestpins the choice plus the properties the glyph needs on any game scene.Tests
:app:testDebugUnitTest— 3447 tests, 0 failures, 1 skipped. New:CurseForgeSectionsTest(5),ImportedPackageLayoutTest(7, against real temp directories),ModMenuButtonIconTest(3). Gates that failed on the way and were fixed properly:FileSizeBudgetTest(split, not raised) andApi28CompatTest(Stream.toList).Docs: new
docs/agents/caramel-curseforge-tab.md, plus bullets ininstallations-tab-pluggable-package-sources.md.Still needs a phone: the thumbnails actually painting, the import dialog on a real package, and the handle's contrast over a bright scene.
@Lynxifyy can click here to continue refining the PR