feat: add patch categories, app descriptions and a bundle icon #70

Merged
midas merged 1 commit from feat/bundle-metadata into dev 2026-10-11 14:20:36 +02:00
Owner

Closes #68.

What Morphe Manager does with this metadata (checked in its source)

  • category is free text. Manager makes one collapsible group per category, shows the string as is (not translated, same icon for every group) and sorts the groups alphabetically. Patches without a category come first, with no header. Upstream morphe-patches uses no categories, so there was no convention to follow.
  • Bundle icon: Manager replaces .json with .png in the bundle URL, so raw/branch/<branch>/patches-bundle.png next to patches-bundle.json works on Forgejo too (no auth). It is shown cropped to a circle and scaled down to at most 256 px.
  • about.description goes into the .mpp manifest. Manager only shows it in the dialog for importing a .mpp, cut off after 2 lines, so it is kept short.
  • Compatibility.description only ends up in patches-list.json. Manager does not read it yet.

Changes

  • shared/PatchCategory.kt defines Ads, Content, Features, Popups, Privacy, Settings. All 34 named patches call category(...) right after compatibleWith(...). The categories follow MidasSettingsCategory, except Copy article as Markdown and Auto skip intro, which go under Features. Surveys go under Popups, like its toggle (the issue suggested Privacy).
  • Each of the 12 apps has a one-line description.
  • The bundle description is rewritten.
  • patches-bundle.png (512×512, a gold coin with an "M", not based on the Morphe logo) is drawn by scripts/BundleIcon.java (java scripts/BundleIcon.java).
  • Spelling in patch descriptions is now consistently American (initializing, behavior).
  • AGENTS.md and the add-patch skill now document the category and description conventions.

Verification

  • generatePatchesList builds. Of 34 patches, 0 have category: null. The 12 app descriptions are in patches-list.json (not committed, because the release owns it).
  • patch-install.ps1 -NoInstall reported every enabled patch as applied: Volkskrant 7.52.0 (13), BD 9.21.1 (15), Videoland 1.115.2 (Hide ads).
  • Morphe Desktop 1.18.1 list-patches shows no categories, and --with-descriptions prints no descriptions. That is in the CLI, not in the bundle.

The icon only appears for the stable source once this reaches main.

🤖 Generated with Claude Code

Closes #68. ## What Morphe Manager does with this metadata (checked in its source) - **`category`** is free text. Manager makes one collapsible group per category, shows the string as is (not translated, same icon for every group) and sorts the groups alphabetically. Patches without a category come first, with no header. Upstream morphe-patches uses no categories, so there was no convention to follow. - **Bundle icon:** Manager replaces `.json` with `.png` in the bundle URL, so `raw/branch/<branch>/patches-bundle.png` next to `patches-bundle.json` works on Forgejo too (no auth). It is shown cropped to a circle and scaled down to at most 256 px. - **`about.description`** goes into the `.mpp` manifest. Manager only shows it in the dialog for importing a `.mpp`, cut off after 2 lines, so it is kept short. - **`Compatibility.description`** only ends up in `patches-list.json`. Manager does not read it yet. ## Changes - `shared/PatchCategory.kt` defines **Ads, Content, Features, Popups, Privacy, Settings**. All 34 named patches call `category(...)` right after `compatibleWith(...)`. The categories follow `MidasSettingsCategory`, except Copy article as Markdown and Auto skip intro, which go under Features. Surveys go under Popups, like its toggle (the issue suggested Privacy). - Each of the 12 apps has a one-line `description`. - The bundle description is rewritten. - `patches-bundle.png` (512×512, a gold coin with an "M", not based on the Morphe logo) is drawn by `scripts/BundleIcon.java` (`java scripts/BundleIcon.java`). - Spelling in patch descriptions is now consistently American (initializing, behavior). - AGENTS.md and the add-patch skill now document the category and description conventions. ## Verification - `generatePatchesList` builds. Of 34 patches, 0 have `category: null`. The 12 app descriptions are in `patches-list.json` (not committed, because the release owns it). - `patch-install.ps1 -NoInstall` reported every enabled patch as applied: Volkskrant 7.52.0 (13), BD 9.21.1 (15), Videoland 1.115.2 (Hide ads). - Morphe Desktop 1.18.1 `list-patches` shows no categories, and `--with-descriptions` prints no descriptions. That is in the CLI, not in the bundle. The icon only appears for the stable source once this reaches `main`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat: add patch categories, app descriptions and a bundle icon
All checks were successful
CI / Build (pull_request) Successful in 4m2s
b38b88d35c
Morphe Manager groups the patch list by category, so every named patch now
declares one (Ads, Content, Features, Popups, Privacy, Settings), matching the
toggle categories in Midas Settings. Each app gets a short description, the
bundle description in the manifest is rewritten to fit Manager's two-line
import dialog, and patches-bundle.png gives the source its own icon in
Manager (it loads the bundle json URL with .png). The icon is drawn by
scripts/BundleIcon.java.

Closes #68

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.