Skip to content

Add required name field for plugin display names - #11

Merged
paulyhedral merged 2 commits into
developfrom
feature/add-manifest-display-name
Jul 21, 2026
Merged

Add required name field for plugin display names#11
paulyhedral merged 2 commits into
developfrom
feature/add-manifest-display-name

Conversation

@paulyhedral

Copy link
Copy Markdown
Member

Summary

  • Adds a required name field to Manifest for a plugin's human-readable display name, distinct from id
  • Hosts must not derive a display name from id (e.g. title-casing it) — this closes that gap

Why

fulltime-ui's league selector needed a pretty display name per plugin. The stopgap of title-casing the plugin id was rejected as incorrect; the name belongs in the manifest, declared by the plugin author.

Not marked as a breaking change: the plugin API contract is still pre-1.0 and in flux, so this ships as a plain feat: (minor bump). Breaking-change semantics are reserved for after the first 1.0 release.

Test plan

  • cargo test passes (14 unit tests, 3 integration tests, 7 doc-tests)
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • cargo +nightly fmt --all -- --check clean

Hosts previously had no manifest-declared human-readable name to show
in UI, forcing derivation from `id` (e.g. title-casing "bundesliga").
Plugins now declare `name` directly. Not marked breaking: the plugin
API contract is still pre-1.0 and in flux.
Hosts need to show a plugin's name in the user's locale. Adds an
optional [names] table (locale -> display name) and
Manifest::localized_name(locale), which falls back to the required
name field when no entry matches. Not marked breaking: still pre-1.0.
@paulyhedral
paulyhedral merged commit 8d139c6 into develop Jul 21, 2026
5 checks passed
@paulyhedral
paulyhedral deleted the feature/add-manifest-display-name branch July 21, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant