Skip to content

feat(search): show a stated scope choice the answer left out - #404

Open
jm-rivera wants to merge 1 commit into
devfrom
feat/stated-choice-note
Open

jm-rivera wants to merge 1 commit into
devfrom
feat/stated-choice-note

Conversation

@jm-rivera

Copy link
Copy Markdown
Contributor

The results page's "About this answer" panel shows Search's stated_choice_not_applied warning, which a fresh answer raises when it leaves out a scope choice the question's words stated.

Changes

  • resultNotes.ABOUT_WARNING_CODES names the code, and aboutAnswerNotes gathers each warning's message once per part as statedChoices.
  • WhyPanel lists them under "Keep in mind".

Testing: resultNotes.test.ts passes (31), with eslint, tsc --noEmit and prettier clean on the changed files.

The "About this answer" panel lists each `stated_choice_not_applied`
warning's message once per part, under "Keep in mind", beside the other
notes `resultNotes.ABOUT_WARNING_CODES` names. Search raises the warning
when a fresh answer leaves out a scope choice the question's words
stated.

This branch has not been deployed

No deployments
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.

1 participant