01 Version tracking and compatibility (catalogs of plugins)
These are built for plugin stores, but any catalog can use them.
Version badges: map fields.version. For each row, the firmware looks for an installed plugin whose folder name equals the row's id, reads that plugin's manifest.json version, and shows:
- v1.2.0: not installed,
- Installed: same or newer installed,
- Update available: the catalog is newer. In a static list, rows with updates are sorted first.
With version mapped, the Details screen is always used, and these conventional item keys are read automatically if you don't map them: description, author, repository, details.url, details.format.
Compatibility filtering: hide rows the firmware can't run:
"browse": {
...
"compatibility": {
"firmware_family": "compatibility.firmware_family", // "crosspoint" or "a,b"
"plugin_api_min": "compatibility.plugin_api_min", // number, e.g. 1
"requires": "compatibility.requires" // "catalog.lists,catalog.notices"
}
}
Rows without these values are always shown. Rows that fail a check are silently skipped (and don't count toward pages in a static list).
In the catalog rows, write firmware_family and requires as comma-separated strings ("catalog.lists,catalog.notices"), the way Plugin Hub's catalog.json does. The Hub's manifest.json contract uses arrays, but that is a different file.