-
Notifications
You must be signed in to change notification settings - Fork 31
FWF-5339[feature] - v8-global-alert #844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v8-develop
Are you sure you want to change the base?
FWF-5339[feature] - v8-global-alert #844
Conversation
PR Reviewer Guide 🔍(Review updated until commit c8744f0)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to c8744f0
Previous suggestionsSuggestions up to commit b877448
|
…s-flow-ai-micro-front-ends into FWF-5339/v8-globel-alert
|
Persistent review updated to latest commit c8744f0 |
|
||
interface AlertProps { | ||
message: string; | ||
variant?: "passive" | "focus" | "error" | "warning"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Can we add the variants to enum with key in Uppercase and value in lowercase itself. Ex : PASSIVE = passive
- add it to a enum and export it from this file
This helps to import the types as well in the Alert used files , avoid mistakes with spelling and casing.
User description
Issue Tracking
JIRA: https://aottech.atlassian.net/browse/FWF-5339
Issue Type: BUG/ FEATURE
Changes
Global alert component added
#Recording
https://jam.dev/c/fc65e251-904f-467b-9dc3-d7f56e775ae3
PR Type
Enhancement
Description
Add reusable
Alert
React componentIntroduce SCSS styling for alert variants
Export
Alert
via components indexHook alert styles into global theme
Diagram Walkthrough
File Walkthrough
Alert.tsx
New reusable React Alert component
forms-flow-components/src/components/CustomComponents/Alert.tsx
Alert
functional component with props.isShowing
.index.ts
Export Alert from components index
forms-flow-components/src/components/index.ts
Alert
component from index._alert.scss
Add SCSS styles for alert component
forms-flow-theme/scss/v8-scss/_alert.scss
.custom-alert
layout and variants.index.scss
Include alert styles in theme index
forms-flow-theme/scss/index.scss
v8-scss/alert
stylesheet.