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 'busy' tags in bill runs page #946

Merged
merged 7 commits into from
Apr 26, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Apr 26, 2024

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

We just fixed the status tag for cancelling bill runs 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.

Screenshot 2024-04-26 at 13 18 08

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 Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Apr 26, 2024
@Cruikshanks Cruikshanks self-assigned this Apr 26, 2024
@Cruikshanks Cruikshanks requested a review from rvsiyad April 26, 2024 12:48
@Cruikshanks Cruikshanks marked this pull request as ready for review April 26, 2024 12:49
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.

LGTM

@Cruikshanks Cruikshanks merged commit aaf6a2f into main Apr 26, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-bill-run-building-tags branch April 26, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants