feat(api): human-readable display label per resource via extraProperties#3
Merged
Conversation
…ies [*] Each pass-through resource declares extraProperties: ['label' => '…'] (e.g. FlowProcessInstance -> 'Process Instance'). Consumed by dmstr/api-platform-utils-bundle, which emits it as rdfs:label on the Hydra supportedClass; hrzg/vue-za7-admin-ui prefers it over hydra:title for menu and heading text. shortNames, IRIs and URLs are unchanged; the label is free text and translatable later. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Each pass-through resource declares
extraProperties: ['label' => '…']— e.g.FlowProcessInstance→ Process Instance,FlowHistoricTask→ Historic Task (all 9 resources).How it fits together
dmstr/api-platform-utils-bundle(companion PR feat(hydra): emit rdfs:label per supportedClass from extraProperties api-platform-utils-bundle#4) emits the label asrdfs:labelon thehydra:supportedClassin/api/docs.jsonldhrzg/vue-za7-admin-uiprefersrdfs:labeloverhydra:titlefor menu and heading texthydra:title(= shortName), IRIs and URLs (/api/flowable/*) are unchanged — the label is display-only and translatable later🤖 Generated with Claude Code