Enhance Morphe bundle metadata: bundle icon, patch categories, app descriptions and best practices #68

Closed
opened 2026-10-11 12:04:01 +02:00 by midas · 0 comments
Owner

### Overview & Context
Morphe Manager consumes patch bundles via patches-bundle.json and displays bundle metadata, icons, categories, and compatibility info to users in the app UI. Currently, our patch bundle is functional but lacks several standard metadata fields and assets:

  1. Missing bundle icon: The repository lacks patches-bundle.png at root, so Morphe Manager shows a generic or fallback icon in the Sources list.
  2. Missing patch categories: All patches currently have category = null in patches-list.json. In Morphe Manager, patches appear in an unorganized flat list instead of collapsible/grouped category sections (e.g., Ads, Content, Popups, Privacy).
  3. Missing app descriptions: All 12 app Compatibility definitions leave description = null.
  4. Minimal bundle description: The about block in patches/build.gradle.kts contains only a minimal one-liner.

This issue tracks researching, auditing, and implementing best-practice bundle metadata improvements across the codebase.


Key Areas to Investigate & Implement

1. Bundle Icon (patches-bundle.png)

  • Specification: Morphe Manager looks for patches-bundle.png at the repository root to use as the source icon instead of falling back to git avatars.
  • Design requirements:
    • Recommended dimensions: 512x512 PNG with transparency or solid background.
    • Distinctive branding for "Midas Patches" (e.g. golden/midas-themed icon).
    • Must comply with Morphe licensing/trademark rules (GPL §7 / NOTICE): must not copy the official Morphe logo or imply official Morphe authorship.
  • Hosting / URL verification:
    • On Forgejo (git.midasvo.nl), verify how Morphe Manager resolves the raw icon URL when a user adds https://git.midasvo.nl/midas/midas-patches/raw/branch/main/patches-bundle.json. Ensure the root file is reachable without auth.

2. Patch Categorization (category(...))

  • Patcher API: PatchBuilder exposes .category("...") (e.g., bytecodePatch { ... category("Ads") }).
  • Proposed Category Taxonomy:
    • Ads: adblocking and commercial elements (Hide ads, Hide subscription banners, Hide Google preferred source, Hide shopping blocks, Hide game promos).
    • Privacy: tracking, telemetry, surveys (Disable tracking, Disable comScore, Disable Crashlytics, Hide surveys).
    • Popups: notifications, rating prompts, onboarding (Hide review prompts, Hide notification suggestions, Hide onboarding popups, Suppress in-app messages).
    • Content: UI decluttering, social elements (Hide comments, Hide polls, Hide cross-promotion / recommendations, Hide share buttons).
    • Media: playback, export, player features (Auto skip intro, Copy article as Markdown).
    • Settings: in-app patch configuration (Midas Settings).
  • Align with MidasSettingsCategory where sensible so in-app Midas Settings and Morphe Manager feel consistent.
  • PatchListGenerator already serializes patch.category to patches-list.json.

3. App Compatibility Metadata (Compatibility.description)

  • The Compatibility constructor accepts description: String?. Currently all apps pass nothing (null).
  • Add clear user-facing descriptions to each Compatibility object in patches/src/main/kotlin/nl/midasvo/patches/.../Constants*.kt:
    • DPG Edition: de Volkskrant, Trouw, Het Parool.
    • DPG Kubus: AD, De Gelderlander, De Stentor, Tubantia, Eindhovens Dagblad, Brabants Dagblad, BN DeStem, PZC.
    • RTL Videoland.
  • Verify appIconColor, apkFileType, and signatures for each title.

4. Bundle-Level Metadata in Gradle

  • In patches/build.gradle.kts, expand patches { about { description = "..." } }:
    • Give a clear, professional summary of what the bundle provides (Dutch news titles across DPG Media and Videoland, ad/tracker removal, Markdown article export, popup suppression, Midas Settings).

5. Patch Description & Default Conventions Audit

  • Audit all existing patch descriptions to ensure:
    • Formatted in third-person present tense, ending with a period.
    • Clear and informative for end users.
    • Sensible default = true vs default = false defaults (core adblocking default on; Markdown export, intro skipping, etc., intentionally chosen).

Definition of Done

  1. patches-bundle.png (512x512) is committed to repository root.
  2. All user-facing patches call category(...) with an appropriate category.
  3. All Compatibility entries in Constants*.kt have informative app descriptions.
  4. patches/build.gradle.kts has an updated, descriptive about block.
  5. Running .\gradlew.bat generatePatchesList populates category and description in patches-list.json.
  6. .\gradlew.bat buildAndroid builds cleanly.
  7. Local testing with java -jar tools/morphe-desktop-*-all.jar list-patches --with-packages --with-descriptions reflects the new metadata.
