Repository navigation
fix(members): fee status distinguishes "no period for today" (spec 50) - #283
Merged
Merged
Conversation
…n Configured (spec 50) Reported on TEST: moving a type's only period to 2027 left the "Current period" columns empty while the row still showed a green "Configured" badge — the row looked broken rather than effective-dated. - The badge is now a tri-state: **missing** (gray, no catalog entry) / **current** (green, a period covers today) / **no period for today** (yellow, `status_no_current` EN+NL). - `data-state` + `membership-fees-status-<type>` test ids expose the state. - test: a 2027-only catalog and a `periods: []` entry both render `data-state="future"`. - spec: tasks 11.2 records the tri-state rationale. Verified: editor 7 -> 8 tests, translations 7 (15 passed), `tsc --noEmit` clean, eslint clean.
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.
Reported on TEST: after moving a type's only period to 2027, the "Current period" columns read empty while the row still showed a green Configured badge — so the row looked broken instead of effective-dated.
The fee derivation (and the table) is effective-dated by design: the "current period" is the period that contains today. The badge now says so explicitly.
status_no_currentkey, EN + NL).data-state(missing|current|future) andmembership-fees-status-<type>on the badge.periods: []both renderdata-state="future"; the normal fixture renderscurrent.Verified: editor 7 -> 8 tests, translations 7 (15 passed),
tsc --noEmitclean, eslint clean.