Closed thekaveman closed 7 months ago
Starting to get into this and one immediate question that comes up:
How to override the enrollment:index
template for CalFresh?
We typically override templates by storing the name of the template to use on a particular model. Today we have:
AuthProvider
stores its sign_out_button_template
and sign_out_link_template
for defining those UI componentsEligibilityVerifier
stores the selection_label_template
and start_template
for defining the eligibility phaseTransitAgency
stores an index_template
and help_template
for its own homepage and help page, an eligibility_index_template
for the beginning of its eligibility phase, and an enrollment_success_template
for the end of its enrollment phaseI can see 3 options for how to override the enrollment:index
template:
PaymentProcessor
: I actually don't think this will work, since each agency only has a single payment processor instance, and we need this template to be specific to the flow -- including for posterityEligibilityVerifier
: this would work in the sense that we typically create a verifier per flow, but it sort of feels wrong though? Since we're talking about enrollment specifically, which is entirely outside of the eligibility phaseEligibilityType
: of the options, this is the one that makes the most sense to me. We already store some enrollment information here (e.g. group_id
and the expiry
fields), and of course this is the most specific in terms of the flow, i.e. we always have a new instance for each flow. @angela-tran am I missing any options here? Any thoughts on the above options? Can you think of another way we might want to override this template that doesn't involve a model field?
@angela-tran am I missing any options here? Any thoughts on the above options? Can you think of another way we might want to override this template that doesn't involve a model field?
I agree that it makes the most sense to store it on the EligibilityType
. Since the message is specific to the flow, our only options are either EligibilityVerifier
or EligibilityType
, and it does seem wrong to put enrollment information on the verifier.
This page will be substantially different from other flows for CalFresh eligibility.
Full page
Informational Alert component
Figma links
Enrollment index
page (Desktop)Enrollment index
page (Mobile)Acceptance Criteria
48px
64px
4px
#FFF1D0
#FDB714
#045B86
#045B86
8px
16px
16px
16px