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 badge for empty status #784

Merged
merged 1 commit into from
Mar 2, 2024
Merged

Fix badge for empty status #784

merged 1 commit into from
Mar 2, 2024

Conversation

Cruikshanks
Copy link
Member

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

Unfortunately, we only spotted after migrating the view empty bill run page from the legacy service to this one that the status badge was wrong.

It should be styled as a grey badge (inactive) but we were displaying it as blue (info). Fixing it required adding an if/else check into 2 views which made us re-think how we were doing the bill run status badges.

So, in this change we fix the badge for empty and along the way, we add a new statusBadge() macro that moves the logic of converting bill run status into badge type to one place.

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

Unfortunately, we only spotted after [migrating the view empty bill run page](#783) from the legacy service to this one that the status badge was wrong.

It should be styled as a grey badge (inactive) but we were displaying it as blue (info). Fixing it required adding an if/else check into 2 views which made us re-think how we were doing the bill run status badges.

So, in this change we fix the badge for `empty` and along the way we add a new `statusBadge()` macro that moves the logic of converting bill run status into badge type to one place.
@Cruikshanks Cruikshanks added the bug Something isn't working label Mar 2, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 2, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review March 2, 2024 19:36
@Cruikshanks Cruikshanks merged commit 6c2d16a into main Mar 2, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-badge-for-empty-status branch March 2, 2024 19:36
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.

1 participant