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

Refactor: simplify Enrollment Success templates #2776

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

angela-tran
Copy link
Member

@angela-tran angela-tran commented Mar 21, 2025

Closes #2731 and closes #2732

This PR refactors the enrollment.success view so that it uses a single template. It uses a context dictionary from the flow to provide the template with copy.

Uses the pattern introduced / noted in #2762 (comment) to reduce duplication of copy.

Testing locally

  • Run migrations - ./bin/init.sh
  • Launch the app
  • Run through CST Agency Card flow
  • Check that the Enrollment Success page looks exactly the same as before (including translations)
  • Go back and run through one of the other CST flows (i.e. a non-agency card flow)
  • Check that the Enrollment Success page looks exactly the same as before (including translations)

@angela-tran angela-tran added this to the Simplify templates milestone Mar 21, 2025
@angela-tran angela-tran self-assigned this Mar 21, 2025
@angela-tran angela-tran requested a review from a team as a code owner March 21, 2025 03:03
@github-actions github-actions bot added back-end Django views, sessions, middleware, models, migrations etc. tests Related to automated testing (unit, UI, integration, etc.) documentation [auto] Improvements or additions to documentation migrations [auto] Review for potential model changes/needed data migrations updates front-end HTML/CSS/JavaScript and Django templates deployment-dev [auto] Changes that will trigger a deploy if merged to dev labels Mar 21, 2025
Copy link

@angela-tran angela-tran marked this pull request as draft March 21, 2025 03:04
Copy link

github-actions bot commented Mar 21, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  benefits/core/models
  enrollment.py
  benefits/enrollment
  views.py
  benefits/enrollment/context
  __init__.py
  flow.py
Project Total  

This report was generated by python-coverage-comment-action

@angela-tran angela-tran marked this pull request as ready for review March 21, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end Django views, sessions, middleware, models, migrations etc. deployment-dev [auto] Changes that will trigger a deploy if merged to dev documentation [auto] Improvements or additions to documentation front-end HTML/CSS/JavaScript and Django templates migrations [auto] Review for potential model changes/needed data migrations updates tests Related to automated testing (unit, UI, integration, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify templates: Enrollment Success (Agency) Simplify templates: Enrollment Success (Agency cards)
1 participant