Skip to content

Add ability to create and view blocking states (#612) - #657

Open
tungleduyxyz wants to merge 3 commits into
masterfrom
kaui_8.25
Open

Add ability to create and view blocking states (#612)#657
tungleduyxyz wants to merge 3 commits into
masterfrom
kaui_8.25

Conversation

@tungleduyxyz

Copy link
Copy Markdown
Contributor

Summary

Implements issue #612 — read and write paths for Kill Bill blocking states.

Read path:

  • Account Timeline now surfaces blocking state events (previously silently filtered out via next if event.event_type == 'SERVICE_STATE_CHANGE')
  • Dedicated "Blocking States" event filter on the timeline alongside existing Subscription/Payment/Billing filters
  • CSV export includes blocking state rows
  • New "Blocking States" index page per account (accessible via the left sidebar nav)

Write path:

  • "Create Blocking State" form for Account, Bundle, and Subscription levels
  • Entry points: Account → Billing Information section button; Subscriptions table → row dropdown per bundle/subscription; Blocking States index page → "Add Blocking State" button
  • Form fields: Applies To (read-only type + object ID), State (required), Service (required), Block flags — Change / Entitlement / Billing, Effective Date, Comment
  • "About Blocking States" info panel beside the form explaining blocking state semantics

Test plan

  • Create an account-level blocking state via the Billing Information section button; confirm it appears on the Account Timeline and in the Blocking States index
  • Create a bundle-level blocking state via the Subscriptions table row dropdown; confirm it appears correctly typed (BUNDLE) in the Blocking States index
  • Create a subscription-level blocking state via the Subscriptions table row dropdown; confirm it appears correctly typed (SUBSCRIPTION) in the Blocking States index
  • Verify the Account Timeline "Blocking States" filter shows/hides blocking state events independently of other filters
  • Verify the CSV export includes blocking state rows
  • Verify "Add Blocking State" button is hidden for users without account:update permission

🤖 Generated with Claude Code

tungleduyxyz and others added 2 commits August 21, 2026 23:30
Remove the Group by drop-down and make date-first, event-type-second
the permanent default ordering. Events on the same date are ordered by
the canonical eventsOrder list (e.g. START_BILLING before STOP_BILLING).

Fixes #649

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Implements the write and read paths for Kill Bill blocking states:

Read path:
- Account Timeline now surfaces blocking state events (previously filtered out)
- Added dedicated "Blocking States" filter alongside existing Subscription/Payment/Billing filters
- CSV export includes blocking state events
- New "Blocking States" index page per account (nav sidebar entry)

Write path:
- "Create Blocking State" form for Account, Bundle, and Subscription levels
- Accessible via Account Billing Information section button, Subscriptions table row dropdown, and the new Blocking States index page
- Form includes Applies To summary, State/Service fields with helper text, Block flags (Change/Entitlement/Billing), Effective Date, and Comment
- "About Blocking States" info panel alongside the form (i18n strings in en.yml)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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