Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bill run status badge in bill runs page #945

Merged
merged 2 commits into from
Apr 26, 2024
Merged

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4445

Spotted by our vigilant QA team that we had overlooked bill runs with a status of 'cancel' and need their tag to display as 'cancelling' on the page.

This change fixes the issue.

Screenshot 2024-04-26 at 10 36 39

https://eaflood.atlassian.net/browse/WATER-4445

Spotted by our vigilant QA team that we had overlooked bill runs with a status of `'cancel'` need their tag to display as 'cancelling' un the page.

This change fixes the issue.
@Cruikshanks Cruikshanks added the bug Something isn't working label Apr 26, 2024
@Cruikshanks Cruikshanks self-assigned this Apr 26, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review April 26, 2024 09:40
Copy link
Contributor

@rvsiyad rvsiyad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Cruikshanks Cruikshanks merged commit a43329b into main Apr 26, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-cancel-status-tag branch April 26, 2024 11:33
Cruikshanks added a commit that referenced this pull request Apr 26, 2024
https://eaflood.atlassian.net/browse/WATER-4445

We just [fixed the status tag for cancelling bill runs](#945) in the bill runs page when it was spotted the text no longer matched what you see in the legacy service.

But this made us realise the same goes for `'processing'` bill runs. They should be displayed as `'building'`. Add to that, it and the tags for anything where a bill run is 'busy' doing stuff (excluding cancelling) should all be grey.

With these changes to the tags and the need to be consistent wherever they are shown, we've decided to move the logic into the macro rather than just have it in the `index-bill-runs.presenter.js`.

A further change we have made is that any bill run that is busy should not be 'clickable'. It's busy because we are in the process of changing the data for the bill run. Therefore, it doesn't make sense to let users click through and see the in progress or to-be-updated results.

So, this change also removes the link for these busy bill runs.
Cruikshanks added a commit that referenced this pull request Apr 26, 2024
https://eaflood.atlassian.net/browse/WATER-4445

We just [fixed the status tag for cancelling bill runs](#945) in the bill runs page when it was spotted the text no longer matched what you see in the legacy service.

But this made us realise the same goes for `'processing'` bill runs. They should be displayed as `'building'`. Add to that, it and the tags for anything where a bill run is 'busy' doing stuff (excluding cancelling) should all be grey.

With these changes to the tags and the need to be consistent wherever they are shown, we've decided to move the logic into the macro rather than just have it in the `index-bill-runs.presenter.js`.

A further change we have made is that any busy bill run should not be 'clickable'. It's busy because we are in the process of changing the data for the bill run. Therefore, it doesn't make sense to let users click through and see the in-progress or to-be-updated results.

So, this change also removes the link for these busy bill runs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants