Skip to content

PPHA-749: Changed fewer to less for decreased rolling tobacco journey#426

Open
stephhou wants to merge 6 commits intomainfrom
PPHA-749-replace-fewer-with-less
Open

PPHA-749: Changed fewer to less for decreased rolling tobacco journey#426
stephhou wants to merge 6 commits intomainfrom
PPHA-749-replace-fewer-with-less

Conversation

@stephhou
Copy link
Copy Markdown
Contributor

@stephhou stephhou commented Apr 1, 2026

What is the change?

  • Updated smoking history presenter - more_or_fewer to more_or_fewer_or_less
  • Updated smoking_amount_form and smoking_frequency_form with updated function name
  • Updated tests

Why are we making this change?

To use the correct language as described in prototype v1.4

@stephhou stephhou marked this pull request as ready for review April 1, 2026 12:16
Copilot AI review requested due to automatic review settings April 1, 2026 12:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the smoking history “changed amount/frequency” copy to use “less” (instead of “fewer”) specifically for decreased rolling tobacco journeys, aligning wording with prototype v1.4.

Changes:

  • Renamed presenter helper from more_or_fewer to more_or_fewer_or_less, returning "less" for decreased rolling tobacco and "fewer" for other decreased types.
  • Updated smoking frequency/amount form labels and required error messages to use the renamed presenter method.
  • Updated unit tests and the end-to-end feature text to reflect the new wording.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lung_cancer_screening/questions/presenters/tobacco_smoking_history_presenter.py Introduces the new “more/fewer/less” wording logic with rolling-tobacco-specific decreased handling.
lung_cancer_screening/questions/forms/smoking_frequency_form.py Updates label/error-message copy to call the renamed presenter method.
lung_cancer_screening/questions/forms/smoked_amount_form.py Updates label/error-message copy to call the renamed presenter method.
lung_cancer_screening/questions/forms/smoking_change_form.py Adjusts decreased rolling-tobacco choice label to use “less than …” phrasing.
lung_cancer_screening/questions/tests/unit/presenters/test_tobacco_smoking_history_presenter.py Updates presenter tests for the renamed method and expected wording.
features/smoking_history.feature Updates cucumber steps to match the new UI text (“less” instead of “fewer”).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stephhou stephhou changed the title Changed fewer to less for decreased rolling tobacco journey PPHA-749: Changed fewer to less for decreased rolling tobacco journey Apr 1, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 2, 2026

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.

2 participants