Repository navigation
fix(members): make Add period unmissable in the fee editor (spec 50 R14.9) - #282
Merged
Merged
Conversation
… R14.9)
On TEST the editor read as "there is no add" because the control was a low-contrast ghost
button BELOW the scrolling periods table (size="xl" + scrollBehavior="inside").
- The `+ Add period` button now sits beside the "Periods" heading, `variant="outline"` /
`colorScheme="orange"` (still `type="button"`, still pushing `nextPeriodAfter(values.periods)`).
- New helper line under the heading (`periods_hint`, EN/NL): periods must be contiguous and the
period covering today is the one the member fee uses — that is why changing a lone period to
2027 makes the 2026 "current period" columns read empty.
- Empty state row ("no periods yet") when a type has `periods: []`.
- Seeding tightened: an EXISTING entry with `periods: []` keeps it empty (the derived fee is then
None); only a not-yet-configured type is seeded one calendar-year period.
- test: `shows the Add period affordance + empty state for a type with no periods` (6 → 7 editor
tests); the add-period test still asserts the contiguous 2027 seeding + two-period save.
Verified: vitest 32 passed (model 18, editor 7, translations 7), `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.
On TEST the fee editor looked like it could only hold one period: the add control was a low-contrast ghost button below the scrolling periods table. Two separate defects made it read as "there is no add":
+ Add period(stilltype="button").Also in this PR:
periods_hint(EN/NL): periods must be contiguous AND the period covering today is the one the member fee uses - that explains why moving a lone period to 2027 leaves the "current period" columns empty for 2026 (the derivation and the table are effective-dated by design).periods: [].periods: []stays empty (derived fee = None, R12.5); only a not-yet-configured type is seeded one calendar-year period.Tests: editor 6 -> 7 (affordance + hint + empty state + add), model 18, translations 7 -> 32 passed;
tsc --noEmitclean; eslint clean.Spec: R14.9, design section "Period authoring" (placement + hint + empty state), tasks 11.2 updated.