Skip to content

feat: sync release-3.17.0 to dev #1801

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

Merged
merged 20 commits into from
Jul 31, 2024
Merged

feat: sync release-3.17.0 to dev #1801

merged 20 commits into from
Jul 31, 2024

Conversation

zzcr
Copy link
Member

@zzcr zzcr commented Jul 31, 2024

PR

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our Commit Message Guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Summary by CodeRabbit

  • New Features

    • Updated version of @opentiny/vue-renderless to 3.17.6, enhancing performance and stability.
    • Enhanced Breadcrumb Item component for improved reactive behavior with dynamic separator updates.
    • Modular script in @opentiny/vue-theme for flexible file processing and improved file handling.
  • Bug Fixes

    • Various improvements in handling CSS and JS files to prevent conflicts in the tiny3 framework.
  • Chores

    • Metadata updates in package.json for better clarity and usability, including new repository and bugs sections.

zzcr and others added 19 commits June 25, 2024 23:40
* feat(drawer): [drawer] Add drag listening event

* feat(drawer): [drawer] Modify version number
* feat(vue): [button-group] add empty slot

* docs(button-group): add new api version
* fix: chart-core添加cloneDeep引入

* fix: 修改chart组件getFormatted函数判断逻辑

* fix: 更新chart-core包版本为3.17.1
* fix(popper):  fix build error in vitepress

* fix(popper):  升级版本
#1724)

* fix(grid): [grid] change custom components to tinyvue components to adapt difference theme

* Update package.json
…t lost props (#1740)

* fix(select): the input parameter of the computedDisabledTooltipcontent does not contain props

* fix(select): update version
* fix(breadcrumb): [breadcrumb] resolve delimiter issued

* fix(breadcrumb): [breadcrumb] resolve delimiter issued
#1768)

* fix(theme): when release theme, copy dist to _dist and replace cssvar's prefix name

* fix(vue-theme): update package's version
Copy link

coderabbitai bot commented Jul 31, 2024

Walkthrough

The recent changes involve version updates to two packages: @opentiny/vue-renderless and @opentiny/vue-theme, indicating minor improvements and refinements. Key enhancements include refinements to the breadcrumb component's reactivity and a more modular approach in the theme build script, allowing for better file handling. Overall, these updates provide users with improved functionality and maintainability while ensuring a responsive UI and streamlined package management.

Changes

File Path Change Summary
packages/renderless/package.json Updated version from 3.17.5 to 3.17.6, indicating minor improvements or bug fixes.
packages/renderless/src/breadcrumb-item/vue.ts Enhanced reactivity in the renderless function by adding computed, and improved handling of separator as a computed property for dynamic updates.
packages/theme/build/release.js Introduced a modular replaceFile function, expanded file processing capabilities, and added steps to copy package.json and README.md to dist.
packages/theme/package.json Updated version from 3.17.3 to 3.17.4, reorganized metadata, and refined dependencies in the build tooling.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant BreadcrumbItem
    participant ThemeBuilder

    User->>BreadcrumbItem: Request Breadcrumb
    BreadcrumbItem->>BreadcrumbItem: Compute Separator
    BreadcrumbItem->>User: Render Breadcrumb
    
    User->>ThemeBuilder: Trigger Build
    ThemeBuilder->>ThemeBuilder: Process CSS/JS Files
    ThemeBuilder->>User: Output Files
Loading

Poem

🐇 In the meadow where changes bloom,
A breadcrumb trails, dispelling gloom.
With each little tweak, the theme takes flight,
Dancing in code, oh what a sight!
Hops of joy, as we cheer and play,
For every update brings a brighter day! 🌼✨


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.
    • @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 Configuration 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

[e2e-test-warn]
The component to be tested is missing.

The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug".

Please make sure you've read our contributing guide

@zzcr zzcr changed the title Release 3.17.0 feat: sync release-3.17.0 to dev Jul 31, 2024
Copy link

@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 3aee085 and 31f71c6.

Files selected for processing (4)
  • packages/renderless/package.json (1 hunks)
  • packages/renderless/src/breadcrumb-item/vue.ts (1 hunks)
  • packages/theme/build/release.js (1 hunks)
  • packages/theme/package.json (4 hunks)
Files skipped from review due to trivial changes (2)
  • packages/renderless/package.json
  • packages/theme/package.json
Additional comments not posted (9)
packages/renderless/src/breadcrumb-item/vue.ts (3)

25-26: Enhance reactivity by including computed.

The addition of computed to the destructured ISharedRenderlessParamHooks enhances the reactivity capabilities of the function.


26-26: Streamline parameter handling by including designConfig.

The inclusion of designConfig in the destructured IBreadcrumbItemRenderlessParamUtils streamlines the parameter handling.


33-33: Improve reactivity with computed separator.

Defining the separator as a computed property allows for dynamic updates based on changes in breadcrumb or designConfig, ensuring that the UI remains responsive.

packages/theme/build/release.js (6)

10-14: Encapsulate file operations with replaceFile.

The replaceFile function encapsulates file operations into a reusable function, enhancing the modularity and maintainability of the script.


17-17: Generate lowcode.css with prefix replacement.

The replaceFile function is used to generate lowcode.css by replacing the prefix in index.css.


20-22: Copy and process files with consistent prefix replacement.

The script copies and processes multiple files, ensuring consistent prefix replacement across various file types to avoid conflicts.


24-27: Process all index.css files with prefix replacement.

The script locates all index.css files within nested directories and applies the prefix replacement uniformly.


29-36: Process JavaScript theme files with prefix replacement.

The script processes JavaScript theme files, ensuring consistent prefix replacement across both CSS and JS files.


39-40: Enhance completeness by copying package.json and README.md.

The script copies package.json and README.md files into the dist directory, enhancing the completeness of the output package.

@kagol kagol merged commit 43f7971 into dev Jul 31, 2024
7 checks 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.

8 participants