Skip to content

fix: use labelTrue/labelFalse for confirm question breadcrumb labels#548

Merged
alex-gilin merged 3 commits into
SAP:mainfrom
kjose90:bug/questions-label-fix
Jul 9, 2026
Merged

fix: use labelTrue/labelFalse for confirm question breadcrumb labels#548
alex-gilin merged 3 commits into
SAP:mainfrom
kjose90:bug/questions-label-fix

Conversation

@kjose90

@kjose90 kjose90 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Problem - confirm type questions support labelTrue/labelFalse properties to customise the displayed answer text, but the breadcrumb rendering in answerUtils.js was ignoring them — always showing the hardcoded "Yes" / "No" strings regardless.

Solution - Updated getTextForAnswer to use question.labelTrue / question.labelFalse when available, falling back to "Yes" / "No" if not set.

Added example to food q generator

Screenshot 2026-06-30 at 14 13 50

@kjose90
kjose90 force-pushed the bug/questions-label-fix branch from a84768d to 8296662 Compare July 1, 2026 13:45
@kjose90
kjose90 marked this pull request as ready for review July 1, 2026 13:51
Comment thread projects/yeoman-ui/packages/frontend/src/utils/answerUtils.js Outdated
@kjose90
kjose90 requested a review from alex-gilin July 8, 2026 10:42

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

LGTM

@kjose90

kjose90 commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

@alex-gilin Thanks for approving.
Please merge when you get a chance. - tnx

@alex-gilin
alex-gilin merged commit 189cd23 into SAP:main Jul 9, 2026
4 checks passed
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