Steps to replicate the issue (include links if applicable):
- Go to https://test.wikipedia.beta.wmflabs.org/wiki/Special:Block/~2024-22972 (or any other user who is not currently blocked)
What happens?:
The "Active blocks" accordion shows the "Add block" button and nothing else.
What should have happened instead?:
The empty state with the message "No active blocks found" should be shown, as it was before.
Other information (browser name/version, screenshots, etc.):
In working on T383846, we made use of the Codex Table component's tbody slot to more easily conditionally add CSS classes to rows. It would seem the empty-state slot is ignored when tbody is used.
Derived Requirement
The Special:Block page should correctly display the empty state message in the Active blocks section when a user has no active blocks, ensuring that:
- When viewing Special:Block for a user who is not currently blocked, the Active blocks section should display the message: "No active blocks found" instead of just showing the "Add block" button.
- The empty-state message should not be ignored when using the Codex Table component's tbody slot.
Test Steps
Test Case 1: Ensure Empty State Message Appears for Users Without Active Blocks
- Go to Special:Block for a user who is not currently blocked (e.g., Special:Block/~2024-22972).
- Scroll to the Active blocks section.
- ✅❓❌⬜ AC1: Confirm that the message "No active blocks found" is displayed instead of just showing the "Add block" button.
QA Results - Test Wiki
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T387051#10587809 |





