Skip to content
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

Removeable tag update #66

Merged
merged 9 commits into from
May 22, 2024
Merged

Removeable tag update #66

merged 9 commits into from
May 22, 2024

Conversation

Swathi-eGov
Copy link
Contributor

No description provided.

Copy link
Contributor

coderabbitai bot commented May 21, 2024

Important

Review Skipped

Review was skipped due to path filters

Files ignored due to path filters (2)
  • react/ui-components/yarn-error.log is excluded by !**/*.log, !**/*.log
  • react/yarn-error.log is excluded by !**/*.log, !**/*.log

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The recent updates enhance the styling and functionality of various React components and CSS files. Key improvements include the introduction of new CSS classes, adjustments to existing styles for better responsiveness, and the addition of new props to several UI components. Additionally, minor corrections in configuration files and updates to documentation ensure consistency and clarity across the project.

Changes

Files Change Summary
react/css/README.md Updated styles for RemoveableTag to version 1.8.2-coreui.17.
react/css/src/digitv2/components/tagV2.scss Added new CSS class .digit-tag-error-container, adjusted styles for responsiveness, and refined .digit-tag and .close-icon styles.
react/example/public/index.html Updated CSS stylesheet link to version 1.8.2-coreui.17.
react/ui-components/README.md Added new props to RemoveableTag, ErrorMessage, Toast, and introduced categorySelectAllState in multiselectdropdown.
react/ui-components/src/atoms/RemoveableTag.js Added onTagClick and error props, updated logic for error handling and display.
.gitignore Added yarn-error.log to ignored files.
react/css/tailwind.config.js Corrected typo in spacer9 value from "2.25ren" to "2.25rem".
react/ui-components/.gitignore Introduced entries to ignore #ui-components directory and yarn-error.log.

🐇 In the realm of code, where changes bloom,
A tag gains style, no longer in gloom.
With errors displayed and icons that dance,
Our UI components get a new chance.
Tailwind's typo fixed, configurations neat,
This update brings harmony, a coder's treat.
🌸✨


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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 8c9ff1c and d4aec41.
Files ignored due to path filters (9)
  • react/css/package.json is excluded by !**/*.json
  • react/example/package.json is excluded by !**/*.json
  • react/modules/Project/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
  • react/ui-components/yarn-error.log is excluded by !**/*.log, !**/*.log
  • react/yarn-error.log is excluded by !**/*.log, !**/*.log
Files selected for processing (6)
  • react/css/README.md (1 hunks)
  • react/css/src/digitv2/components/tagV2.scss (5 hunks)
  • react/example/public/index.html (1 hunks)
  • react/ui-components/README.md (1 hunks)
  • react/ui-components/src/atoms/RemoveableTag.js (2 hunks)
  • react/ui-components/src/hoc/stories/RemoveableTag.stories.js (1 hunks)
Files skipped from review due to trivial changes (1)
  • react/ui-components/src/hoc/stories/RemoveableTag.stories.js
Additional comments not posted (6)
react/example/public/index.html (1)

12-12: Updated stylesheet link to version 1.8.2-coreui.16 correctly.

react/ui-components/src/atoms/RemoveableTag.js (1)

4-4: The implementation of new props onTagClick and error, and the error handling logic using ErrorMessage are correctly added and integrated within the RemoveableTag component.

Also applies to: 9-9, 14-14, 26-52, 67-68

react/css/src/digitv2/components/tagV2.scss (1)

1-4: CSS updates including new classes and adjustments to existing ones are correctly applied to enhance responsiveness and styling.

Also applies to: 20-20, 30-30, 41-47, 51-68

react/css/README.md (1)

45-45: Changelog updated correctly to reflect the new version 1.8.2-coreui.16 and the updates made to RemoveableTag styles.

react/ui-components/README.md (2)

61-61: Changelog updated correctly to reflect new features and props added to components like RemoveableTag and ErrorMessage.


Line range hint 96-124: Detailed documentation provided for the breaking changes in the Toast component, ensuring clear communication to developers about the new type prop.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (9)
react/css/README.md (5)

45-45: Update the changelog entry for 1.8.2-coreui.17 to include more specific details about the changes made to RemoveableTag styles.


Line range hint 20-20: Consider adding a comma after "DIGIT-UI's" for better readability.


Line range hint 87-87: Remove the duplicated phrase "DIGIT Core" to enhance clarity.


