Skip to content

Write a pack version in the listing editor - #614

Merged
Maximilian-Nesslauer merged 3 commits into
mainfrom
pack-version-editor
Sep 26, 2026
Merged

Maximilian-Nesslauer merged 3 commits into
mainfrom
pack-version-editor

Conversation

@Maximilian-Nesslauer

Copy link
Copy Markdown
Member

Closes #563

  • Mod authors can start a mod pack on the Listing page and write one pack version.
  • Members are picked from the index, each pinned to a release that is not yanked and still downloads, newest first with its status.
  • A loaded pin of a release whose download is gone stays, and its note names the date.
  • The page proposes the oldest game version that the pinned releases need.
  • A pack opens on GitHub at packs/<id>/<version>.toml, and a long file is copied for pasting.
  • A listing that uses the forums thread of a pack now gets the thread-collision message.

- ListingDraft reads and writes version, released_at, changelog and mods of a modpack, keeps every key it does not name, and puts a pack at packs/<id>/<version>.toml

- ListingPackMembers says which listed mods and releases a pack can pin

- ListingRules counts the forums thread of every pack version for the thread note
- The first step offers a mod pack, which opens the form with a Pack and a Members section instead of Releases, Loader and Dependencies

- Members are picked from the snapshot, and a pin that no client can install stays in the file with a note

- The editor proposes the highest game_min of the pinned releases

- A pack has no signed-in publish yet, and the browser opens its pack path, with the 2,000 character link limit
- The member picker offers only releases that are not yanked and still download (RFC 0078).
- A loaded pin of a gone release stays and its note names the date, and it still counts for the game_min proposal.
@Maximilian-Nesslauer Maximilian-Nesslauer added this to the v0.3.0 milestone Sep 26, 2026
@Maximilian-Nesslauer Maximilian-Nesslauer added area:core Borea.Core, the domain model area:storage Borea.Storage, persistence and TOML area:app Borea.App, the Avalonia UI pack Mod packs labels Sep 26, 2026
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 36274583931

Coverage increased (+0.007%) to 87.804%

Details

  • Coverage increased (+0.007%) from the base build.
  • Patch coverage: 19 uncovered changes across 5 files (282 of 301 lines covered, 93.69%).
  • 5 coverage regressions across 3 files.

Uncovered Changes

File Changed Covered %
src/Borea.App/ViewModels/ListingEditor.Pack.cs 84 76 90.48%
src/Borea.App/ViewModels/ListingEditor.Overview.cs 22 16 72.73%
src/Borea.App/ViewModels/ListingEditor.cs 29 27 93.1%
src/Borea.App/ViewModels/ListingEditorRows.cs 17 15 88.24%
src/Borea.Core/Listings/ListingPackMembers.cs 17 16 94.12%
Total (12 files) 301 282 93.69%

Coverage Regressions

5 previously-covered lines in 3 files lost coverage.

File Lines Losing Coverage Coverage
src/Borea.App/SingleInstance/HandoverServer.cs 2 87.95%
src/Borea.App/ViewModels/ListingEditor.Overview.cs 2 52.53%
src/Borea.Storage/Mods/FileSharedModStore.cs 1 91.03%

Coverage Stats

Coverage Status
Relevant Lines: 33456
Covered Lines: 30696
Line Coverage: 91.75%
Relevant Branches: 16874
Covered Branches: 13496
Branch Coverage: 79.98%
Branches in Coverage %: Yes
Coverage Strength: 6151.47 hits per line

💛 - Coveralls

@Maximilian-Nesslauer
Maximilian-Nesslauer merged commit e95dc0e into main Sep 26, 2026
12 checks passed
@Maximilian-Nesslauer
Maximilian-Nesslauer deleted the pack-version-editor branch September 26, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:app Borea.App, the Avalonia UI area:core Borea.Core, the domain model area:storage Borea.Storage, persistence and TOML pack Mod packs

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Write a pack version in the listing editor

3 participants