Skip to content

PTAD-239: Add LEPP tile behind feature toggle - #1072

Open
olakunlekuye2 wants to merge 8 commits into
mainfrom
PTAD-239
Open

PTAD-239: Add LEPP tile behind feature toggle#1072
olakunlekuye2 wants to merge 8 commits into
mainfrom
PTAD-239

Conversation

@olakunlekuye2

Copy link
Copy Markdown
Contributor

Implement Low Earners' Pension Payment (LEPP) tile integration with feature flag control, LEPP connector, service, and test coverage.

Implement Low Earners' Pension Payment (LEPP) tile integration with feature flag control, LEPP connector, service, and test coverage.
@platops-pr-bot

Copy link
Copy Markdown
  • uk.gov.hmrc:sca-wrapper-play-30 can be updated to 5.5.0.
  • uk.gov.hmrc:sca-wrapper-test-play-30 can be updated to 5.5.0.
  • There is a bobby warning (builds will be prevented after 06 Oct 2026) - see the pr builder for details

okuye added 2 commits August 5, 2026 16:59
…grationSpec

RLSInterruptPageSpec and other integration tests were aborting because DefaultLeppConnector
injection was failing due to missing low-earners-pensions-payment service port configuration
in the test application builder.
…ides

RLSInterruptPageSpec disables HmrcModule but needs to provide an explicit
binding for LeppConnector (now added by HmrcModule) to avoid injection conflicts.
…r external services

LEPP external URLs should use absolute localhost:7504 format (matching taxcalc-frontend,
tax-summaries-frontend pattern) for local integration testing, not relative URLs.

@owen-gilfellon owen-gilfellon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think something might have got mixed up when resolving a merge conflict - lots of recent changes being undone!

Suggested some changes for the way the config is specified too, to fit in with standard patterns

Comment thread conf/application.conf
port = 9331
timeoutInMilliseconds = 500
}
low-earners-pensions-payment {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also define a low-earners-pensions-payment-frontend, with port 7503

Comment thread conf/application.conf Outdated
url = "https://www.gov.uk/government/publications/extension-of-making-tax-digital-for-income-tax-self-assessment-to-sole-traders-and-landlords/making-tax-digital-for-income-tax-self-assessment-for-sole-traders-and-landlords"
}
low-earners-pensions-payment {
start = "http://localhost:7504/accept-your-low-earners-pension-payment/start"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Instead of specifying the URL here, add it to ConfigDecorator using the config already specified under micro services... e.g. for tax calc it does:

private lazy val taxCalcFrontendService = servicesConfig.baseUrl("taxcalc-frontend")
lazy val taxCalcPartialLinkUrl = s"$taxCalcFrontendService/tax-you-paid/summary-card-partials"

Follows standard pattern for PTA, and means we just need to update the base URL in each environment's config

Comment thread conf/application.conf Outdated
}
low-earners-pensions-payment {
start = "http://localhost:7504/accept-your-low-earners-pension-payment/start"
payments = "http://localhost:7504/accept-your-low-earners-pension-payment/payments"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

URL is in the LEPP frontend, so for the links, you'll want to define and use a low-earners-pensions-payment-frontend micro service (these links should be using port 7503)

Comment thread conf/messages Outdated

label.self_assessment=Self Assessment
label.mtd_for_itsa=Self Assessment and Making Tax Digital for Income Tax
label.mtd_for_itsa=Making Tax Digital for Income Tax and Self Assessment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should be Self Assessment and Making Tax Digital for Income Tax?

Comment thread conf/messages Outdated
label.view_manage_your_mtd_for_it=View and manage Making Tax Digital for Income Tax
label.view_manage_your_mtd_itsa=View and manage your Making Tax Digital for Income Tax or access your Self Assessment tax returns.
label.view_manage_your_mtd_it=View and manage Making Tax Digital for Income Tax and access Self Assessment.
label.view_manage_your_mtd_it=View and manage Making Tax Digital for Income Tax, and access Self Assessment.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this correct?

Comment thread conf/messages
label.access_your_self_assessment=Access your Self Assessment

title.signed_in_wrong_account.h1=You are not signed in to the right account
title.signed_in_wrong_account.stop=You are not signed in to the right account.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes unrelated to ticket - is this correct?

Comment thread conf/messages.cy Outdated

ptap.support.tab.card.hmrc.online.link.understanding.account=Deall eich Cyfrif Treth Personol
ptap.support.tab.card.hmrc.online.link.understanding.account.url=/personal-account/support/understanding-your-account
ptap.support.tab.card.hmrc.online.link.understanding.account.url=https://www.gov.uk/mewngofnodi-cofrestru-gwasanaethau-ar-lein-cthef

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is incorrect - introducing regressions. Remove any changes unrelated to PTAD-239

}

"return combined MTD/SA tile in myServices for activated online filer with HMRC-MTD-IT when redesign is true" in {
implicit val request: UserRequest[AnyContent] =

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Removing unrelated tests?

document.select("div.hmrc-card p.govuk-hint").text() mustBe "PAYE hint text"
}

"render combined Self Assessment and MTD supporting text in the tabular redesign" in {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove changes unrelated to PTAD-239

gaLabel = Some("Child Benefit"),
id = Some("child-benefit"),
hintText = Option.when(isRedesign)(messages("label.get_help_with_the_cost_of_bringing_up_children"))
hintText = redesignHint(isRedesign, messages("label.get_help_with_the_cost_of_bringing_up_children"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lots of unrelated changes

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