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

Add supp. billing notification to view licence #943

Merged

Conversation

jonathangoulding
Copy link
Collaborator

@jonathangoulding jonathangoulding commented Apr 25, 2024

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

The legacy view licence page we are replacing displays a notification banner if the licence is flagged for supplementary billing. It could be flagged for PRESROC, SROC or both so the message has to reflect each possible state.

So, this means we need to do the same thing in our version of the view licence page.

PRESROC notification

Screenshot 2024-04-25 at 15 16 49

SROC notification

Screenshot 2024-04-25 at 15 21 11

Both charge scheme notifications

Screenshot 2024-04-25 at 15 21 56

@jonathangoulding jonathangoulding added the enhancement New feature or request label Apr 25, 2024
@jonathangoulding
Copy link
Collaborator Author

Location of banner is assumed so will need to be reviewed by the reviewing developer.

@jonathangoulding jonathangoulding force-pushed the feature-license-page-billing-notification-banner branch 3 times, most recently from b9f9b3b to b02e83b Compare April 25, 2024 15:21
@jonathangoulding jonathangoulding marked this pull request as ready for review April 25, 2024 15:28
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

All of these requested changes are just a result of not knowing 'our ways' i.e. how @Cruikshanks likes things when he is paying attention 😬 . So, this is a ❤️ start and PR on day 2; 💪🏅!

One final thing to mention. There is no issue with using conventional commits when working on the branch.

But the first commit needs to follow our conventions and I encourage folks to use all 50 chars to make it as readable and meaningful as possible.

So, for this I'd be looking for something more like

Add supp. billing notification to view licence

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

The legacy view licence page we are replacing displays a notification banner if the licence is flagged for supplementary billing. It could be flagged for PRESROC, SROC or both so the message has to reflect each possible state.

So, this means we need to do the same thing in our version of the view licence page.

If you follow our guide, GitHub does some cool stuff

  • Your first --allow-empty commit will become your PR title and description
  • When it comes to the squash & merge, assuming you haven't strayed off-piste that initial commit message will be there to use again

Anyway, any questions or issues let me know.

.gitignore Outdated Show resolved Hide resolved
app/presenters/licences/view-licence.presenter.js Outdated Show resolved Hide resolved
app/presenters/licences/view-licence.presenter.js Outdated Show resolved Hide resolved
app/presenters/licences/view-licence.presenter.js Outdated Show resolved Hide resolved
app/presenters/licences/view-licence.presenter.js Outdated Show resolved Hide resolved
app/views/licences/view.njk Outdated Show resolved Hide resolved
test/presenters/licences/view-licence.presenter.test.js Outdated Show resolved Hide resolved
test/presenters/licences/view-licence.presenter.test.js Outdated Show resolved Hide resolved
test/presenters/licences/view-licence.presenter.test.js Outdated Show resolved Hide resolved
test/presenters/licences/view-licence.presenter.test.js Outdated Show resolved Hide resolved
https://eaflood.atlassian.net/browse/WATER-4323

The legacy view licence page we are replacing displays a notification banner if the licence is flagged for supplementary billing. It could be flagged for PRESROC, SROC or both so the message has to reflect each possible state.

So, this means we need to do the same thing in our version of the view licence page.
@jonathangoulding jonathangoulding force-pushed the feature-license-page-billing-notification-banner branch from 33e1916 to c768a3d Compare April 26, 2024 08:26
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

@jonathangoulding jonathangoulding merged commit 824a022 into main Apr 26, 2024
6 checks passed
@jonathangoulding jonathangoulding deleted the feature-license-page-billing-notification-banner branch April 26, 2024 09:56
@Cruikshanks Cruikshanks changed the title feat: add notification banner to license view Add supp. billing notification to view licence Apr 26, 2024
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.

2 participants