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

Misuv 8840 #2665

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Misuv 8840 #2665

merged 2 commits into from
Nov 28, 2024

Conversation

chandraAndem
Copy link
Contributor

No description provided.

@platops-pr-bot
Copy link

@(viewModel: ReportingFrequencyViewModel)(implicit messages: Messages, user: auth.MtdItUser[_])
@(viewModel: ReportingFrequencyViewModel)(implicit messages: Messages, user: auth.MtdItUser[_], dateService: DateServiceInterface)

@optInLink = {
Copy link
Contributor

Choose a reason for hiding this comment

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

If we can avoid usage of .get over Option and .head over List; you should be able to move this behaviour on the view model level;

@Mbrookesy Mbrookesy self-requested a review November 27, 2024 15:37
Comment on lines +67 to +71
@linkComponent(url, message = messages("reporting.frequency.manageReportingFrequency.optOut.link.generic"))
} else if (viewModel.optOutTaxYears.size == 1 && viewModel.optOutTaxYears.head == dateService.getCurrentTaxYear.nextYear) {
@linkComponent(url, message = messages("reporting.frequency.manageReportingFrequency.optOut.link.onwards", viewModel.optOutTaxYears.head.startYear.toString, viewModel.optOutTaxYears.head.endYear.toString))
} else if (viewModel.optOutTaxYears.size == 1) {
@linkComponent(url, message = messages("reporting.frequency.manageReportingFrequency.optOut.link.taxyear", viewModel.optOutTaxYears.head.startYear.toString, viewModel.optOutTaxYears.head.endYear.toString))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a consensus on what order the bullet points should be? Currently on the PR the Quarterly + Annual scenario has the Opt in to 2025-26 first with the Opt out 2024-25 second.

I'm only asking because the ticket has it the other way around, and I wasn't sure if that mattered because the whole area would be dynamic, and it may be preferred for the bullet points to be in chronological order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I think the design team has done it in an order of which ever tax year comes first. But we could double check with them if that order is mandatory before the whole page completes.

@chandraAndem chandraAndem merged commit 0ac5279 into main Nov 28, 2024
1 check passed
@chandraAndem chandraAndem deleted the MISUV-8840 branch November 28, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants