hacs / frontend

The frontend of HACS
MIT License
154 stars 84 forks source link

Update core frontend to 4e8de1f #739

Closed ludeeus closed 5 months ago

coderabbitai[bot] commented 5 months ago
Walkthrough ## Walkthrough The updates include adding the `src/resources/polyfills` directory to the `.gitignore` file while removing it from the ignore list for `script/build`. The `homeassistant-frontend` subproject commit hash was updated. Dependencies in `package.json` were upgraded, and `merge_requirements.js` now handles polyfill files by copying and modifying them. These changes ensure improved dependency management, better handling of polyfill files, and synchronization with the latest `homeassistant-frontend` updates. ## Changes | File/Directory | Change Summary | |---------------------------------------|--------------------------------------------------------------------------------------------------| | `.gitignore` | Added `src/resources/polyfills` and removed exclusion for `script/build`. | | `homeassistant-frontend` | Updated subproject commit hash. | | `package.json` | Upgraded various dependencies including Babel plugins, TypeScript packages, ESLint plugins, and others. | | `script/merge_requirements.js` | Added functionality to copy and modify polyfill files, including `intl-polyfill.ts`. | ## Sequence Diagram(s) (Beta) ```mermaid sequenceDiagram participant Developer participant Script participant FileSystem Developer->>Script: Run merge_requirements.js Script->>FileSystem: Remove ./src/resources/polyfills Script->>FileSystem: Create ./src/resources/polyfills Script->>FileSystem: Copy polyfill files to ./src/resources/polyfills Script->>FileSystem: Read intl-polyfill.ts Script->>FileSystem: Modify path references in intl-polyfill.ts Script->>FileSystem: Write modified intl-polyfill.ts ```

Recent review details **Configuration used: CodeRabbit UI** **Review profile: ASSERTIVE**
Commits Files that changed from the base of the PR and between 814f71b65bd174eb22b5087e7b6698904c38bf61 and 663d4c769877be51e08c8a9044a262ce474960cd.
Files ignored due to path filters (1) * `yarn.lock` is excluded by `!**/*.lock`
Files selected for processing (4) * .gitignore (1 hunks) * homeassistant-frontend (1 hunks) * package.json (10 hunks) * script/merge_requirements.js (1 hunks)
Additional context used
Biome
script/merge_requirements.js
[error] 1-1: A Node.js builtin module should be imported with the node: protocol. (lint/style/useNodejsImportProtocol) Using the node: protocol is more explicit and signals that the imported module belongs to Node.js. Unsafe fix: Add the node: protocol. --- [error] 24-24: Do not use template literals if interpolation and special-character handling are not needed. (lint/style/noUnusedTemplateLiteral) Unsafe fix: Replace with string literal --- [error] 24-24: Do not use template literals if interpolation and special-character handling are not needed. (lint/style/noUnusedTemplateLiteral) Unsafe fix: Replace with string literal --- [error] 49-49: Do not use template literals if interpolation and special-character handling are not needed. (lint/style/noUnusedTemplateLiteral) Unsafe fix: Replace with string literal --- [error] 50-50: Do not use template literals if interpolation and special-character handling are not needed. (lint/style/noUnusedTemplateLiteral) Unsafe fix: Replace with string literal --- [error] 2-3: This let declares a variable that is only assigned once. (lint/style/useConst) 'rawcore' is never reassigned. Safe fix: Use const instead. --- [error] 3-4: This let declares a variable that is only assigned once. (lint/style/useConst) 'rawhacs' is never reassigned. Safe fix: Use const instead.
Additional comments not posted (6)
homeassistant-frontend (1)
`1-1`: Subproject commit hash updated to align with the main project.
.gitignore (2)
`6-6`: Added `src/resources/polyfills` to `.gitignore` to prevent tracking of polyfill files. --- `7-7`: Removed exclusion for `script/build` to ensure changes to the build script are tracked.
script/merge_requirements.js (2)
`36-46`: Adjust path references in `intl-polyfill.ts` to align with the new directory structure. --- `25-34`: Ensure proper error handling when removing and creating directories, and copying files.
package.json (1)
Line range hint `19-114`: Updated various dependencies and devDependencies to their latest versions.
--- 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 - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): > :bangbang: **IMPORTANT** > Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged. - 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.` - `@coderabbitai help me debug CodeRabbit configuration file.` 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 an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.