The PR needs to show upload, import, or step progress. The agent adds a track div and an inner div whose width is ${percent}%. There is no accessible name, no valuenow, and the indeterminate "still working" state is a CSS animation invented in the feature file. The repo already has a Progress component with determinate and indeterminate variants, a label, and size tokens. Nearby import and upload flows already use it.
I've started treating a homemade percentage bar as an incomplete progress control, not as a lighter meter. Setting a width is the easy part. A consistent label, a real progress role, and one indeterminate pattern are why the primitive is there.
Why the homemade bar shows up
A tutorial progress bar is two divs and a percent. The model can write that without finding components/Progress. Your primitive may be named ProgressBar, Meter, or LoadingBar, which is easy to miss if the prompt only says "show a percentage."
You also skip the difference between determinate progress and an unknown wait, the aria-valuemin / aria-valuemax already on the primitive, and the reduced-motion path for the indeterminate animation.
A simple Progress policy
- New determinate or indeterminate progress uses the existing Progress component
- Do not build a width-percentage bar in a feature file
- Keep the label and the value on the primitive
- A new size or tone is a primitive change, with a story
If the UI is a stepped wizard, that may be the existing Stepper, not a progress bar used as step numbers. If you only need a busy state with no value, prefer the existing Spinner or the Progress indeterminate variant, not a second animation.
What to put in the prompt
Use the existing Progress component for this upload or import indicator. Do not build a div whose width is a percentage in this file. Keep the label, the determinate value, and the indeterminate variant on the primitive. If this is a stepped wizard, use the existing Stepper instead. Paste one existing Progress usage. In review, search the diff for width:${percent}%`, a track/fill pair that is not the primitive, and an indeterminate keyframe added in a feature stylesheet.
Reject / send back
Reject
- A feature-level progress bar that reimplements the Progress component
- A silent bar with no accessible name or value
- A one-off indeterminate animation when the primitive already has one
- A second progress library added for one upload row
Accept
- An indicator that uses the existing Progress component
- A primitive PR that adds a documented size or tone and a story
- A stepped flow that stays on the existing Stepper, or a valueless wait that stays on Spinner