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 missing view licence returns status tags #1110

Merged
merged 6 commits into from
Jun 16, 2024
Merged

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Jun 16, 2024

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

We are replacing the legacy view licence page with a new one. That means we needed to recreate the returns tab, though with some improvements to the display.

However, further testing has shown we've missed some of the possible statuses, specifically void and received. Plus, we were automatically converting due to overdue when this should only be if the due date has passed.

This change fixes the logic for the return statuses. While we are at it, we added a new macro for handling the display of the tag to keep things consistent with how we show tags in other areas of the app.

Before

before

After

after

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

We are replacing the legacy view licence page with a new one. That means we needed to recreate the returns tab, though with some improvements to the display.

However, further testing has shown we've missed some of the possible status, specifically `void` and `received`. Plus we were automatically converting `due` to `overdue` when this should only be if the due date has been passed.

This change fixes the logic for the return statuses. Whilst we are at it we add a new macro for handling display the tag to keep things consistent with how we show tags in other areas of the app.
@Cruikshanks Cruikshanks added the bug Something isn't working label Jun 16, 2024
@Cruikshanks Cruikshanks self-assigned this Jun 16, 2024
@Cruikshanks Cruikshanks force-pushed the fix-missing-return-tags branch from c2ce9f4 to 338840e Compare June 16, 2024 11:18
@Cruikshanks Cruikshanks marked this pull request as ready for review June 16, 2024 11:23
@Cruikshanks Cruikshanks merged commit c6ee83f into main Jun 16, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-missing-return-tags branch June 16, 2024 11:24
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