The PR handles "no items" with a dashed border, a generic "Nothing here," and a one-off button. The repo already has an EmptyState (or BlankSlate) component with a slot for an icon, a title, a short description, and the primary action. Nearby lists use it. The new box uses different spacing, a different heading level, and a CTA that does not match the existing empty-state tone.
I've started treating a homemade empty box as a missed component, not as a lighter placeholder. The dashed border is easy to sketch. Shared typography and action placement are why the component exists.
Why the one-off empty box shows up
Tutorials draw an empty list as a dashed rectangle and a sentence. The model can write that without finding EmptyState. Your component may be named BlankSlate or live under a patterns folder, which is easy to miss if the prompt only says "show a message when the list is empty."
You also skip the existing illustration or icon, and the rule about one primary action instead of two competing buttons.
A simple empty-state policy
- New empty lists and missing-data views use the existing empty-state component
- Do not add a one-off dashed box in a feature file
- Copy follows the existing tone: what is missing, and the next useful action
- A new variant (compact, in-panel) is a component change, with a story
An empty success path is not the same as an error path. Failed loads still go through the error helper.
What to put in the prompt
Use the existing EmptyState (or BlankSlate) component when this list is empty. Do not build a dashed box or a one-off empty layout in this file. Follow the existing title, description, and single primary action pattern. If you need a compact variant, extend the component; do not invent a second one. Paste one existing empty-state usage. In review, search the diff for dashed, a raw "No items" / "Nothing here" block, and an empty view that is not the shared component.
Reject / send back
Reject
- A feature-level dashed empty box
- Empty copy that does not match the existing tone
- Two CTAs, or no action, where the shared component already has a pattern
- A second empty-state component added for one list
Accept
- An empty view that uses the existing component
- A component PR that adds a documented variant and a story
- An error path that stays on the error helper, not the empty state