-
Notifications
You must be signed in to change notification settings - Fork 4
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
added shpicon in customsvgs #136
Conversation
WalkthroughThe changes in this pull request involve updating the linked CSS stylesheet version from Changes
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 2
🧹 Outside diff range and nitpick comments (1)
react/ui-components/src/atoms/CustomSVG.js (1)
3-13
: LGTM with suggestions for improvementThe
ShpIcon
component is implemented correctly and follows React best practices. However, consider the following improvements:
- Extract the base64-encoded image data to a separate file or use an external image source for better maintainability.
- Add PropTypes for type checking the
className
prop.Example of adding PropTypes:
import PropTypes from 'prop-types'; // ... component implementation ... ShpIcon.propTypes = { className: PropTypes.string };
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (6)
react/css/package.json
is excluded by!**/*.json
react/example/package.json
is excluded by!**/*.json
react/modules/core/package.json
is excluded by!**/*.json
react/modules/sample/package.json
is excluded by!**/*.json
react/package.json
is excluded by!**/*.json
react/ui-components/package.json
is excluded by!**/*.json
📒 Files selected for processing (5)
- react/example/public/index.html (1 hunks)
- react/ui-components/.storybook/preview-head.html (1 hunks)
- react/ui-components/public/index.html (1 hunks)
- react/ui-components/src/atoms/CustomSVG.js (2 hunks)
- react/ui-components/src/molecules/stories/BottomSheet.stories.js (1 hunks)
✅ Files skipped from review due to trivial changes (2)
- react/ui-components/.storybook/preview-head.html
- react/ui-components/public/index.html
🧰 Additional context used
🔇 Additional comments (6)
react/example/public/index.html (1)
12-12
: CSS version update looks good, but verify compatibility.The update of the CSS version from
0.0.2-beta.37
to0.0.2-beta.38
seems correct. This change likely introduces new styles or fixes for the DIGIT UI components.To ensure this change doesn't introduce any breaking changes or inconsistencies, please:
- Verify that this version update is consistent across all files in the project.
- Check the changelog for
@egovernments/digit-ui-components-css
to understand what changes are introduced in this version.- Test the application thoroughly to ensure no visual regressions or unexpected behavior.
Run the following script to check for consistency across the project:
This script will help identify any inconsistencies in the CSS version across the project.
✅ Verification successful
CSS version update is consistent across the project.
All instances of
@egovernments/digit-ui-components-css
have been successfully updated to version0.0.2-beta.38
, ensuring consistency throughout the project.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check for consistency of CSS version across HTML files # Test: Search for occurrences of digit-ui-components-css version echo "Searching for digit-ui-components-css versions:" rg --type html "digit-ui-components-css@[0-9]+\.[0-9]+\.[0-9]+-beta\.[0-9]+" echo "Verifying consistency:" rg --type html "digit-ui-components-css@0\.0\.2-beta\.38" | wc -lLength of output: 593
react/ui-components/src/molecules/stories/BottomSheet.stories.js (4)
1-27
: LGTM: Imports and Storybook configuration are well-structured.The imports are appropriate for the BottomSheet component stories. The Storybook configuration in the default export is comprehensive, covering all necessary props with proper control types.
29-37
: LGTM: Template and commonArgs are well-defined.The Template function and commonArgs object follow best practices for Storybook stories. This setup promotes consistency across stories and reduces code duplication.
61-94
: LGTM: Basic state stories are well-structured and comprehensive.The stories for different BottomSheet states (Closed, Fixed, Quarter, Intermediate, and Full) are implemented consistently and cover all possible initial states. The use of
Template.bind({})
and spreadingcommonArgs
promotes code reuse and maintainability.
96-139
: LGTM: Stories with actions are comprehensive and consistent.The stories for BottomSheet states with actions enabled are well-implemented. They maintain consistency with the basic state stories while adding the
enableActions
prop andactions
array. This set of stories ensures good coverage of the component's functionality with actions.react/ui-components/src/atoms/CustomSVG.js (1)
3564-3565
: LGTM: Correct export of the new componentThe
ShpIcon
component is correctly added to the existing export object, maintaining consistency with other components in the file.
add svgs only into svg library |
* Update README.md * added build config for storybook flutter * Update build-config.yml * updated the color library with the new colors * updated the typography library and added a separate typography for buttons * based on the updated color and typography updated the digit theme library * modify the screen view based on the aspect ratio rather than constant value * modify constant file * updated the existing components based on the library update * updated example package to show the latest changes * Feat: added storybook package for creation and testing of components * added build configuration and docker file for storybook * added timeline component for flutter * added stepper component for flutter * file upload component with all variants * info button component * some alignment and icon error fixes * added constant spacer file to define space everywhere * added localization configurations and clean up some large files * remove unused dependency * fixed import and export files * updated current version of package * updated current version of package * updated current version of package * change the reactive custom field name * fixed issues related to dropdown width * dropdwon issues fixes * dropdown overlay issue fix * issues fixes * removed the required controller to make it nullable also * added info button inside the story book * updated overrides files * removed unused imports * added action and pop up with stories * updated chip component * added override dependencies from git * added panel and panel card and divider atom * code refactoring and updated example file * added focus props in text field * updated localisation * Revert "updated localisation" This reverts commit c8584cd. * fixed label typography for chip * fix the error for web only files * integrating pop to image upload * fixed issues related to upload pop up * started with theme extension * added theme extension for action card * changes override file for build * added bread crumbs, back button, header and footer component and stories * added action card and back button theme * added reverse direction for checkbox * theme updates for panel card * timeline molecule * uploader fixes * uploader fixes * pop up theme updated * pop up theme updated * added animated icon for alert pop up * header and footer * bug fixes for cards * footer overlay dropdown issue * added table molecule * updated the user type fetch logic * updated versions * resolved version issue * resolved version issue * added flex parameter to the value pair list * Dpg 2312 (#110) * added switch and bottomsheet components * updated versions * added review changes * added flex parameter to the value pair list * added flex parameter to the value pair list * added a max line for toast and added focus node for textfield also * added accordian switch and bottom sheet * added accordian switch and bottom sheet * added color property to override suffix icon color * adding code view plugin to storybook * added code preview for these component in story * fixed some css color related issues of old components * Svg accordion sidebar updates (#111) * added accordion * updated sidebar * updated svgs * updated versions * fixed css issue * updated switch and bottom sheet * updated tab component * added switch theme * fixing toast issue and typography issue * fixed mobilesidebar issue * updated sidebar and added accordion wrapper * updated mobilesidebar css * updated sidebar and added accordion wrapper (#115) * updated sidebar and added accordion wrapper * updated mobilesidebar css * fixed sidebar issue * updated mobilesidebar * updated sidebar and hambuger * added dark theme * added localization * updated tooltip with header and description * updating localization * updating localization * added bottomsheet with its draggable functionality * Added Accordion Animation * added landingpagecard and wrapper components * added menucard and its wrapper components * sidebar-changes * updated versions * updated stories * topbar height update * Selection card update (#124) * updated selectioncard * updated versions * css issue fix-updated css version for components (#125) * updated dependencies of ui component library * updated versions * build * rename same animation name (#127) * rename same animation name * version update --------- Co-authored-by: NabeelAyubee <nayubi7@gmail.com> * React component changes (#126) * added tab component * added search functionality for multiselectdropdown * updated landingpagecard * added hover state for menucard * updated stepper * updated preselected label color for radio btns * added stories for color and spacers * updated sidebar * enhancements * uodated versions * review changes * added long text stories * default value for allowMultipleOpen * updated versions * updated tab styles * updated animation name * added review changes * updated version * updated git comments * updated table component * updated matrix card * updated menu card * updated override file * Component enhancements react (#129) * added configuration to remove close icon in chip * added chipsKey as configuration for dropdown chips * fixes * updated versions * updated override file * updated landing page card and selection card story * updated landing page card and selection card story * fixed table issues * fixed table issues * updated util function * updated selection card and landing page card * added otpinput and css changes for landingpagecard (#130) * updated selection card and landing page card * updated selection card and landing page card * resolved code-rabbit comments * updated tooltip component * fixed file upload issue * adding form card component * added filter card component * updated table and filter card component * updated slider component * adding localisation for info * Table molecule (#131) * added table molecule * updated versions * review changes * updated typography * added review changes * updated breadcrumb * updated otpinput * updated accordion * added intermediate state for checkbox * updated icon css in hamburger * added metric card component * updated table molecule props * added accessor for headerData * updated formcard * added review changes * ui components version update * updated table component * updated table component * updated table component * updated slider, form card and divider component * updated slider, form card and divider component * New react components (#133) * added nestedTable, filtercard and formcards * updated versions * updated stories (#134) * updated flutter version * added foundation library to storybook * added iframe widget * Added MaterialUI Icons,Updated Colors and Spacers Stories (#135) * Added MaterialUI Icons,Updated Colors and Spacers Stories * removed material icons dependency * added shpicon in customsvgs (#136) * added shpicon in customsvgs * removed shpicon * updated pr comments * modified iframe widget * updated radio story * updated current branch with develop * updated button, alert card and back button stories * updated code rabbit comments * updated style prop and added chip shadow (#138) * updated lable value field story, selection card story and switch story * updated lable value field story, selection card story and switch story * added manual pagination (#140) * added manual pagination * added mdmsv2 handling in Customdrodpown * updated timeline molecule and atom, added one more state as failure * updated timeline molecule and language page card story * storybook audit fixes for typography,hamburger and sidebar (#142) * storybook audit fixes for typography,hamburger and sidebar * updated breadcrumb * updated breadcrumb story * updated isLast function * fixed build issue * fixed timeline step not showing issue * Build component issue check(#145) * storybook fixes (#146) * storybook fixes * Update react/ui-components/src/atoms/stories/Accordion.stories.js Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * build issue fix (#147) * build issue fix * updated components version * updated paste and backspace logic for OTP Input (#148) * added support for external link navigation (#149) * added support for external link navigation * Fixed Navigation redirection for landing page card if it is an external url. * added privacy component * added initial visible elements as a prop in timeline (#150) * added the changes of the id for every field * revert back the librraies version * Update package.json * Updated privacy policy component * Updated Package version to 0.0.2-dev.2 * reverting to original libraries version (#154) * Updated loader component * updated dependency versions * updated dependency versions * updated dependency versions * updated dependency versions * updated lottie versions * removed required from back button label * changed custom popup return type from bool to dynamic * updated label max char condition * updated stories, added docs story for all components, added loader co… (#156) * updated stories, added docs story for all components, added loader component * updated title * added Iframe component * updated label and menu card * DUCE-206 : updated react, axios,react-query and hookform but CSS is giving issue WIP * UCEM-211 : Updated the changes for tanstack and taken the recent changes from the digit-frontend library (#166) * DUCE-211 : updated the version of libraries and core in external package and updated changelogs --------- Co-authored-by: Jagankumar <53823168+jagankumar-egov@users.noreply.github.com> Co-authored-by: rachana-egov <rachana.singh@egovernment.org> Co-authored-by: Naveen J <83631045+naveen-egov@users.noreply.github.com> Co-authored-by: rachana-egov <137176770+rachana-egov@users.noreply.github.com> Co-authored-by: Swathi-eGov <137176788+Swathi-eGov@users.noreply.github.com> Co-authored-by: Swathi-eGov <swathi.chatrathi@egovernments.org> Co-authored-by: nabeelmd-eGov <nabeel.md@egovernments.org> Co-authored-by: NabeelAyubee <nayubi7@gmail.com> Co-authored-by: Nipun Arora <aroranipun1@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
No description provided.