Skip to content

Sync release-3.22.0 to dev #3376

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 4 commits into from
Apr 30, 2025
Merged

Sync release-3.22.0 to dev #3376

merged 4 commits into from
Apr 30, 2025

Conversation

kagol
Copy link
Member

@kagol kagol commented Apr 30, 2025

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

  • Style

    • Increased vertical spacing in several select component demo examples for improved readability.
    • Updated option icon styles to remove specific color fill from certain icon paths.
    • Added a new CSS class to the "select all" option in multi-select dropdowns for enhanced styling.
  • Chores

    • Updated package versions for multiple packages to the latest releases.
    • Adjusted dependency version ranges for improved compatibility.
    • Added a new import mapping for a charting package in the playground environment.
  • Refactor

    • Improved internal release logic to conditionally process package directories based on their structure.

zzcr and others added 4 commits April 30, 2025 11:32
… selected item icon (#3268)

* fix(base-select): [select,base-select] fix the highlight style of the selected item icon

* feat(base-select): [base-select] modify version number
Copy link

coderabbitai bot commented Apr 30, 2025

Walkthrough

This set of changes primarily updates UI spacing and styling in Vue component demo files, adjusts package version numbers across several package.json files, and modifies package dependency specifications. There are also targeted improvements in the CLI release script to conditionally process certain packages based on directory existence. Additionally, a new import mapping is added for a charting package in the playground application, and a CSS rule is updated to refine the appearance of selected options. No significant changes to component logic or public APIs are introduced.

Changes

File(s) Change Summary
examples/sites/demos/pc/app/select/collapse-tags-composition-api.vue,
.../collapse-tags.vue
Added extra <br /> elements before the third scenario section to increase vertical spacing in the template.
examples/sites/demos/pc/app/select/multiple-mix-composition-api.vue,
.../multiple-mix.vue
Inserted two <br /> line breaks after the "multiple select readonly" form item for improved spacing in the UI.
examples/sites/package.json Updated @opentiny/vue-docs version; changed vue-i18n dependency range from caret to tilde and updated its version.
examples/sites/playground/App.vue Added an import mapping for @opentiny/vue-huicharts in the createImportMap function.
internals/cli/src/commands/release/releaseAlpha.ts Introduced needDistDirPackages array and added conditional logic to check for dist/dist3 directories before processing certain packages in releaseAlpha.
packages/theme/package.json,
packages/vue-runtime/package.json,
packages/vue/package.json,
packages/vue/src/base-select/package.json
Incremented package versions by a patch level.
packages/theme/src/option/index.less Removed the CSS fill rule for path:last-child in selected/checked option icons.
packages/vue/src/base-select/src/pc.vue Added the tiny-option_all class to the "select all" option <li> element in the dropdown.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant PlaygroundApp
  participant ImportMap
  participant CDN

  User->>PlaygroundApp: Load App.vue
  PlaygroundApp->>ImportMap: createImportMap()
  ImportMap->>CDN: Fetch @opentiny/vue-huicharts (new mapping)
  CDN-->>ImportMap: Return module URL
  ImportMap-->>PlaygroundApp: Provide import map with new entry
Loading
sequenceDiagram
  participant ReleaseScript
  participant FileSystem

  loop For each package in distLists
    ReleaseScript->>FileSystem: Check if package in needDistDirPackages
    alt Package in needDistDirPackages
      ReleaseScript->>FileSystem: Check for dist or dist3 directory
      alt Directory exists
        ReleaseScript->>ReleaseScript: Call findAllpage
      else Directory missing
        ReleaseScript-->>ReleaseScript: Skip findAllpage
      end
    else Not in needDistDirPackages
      ReleaseScript->>ReleaseScript: Call findAllpage unconditionally
    end
  end
Loading

Poem

In the garden of code where the carrots grow tall,
We’ve tidied up spacing and versioned them all.
A chart finds its map, a dropdown its class,
With styles now refined, our changes will last.
The CLI checks twice, before it proceeds,
And the rabbit’s heart hops for these diligent deeds!
🥕✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

examples/sites/demos/pc/app/select/collapse-tags-composition-api.vue

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the plugin "eslint-plugin-vue".

(The package "eslint-plugin-vue" was not found when loaded as a Node module from the directory "".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install eslint-plugin-vue@latest --save-dev

The plugin "eslint-plugin-vue" was referenced from the config file in ".eslintrc.js » @antfu/eslint-config » @antfu/eslint-config-vue".

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

examples/sites/demos/pc/app/select/collapse-tags.vue

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the plugin "eslint-plugin-vue".

(The package "eslint-plugin-vue" was not found when loaded as a Node module from the directory "".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install eslint-plugin-vue@latest --save-dev

The plugin "eslint-plugin-vue" was referenced from the config file in ".eslintrc.js » @antfu/eslint-config » @antfu/eslint-config-vue".

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

examples/sites/demos/pc/app/select/multiple-mix-composition-api.vue

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't find the plugin "eslint-plugin-vue".

(The package "eslint-plugin-vue" was not found when loaded as a Node module from the directory "".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install eslint-plugin-vue@latest --save-dev

The plugin "eslint-plugin-vue" was referenced from the config file in ".eslintrc.js » @antfu/eslint-config » @antfu/eslint-config-vue".

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

  • 4 others
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

@zzcr zzcr merged commit 7ca72cd into dev Apr 30, 2025
10 of 11 checks passed
@zzcr zzcr deleted the sync-release-3.22.0-to-dev branch April 30, 2025 03:39
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: 1

🔭 Outside diff range comments (1)
packages/vue/src/base-select/src/pc.vue (1)

458-466: 💡 Verification agent

🧩 Analysis chain

Ensure styling support for the new class
You've added the tiny-option_all class to the "select all" <li> element, which is great for targeting it separately. Please confirm that corresponding CSS rules are present (or add them) in the theme—otherwise this class won't have visual effect.

Run this to verify whether the class is styled in any .less file:


🏁 Script executed:

#!/bin/bash
# Search for tiny-option_all in theme styles
rg -n "\.tiny-option_all" packages/theme

Length of output: 159


Add Dedicated Styles for .tiny-option_all
The search shows .tiny-option_all is only mentioned in a negative selector in packages/theme/src/option/index.less (line 103), with no positive styling rules targeting it. You’ll need to add CSS rules for the new class so the “select all” option renders correctly.

• File to update:

  • packages/theme/src/option/index.less (around line 103)

• Suggested addition (example):

/* Style for the “select all” option */
.tiny-option_all {
  padding: @tiny-option-padding;
  color: @tiny-option-color;
  .tiny-option__checkbox-wrap {
    margin-right: @tiny-option-checkbox-margin;
  }
  &.hover { background: @tiny-option-hover-bg; }
  &.selected { background: @tiny-option-selected-bg; color: @tiny-option-selected-color; }
}

Adjust variables to match your theme.

🧹 Nitpick comments (2)
internals/cli/src/commands/release/releaseAlpha.ts (1)

75-75: Consider alternatives to the delete operator

Static analysis found an unrelated issue: Using the delete operator on line 75 could impact performance.

- delete PKGContent.dependencies
+ PKGContent.dependencies = undefined
examples/sites/demos/pc/app/select/collapse-tags.vue (1)

19-21: Suggest using CSS for layout spacing instead of multiple <br /> tags.

Introducing three consecutive <br /> elements can lead to bloated markup and inconsistent spacing across different browsers. Consider applying a utility or scoped class (e.g. margin-top or padding-top) to the container wrapping “场景 3” to achieve the same visual separation in a more semantic, maintainable way.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4209075 and c013fae.

📒 Files selected for processing (13)
  • examples/sites/demos/pc/app/select/collapse-tags-composition-api.vue (1 hunks)
  • examples/sites/demos/pc/app/select/collapse-tags.vue (1 hunks)
  • examples/sites/demos/pc/app/select/multiple-mix-composition-api.vue (1 hunks)
  • examples/sites/demos/pc/app/select/multiple-mix.vue (1 hunks)
  • examples/sites/package.json (2 hunks)
  • examples/sites/playground/App.vue (1 hunks)
  • internals/cli/src/commands/release/releaseAlpha.ts (2 hunks)
  • packages/theme/package.json (1 hunks)
  • packages/theme/src/option/index.less (0 hunks)
  • packages/vue-runtime/package.json (1 hunks)
  • packages/vue/package.json (1 hunks)
  • packages/vue/src/base-select/package.json (1 hunks)
  • packages/vue/src/base-select/src/pc.vue (1 hunks)
💤 Files with no reviewable changes (1)
  • packages/theme/src/option/index.less
🧰 Additional context used
🧬 Code Graph Analysis (1)
internals/cli/src/commands/release/releaseAlpha.ts (1)
internals/cli/src/commands/build/build-ui.ts (1)
  • pathFromPackages (18-18)
🪛 Biome (1.9.4)
internals/cli/src/commands/release/releaseAlpha.ts

[error] 80-81: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: PR E2E Test (pnpm test:e2e3)
🔇 Additional comments (10)
packages/vue/src/base-select/package.json (1)

4-4: Version bump aligns with core package
The @opentiny/vue-base-select version has been correctly incremented to 3.22.1, staying in lockstep with the main Vue package. No further dependency or script changes are needed here.

packages/theme/package.json (1)

4-4: Theme package version updated
The @opentiny/vue-theme version has been bumped to 3.22.1 as part of the synchronized release. This is consistent with other core packages.

packages/vue-runtime/package.json (1)

4-4: Runtime package version bump
The @opentiny/vue-runtime package version update to 3.22.1 is correct and matches the coordinated release across Vue-related packages.

internals/cli/src/commands/release/releaseAlpha.ts (1)

80-104: Improved package processing with directory existence check

This change adds a conditional check before processing packages, ensuring that findAllpage is only called for packages like 'utils', 'vue-hooks', and 'vue-runtime' if they have either a 'dist' or 'dist3' directory. This is a good defensive programming approach that prevents processing packages with missing distribution directories.

🧰 Tools
🪛 Biome (1.9.4)

[error] 80-81: Avoid the delete operator which can impact performance.

Unsafe fix: Use an undefined assignment instead.

(lint/performance/noDelete)

examples/sites/demos/pc/app/select/multiple-mix.vue (1)

13-14: Improved spacing in form layout

Adding line breaks after the multiple select field improves the visual separation between form elements, enhancing the demo's readability.

examples/sites/demos/pc/app/select/multiple-mix-composition-api.vue (1)

13-14: Improved spacing in form layout

Adding line breaks after the multiple select field improves the visual separation between form elements, enhancing the demo's readability. This change is consistent with the spacing adjustment made in the Options API version of this component.

examples/sites/demos/pc/app/select/collapse-tags-composition-api.vue (1)

19-21: Enhanced visual separation between select scenarios

Adding three additional line breaks provides better visual separation between the second and third select scenarios, making the demo easier to read and the different examples more distinct from each other.

examples/sites/package.json (2)

4-4: Verify package version bump consistency.

The "version" field was updated to 3.22.3. Please ensure this aligns with your Git tag, changelog and that all peer packages (e.g. @opentiny/vue, @opentiny/vue-theme, etc.) share the intended coordinated version.


61-61: Clarify narrowing of vue-i18n version range.

Changing from a caret (^9.1.10) to a tilde (~9.14.3) restricts upgrades to patch releases only. Was this intentional to pin to a known-good patch? If so, document the rationale in your PR description or release notes to help future maintainers.

examples/sites/playground/App.vue (1)

81-81: Approve addition of the import-mapping for @opentiny/vue-huicharts.

The new entry in createImportMap follows the same pattern used by other Tiny‐Vue packages. This will enable charting modules in the playground correctly.

@@ -1,7 +1,7 @@
{
"name": "@opentiny/vue",
"private": true,
"version": "3.22.0",
"version": "3.22.1",
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Confirm version bump to 3.22.1
The package version has been updated from 3.22.0 to 3.22.1, matching sibling packages. Ensure that your changelog or release notes include an entry for this new version.

Please run the following script to verify the changelog entry exists:


🏁 Script executed:

#!/bin/bash
# Ensure CHANGELOG entry exists for 3.22.1
fd CHANGELOG.md --exec grep -n "##\s*3\.22\.1"

Length of output: 48


🏁 Script executed:

#!/usr/bin/env bash
# Locate any changelog files in the repository
fd -I -t f '*CHANGELOG*.md'

# Search for version 3.22.1 entry in all changelog files
fd -I -t f '*CHANGELOG*.md' --exec grep -n -E '##\s*3\.22\.1' {} \;

Length of output: 690


🏁 Script executed:

#!/usr/bin/env bash
# Find any changelog markdown files
fd --glob '*CHANGELOG*.md' -t f

# Search for version 3.22.1 entries in each changelog file
for file in $(fd --glob '*CHANGELOG*.md' -t f); do
  echo "Checking $file:"
  grep -nE '##\s*3\.22\.1' "$file" || echo "  → No entry for 3.22.1 in $file"
done

Length of output: 734


Add missing CHANGELOG entry for v3.22.1
No “## 3.22.1” entry was found in any changelog. Please add a release note for this patch in the appropriate CHANGELOG.md:

• CHANGELOG.md (root)
(If you maintain a per-package changelog for vue, add it under packages/vue/CHANGELOG.md)

Example snippet to include:

## 3.22.1 – YYYY-MM-DD
- Describe the bugfixes, improvements or dependency updates included in this release.

Committable suggestion skipped: line range outside the PR's diff.

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.

3 participants