r2modmanPlus icon indicating copy to clipboard operation
r2modmanPlus copied to clipboard

[FEATURE REQUEST] - Hide modpacks by default

Open Cubly opened this issue 1 year ago • 6 comments

What problem does the feature request solve? When browsing the online section to look for mods, it is often filled with a multitude of modpacks, which is annoying when you want to browse new mods (because if you are looking for one, you are usually not looking for the other).

To remove them you have to click filter and then click mod has none of these categories, this now removes the ability to filter other actual mods, plus you have to do this everytime you use the online section.

Additional information (optional) I think some alternate tab for modpacks to be listed separate from mods would be ideal. But a show modpacks checkbox in the filter categories menu would be good enough, especially if the option you chose was persistent.

Cubly avatar Dec 06 '23 23:12 Cubly

Added some filter tabs that could probably solve this issue. Not sure if i should submit a PR with it but thought i should put it here if any feedback is given.

https://github.com/KlutzyBubbles/r2modmanPlus/tree/modpack-filter

image

KlutzyBubbles avatar Dec 08 '23 02:12 KlutzyBubbles

These should probably be synced to match the definitions provided by the https://github.com/thunderstore-io/ecosystem-schema repo, which is how they're synced to the Thunderstore website. Take a look at e.g. https://github.com/thunderstore-io/ecosystem-schema/blob/master/games/data/lethal-company.yml for how they're defined and what it builds to here: https://thunderstore.io/api/experimental/schema/dev/latest/

Notably this project already has a script for syncing a copy of the latest schema to be bundled in to a build here: https://github.com/ebkr/r2modmanPlus/blob/master/scripts/sync.ts but it'd need some logic that lets it fetch a new version e.g. on launch and only use the bundled in version as a fallback.

MythicManiac avatar Dec 08 '23 21:12 MythicManiac

Added some filter tabs that could probably solve this issue. Not sure if i should submit a PR with it but thought i should put it here if any feedback is given.

https://github.com/KlutzyBubbles/r2modmanPlus/tree/modpack-filter

This is an even better solution than I had in mind. The added filter options for APIs & Libraries is also incredibly useful, as they also clog up the mods section. Nice work!

Cubly avatar Dec 09 '23 01:12 Cubly

These should probably be synced to match the definitions provided by the https://github.com/thunderstore-io/ecosystem-schema repo, which is how they're synced to the Thunderstore website. Take a look at e.g. https://github.com/thunderstore-io/ecosystem-schema/blob/master/games/data/lethal-company.yml for how they're defined and what it builds to here: https://thunderstore.io/api/experimental/schema/dev/latest/

Notably this project already has a script for syncing a copy of the latest schema to be bundled in to a build here: https://github.com/ebkr/r2modmanPlus/blob/master/scripts/sync.ts but it'd need some logic that lets it fetch a new version e.g. on launch and only use the bundled in version as a fallback.

Did not know this was a thing, i will have a look and change up the code to make it work.

KlutzyBubbles avatar Dec 09 '23 04:12 KlutzyBubbles

If you do make it work, I'd suggest sending me a message (DM or ping) on Discord and I'll facilitate getting it merged. Integrating the tabs from the schema has been on our todo list for a while now

MythicManiac avatar Dec 12 '23 17:12 MythicManiac

Please get this to work, so sick of being forced to filter them out, preventing the use of any other filters

VaelophisNyx avatar Dec 21 '23 06:12 VaelophisNyx