### Overview & Context Morphe Manager consumes patch bundles via `patches-bundle.json` and displays bundle metadata, icons, categories, and compatibility info to users in the app UI. Currently, our patch bundle is functional but lacks several standard metadata fields and assets: 1. **Missing bundle icon:** The repository lacks `patches-bundle.png` at root, so Morphe Manager shows a generic or fallback icon in the Sources list. 2. **Missing patch categories:** All patches currently have `category = null` in `patches-list.json`. In Morphe Manager, patches appear in an unorganized flat list instead of collapsible/grouped category sections (e.g., Ads, Content, Popups, Privacy). 3. **Missing app descriptions:** All 12 app `Compatibility` definitions leave `description = null`. 4. **Minimal bundle description:** The `about` block in `patches/build.gradle.kts` contains only a minimal one-liner. This issue tracks researching, auditing, and implementing best-practice bundle metadata improvements across the codebase. --- ### Key Areas to Investigate & Implement #### 1. Bundle Icon (`patches-bundle.png`) - **Specification:** Morphe Manager looks for `patches-bundle.png` at the repository root to use as the source icon instead of falling back to git avatars. - **Design requirements:** - Recommended dimensions: 512x512 PNG with transparency or solid background. - Distinctive branding for "Midas Patches" (e.g. golden/midas-themed icon). - Must comply with Morphe licensing/trademark rules (GPL §7 / NOTICE): must **not** copy the official Morphe logo or imply official Morphe authorship. - **Hosting / URL verification:** - On Forgejo (`git.midasvo.nl`), verify how Morphe Manager resolves the raw icon URL when a user adds `https://git.midasvo.nl/midas/midas-patches/raw/branch/main/patches-bundle.json`. Ensure the root file is reachable without auth. #### 2. Patch Categorization (`category(...)`) - **Patcher API:** `PatchBuilder` exposes `.category("...")` (e.g., `bytecodePatch { ... category("Ads") }`). - **Proposed Category Taxonomy:** - `Ads`: adblocking and commercial elements (Hide ads, Hide subscription banners, Hide Google preferred source, Hide shopping blocks, Hide game promos). - `Privacy`: tracking, telemetry, surveys (Disable tracking, Disable comScore, Disable Crashlytics, Hide surveys). - `Popups`: notifications, rating prompts, onboarding (Hide review prompts, Hide notification suggestions, Hide onboarding popups, Suppress in-app messages). - `Content`: UI decluttering, social elements (Hide comments, Hide polls, Hide cross-promotion / recommendations, Hide share buttons). - `Media`: playback, export, player features (Auto skip intro, Copy article as Markdown). - `Settings`: in-app patch configuration (Midas Settings). - Align with `MidasSettingsCategory` where sensible so in-app Midas Settings and Morphe Manager feel consistent. - `PatchListGenerator` already serializes `patch.category` to `patches-list.json`. #### 3. App Compatibility Metadata (`Compatibility.description`) - The `Compatibility` constructor accepts `description: String?`. Currently all apps pass nothing (null). - Add clear user-facing descriptions to each `Compatibility` object in `patches/src/main/kotlin/nl/midasvo/patches/.../Constants*.kt`: - DPG Edition: de Volkskrant, Trouw, Het Parool. - DPG Kubus: AD, De Gelderlander, De Stentor, Tubantia, Eindhovens Dagblad, Brabants Dagblad, BN DeStem, PZC. - RTL Videoland. - Verify `appIconColor`, `apkFileType`, and signatures for each title. #### 4. Bundle-Level Metadata in Gradle - In `patches/build.gradle.kts`, expand `patches { about { description = "..." } }`: - Give a clear, professional summary of what the bundle provides (Dutch news titles across DPG Media and Videoland, ad/tracker removal, Markdown article export, popup suppression, Midas Settings). #### 5. Patch Description & Default Conventions Audit - Audit all existing patch descriptions to ensure: - Formatted in third-person present tense, ending with a period. - Clear and informative for end users. - Sensible `default = true` vs `default = false` defaults (core adblocking default on; Markdown export, intro skipping, etc., intentionally chosen). --- ### Definition of Done 1. `patches-bundle.png` (512x512) is committed to repository root. 2. All user-facing patches call `category(...)` with an appropriate category. 3. All `Compatibility` entries in `Constants*.kt` have informative app descriptions. 4. `patches/build.gradle.kts` has an updated, descriptive `about` block. 5. Running `.\gradlew.bat generatePatchesList` populates `category` and `description` in `patches-list.json`. 6. `.\gradlew.bat buildAndroid` builds cleanly. 7. Local testing with `java -jar tools/morphe-desktop-*-all.jar list-patches --with-packages --with-descriptions` reflects the new metadata.
midas closed this issue 2026-10-11 14:20:38 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#68
No description provided.