Repository navigation
feat(ui): licence card shows which features are only enabled automatically - #265
Merged
Merged
Conversation
…cally On paid plans every boolean feature the licence token does not name counts as included (planDefaults). The licence card showed those exactly like features the licence grants, so an admin could not tell why e.g. device binding worked without being licensed. They are now marked "enthalten (automatisch)" in amber with a dashed outline, and a note above the list counts them. Also: the plan header no longer says "Community mode" on a paid plan, and shows the expiry date and activations it never received before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016xX1efcZF1f6G9rhmaJNLD
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.
Problem
On paid plans every boolean feature that the licence token does not name counts as included (
planDefaults, docs/feature-next-package.md §S2.3). The licence card under Settings → Lizenz showed these exactly like features the licence grants. An admin had no way to see that, for example, device binding (machine_binding) only worked because of this rule.Change
res.locals.licensenow carriessources(from the existingfeatureSources()) andderived_count.Tests
tests/license_feature_source_ui.test.jscovers four cases:The licence, settings and i18n tests pass (93).
🤖 Generated with Claude Code
https://claude.ai/code/session_016xX1efcZF1f6G9rhmaJNLD
Generated by Claude Code