Skip to content

fix(members): fee status distinguishes "no period for today" (spec 50) - #283

Merged
PeterGeers merged 1 commit into
testfrom
fix/50-fee-status-tri-state
Nov 30, 2026
Merged

PeterGeers merged 1 commit into
testfrom
fix/50-fee-status-tri-state

Conversation

@PeterGeers

Copy link
Copy Markdown
Owner

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.

  • Tri-state status: missing (gray, no catalog entry) / current (green, a period covers today) / no period for today (yellow, new status_no_current key, EN + NL).
  • data-state (missing|current|future) and membership-fees-status-<type> on the badge.
  • test: a 2027-only catalog and an entry with periods: [] both render data-state="future"; the normal fixture renders current.

Verified: editor 7 -> 8 tests, translations 7 (15 passed), tsc --noEmit clean, eslint clean.

…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.
@PeterGeers
PeterGeers merged commit 2cb3857 into test Nov 30, 2026
5 checks passed
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