Skip to content

feat(outcomechip): add contextual help popover for first-time users (Closes #751) - #875

Open
waterWang wants to merge 1 commit into
Predictify-org:mainfrom
waterWang:feat/outcomechip-contextual-help-751
Open

feat(outcomechip): add contextual help popover for first-time users (Closes #751)#875
waterWang wants to merge 1 commit into
Predictify-org:mainfrom
waterWang:feat/outcomechip-contextual-help-751

Conversation

@waterWang

Copy link
Copy Markdown

Adds optional helpContent prop to OutcomeChip that renders a MechanicHelp popover with contextual information about the outcome metric/field, helping first-time users understand what they're selecting.

Changes:

  • OutcomeChip.tsx: Added helpContent: MechanicHelpContent prop + help icon wired to stopPropagation so clicking help does not trigger chip onSelect
  • OutcomeChip.test.tsx: 3 new tests — help button renders with helpContent, omitted without, and stopPropagation on click

Accessibility: Help button has aria-label and is keyboard focusable. Tooltip + popover/drawer pair follows WCAG 2.1 AA.

Closes #751

Adds optional helpContent prop to OutcomeChip that renders a MechanicHelp
popover with contextual information about the outcome metric/field.

- New helpContent prop accepts MechanicHelpContent (type from MechanicHelp)
- Help icon embedded in the chip with stopPropagation to prevent onSelect
- Responsive: uses MechanicHelp's built-in desktop popover + mobile drawer
- WCAG 2.1 AA: help button has aria-label, keyboard accessible
- New tests: help button renders/omits, stopPropagation on click

Closes Predictify-org#751
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

@waterWang is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add contextual help popover on OutcomeChip [b#017]

1 participant