Tooltip and Alert #32
Reference in New Issue
Block a user
Delete Branch "adilallo/feature/TooltipAlertComponents"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implement Alert and Tooltip Foundation Components (CR-43, CR-44)
Overview
This PR implements two foundation components from the component implementation plan: Alert (CR-43) and Tooltip (CR-44). These components serve as building blocks for future components like Modal, which will depend on Alert. Both components follow the project's container/presentation pattern and are fully integrated with the design system.
Linear Tickets:
Changes
Alert Component (
app/components/Alert/)Alert.container.tsx(logic) andAlert.view.tsx(presentation)--color-content-invert-primary,--color-content-invert-secondary, etc.)Tooltip Component (
app/components/Tooltip/)Tooltip.container.tsx(logic) andTooltip.view.tsx(presentation)Additional Changes
Icon_Pointer.svgandIcon_Close.svgtopublic/assets/lib/assetUtils.tswith new asset constantsapp/components-preview/page.tsxfor visual testingFiles Created
app/components/Alert/Alert.container.tsxapp/components/Alert/Alert.view.tsxapp/components/Alert/Alert.types.tsapp/components/Alert/index.tsxapp/components/Tooltip/Tooltip.container.tsxapp/components/Tooltip/Tooltip.view.tsxapp/components/Tooltip/Tooltip.types.tsapp/components/Tooltip/index.tsxtests/components/Alert.test.tsxtests/components/Tooltip.test.tsxstories/Alert.stories.jsstories/Tooltip.stories.jspublic/assets/Icon_Pointer.svgapp/components-preview/page.tsxScreenshots
How to Test
Storybook: Run
npm run storybookand navigate to:Preview Page: Visit
/components-previewto see both components in contextUnit Tests: Run
npm test- all 316 tests should pass including:Visual Verification:
Accessibility: Run
npm test- axe accessibility tests should passFull Test Suite: Run
./scripts/test-local.shto verify:Notes
Tooltip and Alert Componentsto Tooltip and Alert