Line range hint 88-88: Format the URL as a Markdown link for better readability and consistency.

- Digit Core Repo (https://github.com/egovernments/Digit-Core/tree/digit-ui-core)
+ Digit Core Repo [Digit Core](https://github.com/egovernments/Digit-Core/tree/digit-ui-core)

Line range hint 92-92: Ensure the file ends with a single newline character to adhere to common coding standards.

react/ui-components/README.md (4)

61-61: Update the changelog entry for 0.0.1-beta.25 to include more specific details about the changes made to the RemoveableTag component.


Line range hint 57-57: Remove extra blank lines to improve the readability and maintain a clean document structure.

Also applies to: 105-105, 124-124


Line range hint 108-108: Format the URLs as Markdown links for better readability and consistency.

- Digit Core Repo (https://github.com/egovernments/Core-Platform/tree/digit-ui-core)
+ Digit Core Repo [Digit Core](https://github.com/egovernments/Core-Platform/tree/digit-ui-core)
- Home Page (https://unified-dev.digit.org/storybook/)
+ Home Page [Storybook](https://unified-dev.digit.org/storybook/)

Line range hint 92-92: Add blank lines around the fenced code blocks to adhere to Markdown formatting standards.

Also applies to: 96-96

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between d4aec41 and bb641b6.
Files ignored due to path filters (9)
  • react/css/package.json is excluded by !**/*.json
  • react/example/package.json is excluded by !**/*.json
  • react/modules/Project/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
  • react/ui-components/yarn-error.log is excluded by !**/*.log, !**/*.log
  • react/yarn-error.log is excluded by !**/*.log, !**/*.log
Files selected for processing (3)
  • react/css/README.md (1 hunks)
  • react/example/public/index.html (1 hunks)
  • react/ui-components/README.md (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • react/example/public/index.html
Additional Context Used
Markdownlint (19)
react/css/README.md (9)

85: Expected: 0 or 2; Actual: 1
Trailing spaces


87: Expected: 0 or 2; Actual: 1
Trailing spaces


42: Expected: 1; Actual: 0; Above
Headings should be surrounded by blank lines


83: Expected: 1; Actual: 0; Above
Headings should be surrounded by blank lines


87: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines


41: null
Fenced code blocks should be surrounded by blank lines


82: null
Fenced code blocks should be surrounded by blank lines


88: null
Bare URL used


92: null
Files should end with a single newline character

react/ui-components/README.md (10)

43: Expected: 0 or 2; Actual: 1
Trailing spaces


57: Expected: 1; Actual: 2
Multiple consecutive blank lines


105: Expected: 1; Actual: 2
Multiple consecutive blank lines


124: Expected: 1; Actual: 2
Multiple consecutive blank lines


42: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines


92: null
Fenced code blocks should be surrounded by blank lines


96: null
Fenced code blocks should be surrounded by blank lines


98: null
Fenced code blocks should be surrounded by blank lines


108: null
Bare URL used


116: null
Bare URL used

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between bb641b6 and 9100791.
Files selected for processing (2)
  • react/css/README.md (1 hunks)
  • react/ui-components/README.md (1 hunks)
Additional Context Used
Markdownlint (19)
react/css/README.md (9)

86: Expected: 0 or 2; Actual: 1
Trailing spaces


88: Expected: 0 or 2; Actual: 1
Trailing spaces


42: Expected: 1; Actual: 0; Above
Headings should be surrounded by blank lines


84: Expected: 1; Actual: 0; Above
Headings should be surrounded by blank lines


88: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines


41: null
Fenced code blocks should be surrounded by blank lines


83: null
Fenced code blocks should be surrounded by blank lines


89: null
Bare URL used


93: null
Files should end with a single newline character

react/ui-components/README.md (10)

43: Expected: 0 or 2; Actual: 1
Trailing spaces


57: Expected: 1; Actual: 2
Multiple consecutive blank lines


106: Expected: 1; Actual: 2
Multiple consecutive blank lines


125: Expected: 1; Actual: 2
Multiple consecutive blank lines


42: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines


93: null
Fenced code blocks should be surrounded by blank lines


97: null
Fenced code blocks should be surrounded by blank lines


99: null
Fenced code blocks should be surrounded by blank lines


109: null
Bare URL used


117: null
Bare URL used

Additional comments not posted (5)
react/css/README.md (1)

45-45: Update in changelog noted.

The changelog correctly reflects the update to RemoveableTag styles in version 1.8.2-coreui.17.

react/ui-components/README.md (4)

61-61: Update in changelog noted.

The changelog correctly reflects the update to RemoveableTag component to include error handling in version 0.0.1-beta.25.


61-61: Update in changelog noted.

The changelog correctly reflects the update to ErrorMessage component to include new props (showIcon, truncateMessage, maxLength) in version 0.0.1-beta.23.


61-61: Update in changelog noted.

The changelog correctly reflects the update to Toast component to consolidate type props (info, warning, error) into a single type prop in version 0.0.1-beta.22.


61-61: Update in changelog noted.

The changelog correctly reflects the addition of categorySelectAllState in the nestedmultiselect variant of multiselectdropdown in version 0.0.1-beta.21.

@Swathi-eGov Swathi-eGov force-pushed the RemoveableTag-Update branch from 9100791 to 73b4066 Compare May 22, 2024 08:35
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Outside diff range and nitpick comments (2)
react/css/README.md (1)

Line range hint 88-88: Remove duplicated phrase and correct formatting issues.

- ## Published from DIGIT Core Digit Core Repo (https://github.com/egovernments/Digit-Core/tree/digit-ui-core)
+ ## Published from DIGIT Core
+ Digit Core Repo (https://github.com/egovernments/Digit-Core/tree/digit-ui-core)
react/ui-components/README.md (1)

Line range hint 57-57: Remove excessive blank lines to improve readability.

- 
-
Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 9100791 and 7783e14.
Files selected for processing (6)
  • .gitignore (1 hunks)
  • react/css/README.md (1 hunks)
  • react/css/tailwind.config.js (1 hunks)
  • react/ui-components/.gitignore (1 hunks)
  • react/ui-components/README.md (1 hunks)
  • react/ui-components/src/atoms/RemoveableTag.js (2 hunks)
Files skipped from review due to trivial changes (3)
  • .gitignore
  • react/css/tailwind.config.js
  • react/ui-components/.gitignore
Files skipped from review as they are similar to previous changes (1)
  • react/ui-components/src/atoms/RemoveableTag.js
Additional Context Used
LanguageTool (3)
react/css/README.md (2)

Near line 20: Possible missing comma found.
Context: ...it UI's ``` ## Usage After adding the dependency make sure you have this dependency in ...


Near line 88: This phrase is duplicated. You should probably use “DIGIT Core” only once.
Context: ...ishnakole-wtt-egov] ## Published from DIGIT Core Digit Core Repo (https://github.com/egovernments/D...

react/ui-components/README.md (1)

Near line 18: Possible missing comma found.
Context: ...ssion's ``` ## Usage After adding the dependency make sure you have this dependency in ...

Markdownlint (19)
react/css/README.md (9)

86: Expected: 0 or 2; Actual: 1
Trailing spaces


88: Expected: 0 or 2; Actual: 1
Trailing spaces


42: Expected: 1; Actual: 0; Above
Headings should be surrounded by blank lines


84: Expected: 1; Actual: 0; Above
Headings should be surrounded by blank lines


88: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines


41: null
Fenced code blocks should be surrounded by blank lines


83: null
Fenced code blocks should be surrounded by blank lines


89: null
Bare URL used


93: null
Files should end with a single newline character

react/ui-components/README.md (10)

43: Expected: 0 or 2; Actual: 1
Trailing spaces


57: Expected: 1; Actual: 2
Multiple consecutive blank lines


106: Expected: 1; Actual: 2
Multiple consecutive blank lines


125: Expected: 1; Actual: 2
Multiple consecutive blank lines


42: Expected: 1; Actual: 0; Below
Headings should be surrounded by blank lines


93: null
Fenced code blocks should be surrounded by blank lines


97: null
Fenced code blocks should be surrounded by blank lines


99: null
Fenced code blocks should be surrounded by blank lines


109: null
Bare URL used


117: null
Bare URL used

Additional comments not posted (2)
react/css/README.md (1)

45-45: Changelog update correctly reflects the new RemoveableTag styles.

react/ui-components/README.md (1)

61-61: Changelog update correctly reflects the new RemoveableTag component enhancements.

@Swathi-eGov Swathi-eGov merged commit 5eb283c into develop May 22, 2024
1 check passed
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.

2 participants