cal-itp / benefits

Transit benefits enrollment, minus the paperwork.
https://docs.calitp.org/benefits
GNU Affero General Public License v3.0
27 stars 9 forks source link

`Enrollment index`: Update for CalFresh #1917

Closed thekaveman closed 7 months ago

thekaveman commented 8 months ago

This page will be substantially different from other flows for CalFresh eligibility.

Full page

image

Informational Alert component

image

Figma links

Acceptance Criteria

thekaveman commented 7 months ago

Starting to get into this and one immediate question that comes up:

How to override the enrollment:index template for CalFresh?

Background

We typically override templates by storing the name of the template to use on a particular model. Today we have:

Options

I can see 3 options for how to override the enrollment:index template:

@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 commented 7 months ago

@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.