batches: Batch spec list improvements
Created by: eseliger
This page was quickly created for debugging but we never got around putting some more effort into it. Timebox worked on this for a bit to make some improvements.
- Use the Duration component we already made public which has lots of improvements over this one, including live timers and fixed-width handling
- Improve state icons, a pending change should not be text-danger
- Added separate state for src-cli batch specs
- Tweaked wording of executed to created, because not all of them have been executed yet, kinda lazy fix, I know
- Fix execution time calculation, we used createdAt for it before which is incorrect, should be startedAt
Test plan
Verified things still work and don't look worse than before.
App preview:
Check out the client app preview documentation to learn more.