feat: add patch categories, app descriptions and a bundle icon #70
No reviewers
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches!70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/bundle-metadata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #68.
What Morphe Manager does with this metadata (checked in its source)
categoryis 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..jsonwith.pngin the bundle URL, soraw/branch/<branch>/patches-bundle.pngnext topatches-bundle.jsonworks on Forgejo too (no auth). It is shown cropped to a circle and scaled down to at most 256 px.about.descriptiongoes into the.mppmanifest. Manager only shows it in the dialog for importing a.mpp, cut off after 2 lines, so it is kept short.Compatibility.descriptiononly ends up inpatches-list.json. Manager does not read it yet.Changes
shared/PatchCategory.ktdefines Ads, Content, Features, Popups, Privacy, Settings. All 34 named patches callcategory(...)right aftercompatibleWith(...). The categories followMidasSettingsCategory, except Copy article as Markdown and Auto skip intro, which go under Features. Surveys go under Popups, like its toggle (the issue suggested Privacy).description.patches-bundle.png(512×512, a gold coin with an "M", not based on the Morphe logo) is drawn byscripts/BundleIcon.java(java scripts/BundleIcon.java).Verification
generatePatchesListbuilds. Of 34 patches, 0 havecategory: null. The 12 app descriptions are inpatches-list.json(not committed, because the release owns it).patch-install.ps1 -NoInstallreported every enabled patch as applied: Volkskrant 7.52.0 (13), BD 9.21.1 (15), Videoland 1.115.2 (Hide ads).list-patchesshows no categories, and--with-descriptionsprints 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