The first time you visit a crash page, the Record History card should be collapsed aka closed.
Click the header to open the card.
If you refresh or leave and go to a different crash, the card should remain open.
Clicking again will close the card.
If you refresh or leave and go to a different crash, the card should remain closed.
It wasn't explicitly stated in the issue, but I included the badge with a count of how many entries are in the record history card, to mimic what is in the Units, People and Charges cards
I considered saving a more generalized "accordion state" object in local storage, with an entry for this Card so that in the future we could store the open/closed state of all the other cards. But I opted to keep it simple
Ship list
[ ] Check migrations for any conflicts with latest migrations in main branch
[ ] Confirm Hasura role permissions for necessary access
Associated issues
https://github.com/cityofaustin/atd-data-tech/issues/19804
Testing
URL to test:
https://deploy-preview-1599--atd-vze-staging.netlify.app/#/crashes
Steps to test:
The first time you visit a crash page, the Record History card should be collapsed aka closed. Click the header to open the card. If you refresh or leave and go to a different crash, the card should remain open. Clicking again will close the card. If you refresh or leave and go to a different crash, the card should remain closed.
Ship list
main
branch