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

Replace view licence contact details page #1238

Merged
merged 38 commits into from
Sep 17, 2024
Merged

Replace view licence contact details page #1238

merged 38 commits into from
Sep 17, 2024

Conversation

sujithvg
Copy link
Contributor

@sujithvg sujithvg commented Aug 7, 2024

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

Context

We recently rebuilt the legacy view licence page, implementing the new version in our shiny new codebase water-abstraction-system. Substantial changes needed to be made to support the return requirements, so this was a great opportunity to also deal with the tech debt of the legacy view licence page.
 One of the pages that is linked to from the summary tab is the view licence contacts page. If we move that into our code base, we make another small dent in moving away from the legacy code.

water-4559_legacy_page

Task
The page is currently accessed from the view licence summary tab (search for any licence on main page, select licence, summary tab will be shown).

Screenshot 2024-07-04 at 09 32 56

The task is to ‘spike’ rebuilding the page as is, but following the conventions and patterns used in water-abstraction-system.

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

Context

We recently rebuilt the legacy view licence page, implementing the new version in our shiny new codebase water-abstraction-system. Substantial changes needed to be made to support the return requirements, so this was a great opportunity to also deal with the tech debt of the legacy view licence page.

One of the pages that is linked to from the summary tab is the view licence contacts page. If we move that into our code base, we make another small dent in moving away from the legacy code.
@sujithvg sujithvg added the do not merge Used for spikes and experiments label Aug 7, 2024
@sujithvg sujithvg self-assigned this Aug 7, 2024
@Cruikshanks Cruikshanks marked this pull request as draft August 7, 2024 11:38
sujithvg and others added 6 commits August 9, 2024 17:31
This allows us to access the licence ID in the licence contact details page thus making the back link work.

We also alter the title to match the latest convention as well as ensuring the page date now includes the active nav option and page title.
@rvsiyad rvsiyad self-assigned this Sep 5, 2024
@Cruikshanks Cruikshanks removed the do not merge Used for spikes and experiments label Sep 6, 2024
@Cruikshanks Cruikshanks added the enhancement New feature or request label Sep 6, 2024
@rvsiyad rvsiyad marked this pull request as ready for review September 6, 2024 17:06
app/services/licences/fetch-licence.service.js Outdated Show resolved Hide resolved
app/services/licences/view-licence-contacts.service.js Outdated Show resolved Hide resolved
app/views/licences/licence-contact-details.njk Outdated Show resolved Hide resolved
app/views/licences/licence-contact-details.njk Outdated Show resolved Hide resolved
@rvsiyad rvsiyad merged commit fc8ec65 into main Sep 17, 2024
6 checks passed
@rvsiyad rvsiyad deleted the water-4559-2 branch September 17, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants