Skip to content

Conversation

@weareoutman
Copy link
Member

@weareoutman weareoutman commented Feb 18, 2025

依赖检查

组件之间的依赖声明,是微服务组件架构下的重要信息,请确保其正确性。

请勾选以下两组选项其中之一:

  • 本次 MR 没有使用上游组件(例如框架、后台组件等)的较新版本提供的特性。

或者:

  • 本次 MR 使用了上游组件(例如框架、后台组件等)的较新版本提供的特性。
  • 在对应的文件中更新了该上游组件的依赖版本(或确认了当前声明的依赖版本已包含本次 MR 使用的新特性)。

提交信息检查

Git 提交信息将决定包的版本发布及自动生成的 CHANGELOG,请检查工作内容与提交信息是否相符,并在以下每组选项中都依次确认。

破坏性变更是针对于下游使用者而言,可以通过本次改动对下游使用者的影响来识别变更类型:

  • 下游使用者不做任何改动,仍可以正常工作时,那么它属于普通变更。
  • 反之,下游使用者不做改动就无法正常工作时,那么它属于破坏性变更。

例如,构件修改了一个属性名,小产品 Storyboard 中需要使用新属性名才能工作,那么它就是破坏性变更。
又例如,构件还没有任何下游使用者,那么它的任何变更都是普通变更。

破坏性变更:

  • ⚠️ 本次 MR 包含破坏性变更的提交,请继续确认以下所有选项:
  • 没有更好的兼容方案,必须做破坏性变更。
  • 使用了 feat 作为提交类型。
  • 标注了 BREAKING CHANGE: 你的变更说明
  • 同时更新了本仓库中所有下游使用者的调用。
  • 同时更新了本仓库中所有下游使用者对该子包的依赖为即将发布的 major 版本。
  • 同时为其它仓库的 Migrating 做好了准备,例如文档或批量改动的方法。
  • 手动验证过破坏性变更在 Migrate 后可以正常工作。
  • 破坏性变更所在的提交没有意外携带其它子包的改动。

新特性:

  • 本次 MR 包含新特性的提交,且该提交不带有破坏性变更,并使用了 feat 作为提交类型。
  • 给新特性添加了单元测试。
  • 手动验证过新特性可以正常工作。

问题修复:

  • 本次 MR 包含问题修复的提交,且该提交不带有新特性或破坏性变更,并使用了 fix 作为提交类型。
  • 给问题修复添加了单元测试。
  • 手动验证过问题修复得到解决。

杂项工作:

即所有对下游使用者无任何影响、且没有必要显示在 CHANGELOG 中的改动,例如修改注释、测试用例、开发文档等:

  • 本次 MR 包含杂项工作的提交,且该提交不带有问题修复、新特性或破坏性变更,并使用了 chore, docs, test 等作为提交类型。

Summary by CodeRabbit

  • 新功能

    • 新增卡片容器组件,支持灵活的插槽布局以展示头像、标题、描述和页脚等内容。
    • 头像组件现支持自定义颜色和背景色,提供更多展示选择。
    • 在组件库配置中增加了卡片容器,提高了可用组件范围。
  • 文档

    • 新增“卡片项容器”文档及示例配置,帮助用户快速了解和使用该组件。
  • 样式

    • 优化了卡片容器和链接的样式,改善了交互体验。

@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2025

Walkthrough

此次更新新增了 eo-card-box 组件相关的文档、React 实现、测试用例、样式定义及配置扩展,同时对 EoAvatar 组件添加了 color 与 bgColor 属性,并调整了部分模块的导入顺序和 link 组件的样式选择器。

Changes

文件 更改摘要
bricks/basic/docs/eo-card-box.md
bricks/basic/src/card-box/index.tsx
bricks/basic/src/card-box/index.spec.tsx
bricks/basic/src/card-box/styles.shadow.css
bricks/basic/src/bootstrap.ts
shared/common-bricks/common-bricks.json
新增卡片项容器功能模块:新增文档说明(“卡片项容器”及示例 YAML 配置)、React 组件实现(CardBox 组件及相关接口)、测试用例、样式定义和通过 bootstrap 与 JSON 配置扩展 basic 组件列表
bricks/basic/src/avatar/index.tsx 为 EoAvatar 组件增加可选属性 colorbgColor,更新了解构、样式条件判断及 showName 属性处理
bricks/basic/src/base-bricks.ts 调整模块导入顺序,重新排列 ./tooltip/index.js./button/index.js 的引入位置
bricks/basic/src/link/link.shadow.css 修改 .plain 类定义(移除 !important),调整 .link:hover.link:active 选择器以排除 .plain 类,从而更新样式继承逻辑

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>, 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. (Beta)
  • @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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 10 changed files in this pull request and generated 1 comment.

Files not reviewed (5)
  • bricks/basic/src/card-box/host-context.css: Language not supported
  • bricks/basic/src/card-box/styles.shadow.css: Language not supported
  • bricks/basic/src/link/link.shadow.css: Language not supported
  • shared/common-bricks/common-bricks.json: Language not supported
  • bricks/basic/src/bootstrap.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)

bricks/basic/src/avatar/index.tsx:137

  • The prop 'showName' is inconsistently renamed to 'propShowName' in the destructuring assignment. It should be consistently named 'showName' throughout the code.
showName: propShowName,

@codecov
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 96.96970% with 1 line in your changes missing coverage. Please review.

Project coverage is 90.53%. Comparing base (d0ff0ef) to head (918196a).

Files with missing lines Patch % Lines
bricks/basic/src/card-box/index.tsx 96.87% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1488      +/-   ##
==========================================
+ Coverage   90.46%   90.53%   +0.06%     
==========================================
  Files         124      125       +1     
  Lines        2768     2799      +31     
  Branches      379      383       +4     
==========================================
+ Hits         2504     2534      +30     
  Misses        170      170              
- Partials       94       95       +1     
Files with missing lines Coverage Δ
bricks/basic/src/avatar/index.tsx 100.00% <100.00%> (ø)
bricks/basic/src/card-box/index.tsx 96.87% <96.87%> (ø)

@github-actions
Copy link

github-actions bot commented Feb 18, 2025

@github-actions github-actions bot temporarily deployed to pull request February 18, 2025 10:28 Inactive
coderabbitai[bot]

This comment was marked as outdated.

@github-actions
Copy link

github-actions bot commented Feb 18, 2025

📐🤏 Size check result (d0ff0ef...0d45ce5):

See full diff

Load all bricks together

Name Prev Now Diff
All bricks 4,336.27 KB 4,339.99 KB 🔺 +3.72 KB

Critical changes:

Name Prev Now Diff
basic 155.95 KB 158.12 KB 🔺 +2.17 KB
diagram 174.37 KB 175.91 KB 🔺 +1.54 KB
See full changes
Name Prev Now Diff
<core> 311.38 KB 311.38 KB 🟰
advanced 515.19 KB 515.19 KB 🟰
ai 285.2 KB 285.16 KB
api-market 10.56 KB 10.56 KB 🟰
basic 155.95 KB 158.12 KB 🔺 +2.17 KB
containers 95.05 KB 95.05 KB 🟰
data-view 639.78 KB 639.73 KB
diagram 174.37 KB 175.91 KB 🔺 +1.54 KB
form 321.99 KB 322 KB
form-platform 12.57 KB 12.57 KB 🟰
icons 64.11 KB 64.11 KB 🟰
illustrations 17.31 KB 17.31 KB 🟰
inject 56.22 KB 56.22 KB 🟰
markdown 248.92 KB 248.92 KB 🟰
mini-chart 10.61 KB 10.61 KB 🟰
nav 121.37 KB 121.37 KB 🟰
presentational 134.41 KB 134.41 KB 🟰
recent-history 32.53 KB 32.53 KB 🟰
shoelace 185.58 KB 185.54 KB
visual-builder 415.81 KB 415.9 KB
vs 838.74 KB 838.76 KB

Load bricks by each package

Critical changes:

Name Prev Now Diff
advanced 824.72 KB 825.73 KB 🔺 +1.01 KB
basic 355.84 KB 357.97 KB 🔺 +2.13 KB
diagram 257.72 KB 259.3 KB 🔺 +1.58 KB
See full changes
Name Prev Now Diff
advanced 824.72 KB 825.73 KB 🔺 +1.01 KB
ai 580.93 KB 580.93 KB 🟰
api-market 319.09 KB 319.11 KB
basic 355.84 KB 357.97 KB 🔺 +2.13 KB
containers 249.57 KB 249.59 KB
data-view 794.96 KB 794.99 KB
diagram 257.72 KB 259.3 KB 🔺 +1.58 KB
form 609.06 KB 609.08 KB
form-platform 301.02 KB 301.04 KB
icons 121.81 KB 121.81 KB 🟰
illustrations 141.62 KB 141.64 KB
inject 56.22 KB 56.22 KB 🟰
markdown 443.56 KB 443.59 KB
mini-chart 76.29 KB 76.29 KB 🟰
nav 463.06 KB 463.04 KB
presentational 430.14 KB 430.17 KB
recent-history 300.42 KB 300.45 KB
shoelace 185.58 KB 185.54 KB
visual-builder 1,588.35 KB 1,588.39 KB
vs 1,121.75 KB 1,121.76 KB
widget-editors 0 KB 0 KB 🟰
Critical details for package advanced
Name Prev Now Diff
<self> 515.19 KB 515.22 KB
basic 104.2 KB 97.16 KB 🟢 -7.04 KB
form 33.07 KB 41.09 KB 🔺 +8.02 KB
Critical details for package basic
Name Prev Now Diff
<self> 155.95 KB 158.12 KB 🔺 +2.17 KB
shoelace 109.17 KB 109.14 KB
Critical details for package diagram
Name Prev Now Diff
<self> 180.95 KB 182.51 KB 🔺 +1.56 KB
basic 23.16 KB 23.18 KB

Load by each brick

Critical changes:

Name Prev Now Diff
eo-auto-complete 146.27 KB 200.63 KB 🔺 +54.36 KB
eo-checkbox 210.12 KB 155.76 KB 🟢 -54.36 KB
eo-date-picker 335.1 KB 280.74 KB 🟢 -54.36 KB
eo-display-canvas 213.31 KB 214.85 KB 🔺 +1.54 KB
eo-draw-canvas 233.31 KB 234.87 KB 🔺 +1.56 KB
eo-input 194.62 KB 140.26 KB 🟢 -54.36 KB
eo-radio 149.41 KB 203.77 KB 🔺 +54.36 KB
eo-time-range-picker 279.98 KB 334.34 KB 🔺 +54.36 KB
form.general-input 140.26 KB 194.62 KB 🔺 +54.36 KB
form.general-radio 203.77 KB 149.41 KB 🟢 -54.36 KB
form.general-switch 199.97 KB 145.62 KB 🟢 -54.35 KB
visual-builder.contract-select 166.67 KB 168.29 KB 🔺 +1.62 KB
See full changes
Name Prev Now Diff
advanced.capture-snapshot 52.37 KB 52.37 KB 🟰
advanced.general-cascader 266.86 KB 266.86 KB 🟰
advanced.general-table 378.2 KB 378.2 KB 🟰
advanced.pdf-viewer 199.19 KB 199.17 KB
ai.chat-agent 67.79 KB 67.79 KB 🟰
ai.chat-view 576.19 KB 576.21 KB
api-market.apis-directory-tree 319.09 KB 319.11 KB
basic.active-element-blur 8.58 KB 8.6 KB
basic.change-language 8.57 KB 8.59 KB
basic.copy-to-clipboard 8.74 KB 8.76 KB
basic.dropdown-button 269.39 KB 269.42 KB
basic.general-button 150.45 KB 150.48 KB
basic.general-image 146.43 KB 146.45 KB
basic.general-link 256.68 KB 256.7 KB
basic.general-menu 78.41 KB 78.43 KB
basic.general-menu-item 142.8 KB 142.82 KB
basic.general-popover 186.48 KB 186.5 KB
basic.general-tag 144.74 KB 144.76 KB
basic.general-tag-list 146.85 KB 146.87 KB
basic.general-text 285.54 KB 285.61 KB
basic.get-language 8.56 KB 8.59 KB
basic.home-redirect 23.47 KB 23.49 KB
basic.http-proxy-request 8.65 KB 8.67 KB
basic.http-request 8.56 KB 8.59 KB
basic.lock-body-scroll 23.16 KB 23.18 KB
basic.set-theme-by-apps 8.58 KB 8.6 KB
basic.set-timeout 8.58 KB 8.6 KB
basic.show-dialog 274.25 KB 274.27 KB
basic.show-notification 256.68 KB 256.7 KB
basic.show-watermark 10.32 KB 10.34 KB
basic.v3-widget-mate 8.55 KB 8.58 KB
containers.easy-view 67.12 KB 67.12 KB 🟰
containers.flex-layout 66.86 KB 66.86 KB 🟰
containers.general-card 162.08 KB 162.1 KB
containers.general-category 67.49 KB 67.49 KB 🟰
containers.general-drawer 156.28 KB 156.29 KB
containers.general-modal 162.77 KB 162.79 KB
containers.grid-layout 67.95 KB 67.95 KB 🟰
containers.micro-view 88.01 KB 88.03 KB
containers.search-bar 66.98 KB 66.98 KB 🟰
containers.tab-group 72.14 KB 72.14 KB 🟰
containers.tab-item 157.91 KB 157.93 KB
containers.tab-list 157.91 KB 157.93 KB
data-view.app-wall-card-item 70.07 KB 70.07 KB 🟰
data-view.app-wall-relation-line 69.77 KB 69.77 KB 🟰
data-view.app-wall-system-card 134.3 KB 134.3 KB 🟰
data-view.basic-index-group 69.36 KB 69.36 KB 🟰
data-view.battery-chart 70.09 KB 70.09 KB 🟰
data-view.brick-notification 133.53 KB 133.53 KB 🟰
data-view.bubbles-indicator 167.24 KB 167.26 KB
data-view.cabinet-app-layer 69.76 KB 69.76 KB 🟰
data-view.cabinet-button 69.37 KB 69.37 KB 🟰
data-view.cabinet-container 79.64 KB 79.64 KB 🟰
data-view.cabinet-graph 93.81 KB 93.81 KB 🟰
data-view.cabinet-node 70.17 KB 70.17 KB 🟰
data-view.cabinet-thumbnail 83.46 KB 83.46 KB 🟰
data-view.china-map 145.73 KB 145.77 KB
data-view.china-map-chart 376.31 KB 376.35 KB
data-view.complex-search 146.06 KB 146.06 KB 🟰
data-view.crystal-ball-indicator 161.62 KB 161.64 KB
data-view.data-display-flipper 69.31 KB 69.31 KB 🟰
data-view.data-display-flipper-fifth 69.17 KB 69.17 KB 🟰
data-view.data-display-flipper-sixth 69.03 KB 69.03 KB 🟰
data-view.dropdown-menu 135.63 KB 135.59 KB
data-view.gauge-chart 70.23 KB 70.23 KB 🟰
data-view.gear-background 115.33 KB 115.33 KB 🟰
data-view.globe-with-gear-indicator 212.48 KB 212.51 KB
data-view.globe-with-halo-indicator 162.62 KB 162.64 KB
data-view.globe-with-orbit-indicator 162.45 KB 162.47 KB
data-view.graph-layout-grid 86.55 KB 86.55 KB 🟰
data-view.graph-node 69.23 KB 69.23 KB 🟰
data-view.graph-text 77.7 KB 77.7 KB 🟰
data-view.grid-background 104.57 KB 104.57 KB 🟰
data-view.hi-tech-button 70 KB 70 KB 🟰
data-view.indicator-card 69.47 KB 69.47 KB 🟰
data-view.lights-component-title 68.9 KB 68.9 KB 🟰
data-view.loading-panel 73.28 KB 73.28 KB 🟰
data-view.modern-style-component-title 69.97 KB 69.97 KB 🟰
data-view.modern-style-page-title 70.01 KB 70.01 KB 🟰
data-view.modern-style-treemap 80.56 KB 80.56 KB 🟰
data-view.particle-animation 69.9 KB 69.9 KB 🟰
data-view.progress-bar-list 72.07 KB 72.07 KB 🟰
data-view.radar-chart 70.94 KB 70.94 KB 🟰
data-view.simple-card-item 69.58 KB 69.58 KB 🟰
data-view.tabs-drawer 135.45 KB 135.49 KB
data-view.tabs-page-title 72.12 KB 72.12 KB 🟰
data-view.tech-mesh-base-view 68.47 KB 68.47 KB 🟰
data-view.title-text 69.66 KB 69.66 KB 🟰
data-view.top-title-bar 80.84 KB 80.84 KB 🟰
diagram.editable-label 67.75 KB 67.75 KB 🟰
diagram.experimental-node 67.2 KB 67.2 KB 🟰
eo-actions 266.38 KB 266.4 KB
eo-alert 137.72 KB 137.72 KB 🟰
eo-antd-icon 121.81 KB 121.81 KB 🟰
eo-app-bar-wrapper 68.09 KB 68.09 KB 🟰
eo-auto-complete 146.27 KB 200.63 KB 🔺 +54.36 KB
eo-avatar 249.1 KB 249.26 KB 🔼 +0.16 KB
eo-avatar-group 248.02 KB 248.04 KB
eo-banner 96.01 KB 96.04 KB
eo-breadcrumb 258.8 KB 258.82 KB
eo-breadcrumb-item 258.36 KB 258.42 KB
eo-broadcast-channel 78.8 KB 78.83 KB
eo-button 150.45 KB 150.48 KB
eo-card 162.08 KB 162.1 KB
eo-card-box 258.71 KB New
eo-card-item 286.64 KB 286.66 KB
eo-carousel-text 75.36 KB 75.36 KB 🟰
eo-cascader 266.86 KB 266.86 KB 🟰
eo-category 67.49 KB 67.49 KB 🟰
eo-checkbox 210.12 KB 155.76 KB 🟢 -54.36 KB
eo-code-display 340.36 KB 340.38 KB
eo-color-picker 238.84 KB 238.84 KB 🟰
eo-content-layout 66.42 KB 66.42 KB 🟰
eo-context-menu 269.41 KB 269.43 KB
eo-counter-badge 143.47 KB 143.5 KB
eo-current-time 136.4 KB 136.4 KB 🟰
eo-date-picker 335.1 KB 280.74 KB 🟢 -54.36 KB
eo-descriptions 183.24 KB 183.26 KB
eo-diagram 121.24 KB 121.24 KB 🟰
eo-directory 267.97 KB 268 KB
eo-directory-tree 166.82 KB 166.83 KB
eo-directory-tree-internal-node 132.98 KB 132.98 KB 🟰
eo-directory-tree-leaf 132.29 KB 132.29 KB 🟰
eo-display-canvas 213.31 KB 214.85 KB 🔺 +1.54 KB
eo-divider 73.17 KB 73.17 KB 🟰
eo-draw-canvas 233.31 KB 234.87 KB 🔺 +1.56 KB
eo-drawer 156.27 KB 156.3 KB
eo-dropdown-actions 267.9 KB 267.93 KB
eo-dropdown-button 269.39 KB 269.42 KB
eo-dropdown-select 263.91 KB 263.97 KB
eo-dynamic-form-item 187.93 KB 187.96 KB
eo-easy-view 67.12 KB 67.12 KB 🟰
eo-easyops-avatar 250.99 KB 251.15 KB 🔼 +0.16 KB
eo-easyops-icon 121.81 KB 121.81 KB 🟰
eo-event-agent 23.06 KB 23.08 KB
eo-fa-icon 121.81 KB 121.81 KB 🟰
eo-flex-layout 66.86 KB 66.86 KB 🟰
eo-form 70.03 KB 70.03 KB 🟰
eo-form-item 76.15 KB 76.15 KB 🟰
eo-formatter-number 78.88 KB 78.9 KB
eo-frame-breadcrumb 270.61 KB 270.63 KB
eo-grid-layout 67.95 KB 67.95 KB 🟰
eo-humanize-time 272.93 KB 272.95 KB
eo-icon 121.81 KB 121.81 KB 🟰
eo-icon-select 208.53 KB 208.55 KB
eo-iframe 78.85 KB 78.87 KB
eo-illustration-message 137.42 KB 137.44 KB
eo-image 146.43 KB 146.45 KB
eo-img-icon 121.81 KB 121.81 KB 🟰
eo-info-card-item 273.11 KB 273.13 KB
eo-input 194.62 KB 140.26 KB 🟢 -54.36 KB
eo-launchpad-button 294.67 KB 294.7 KB
eo-launchpad-button-v2 301.87 KB 301.86 KB
eo-launchpad-quick-access 289.79 KB 289.81 KB
eo-launchpad-recent-visits 288.61 KB 288.67 KB
eo-link 256.68 KB 256.7 KB
eo-loading-container 142.96 KB 142.98 KB
eo-loading-step 163.5 KB 163.52 KB
eo-main-view 96.01 KB 96.04 KB
eo-markdown-display 140.95 KB 140.95 KB 🟰
eo-markdown-editor 405.35 KB 405.38 KB
eo-menu 78.41 KB 78.43 KB
eo-menu-group 78.34 KB 78.36 KB
eo-menu-item 142.8 KB 142.82 KB
eo-menu-item-sub-menu 143.24 KB 143.26 KB
eo-message-listener 78.58 KB 78.6 KB
eo-micro-view 88.01 KB 88.03 KB
eo-mini-actions 268.46 KB 268.48 KB
eo-mini-line-chart 76.29 KB 76.29 KB 🟰
eo-modal 162.77 KB 162.79 KB
eo-narrow-view 75.17 KB 75.17 KB 🟰
eo-nav-menu 314.37 KB 314.39 KB
eo-next-table 509.59 KB 509.57 KB
eo-page-title 78.55 KB 78.57 KB
eo-page-view 75.17 KB 75.17 KB 🟰
eo-pagination 294.39 KB 294.41 KB
eo-popover 186.48 KB 186.5 KB
eo-popup 145.62 KB 145.62 KB 🟰
eo-radio 149.41 KB 203.77 KB 🔺 +54.36 KB
eo-resizable-box 68.84 KB 68.84 KB 🟰
eo-search 198.66 KB 198.66 KB 🟰
eo-search-bar 66.98 KB 66.98 KB 🟰
eo-search-launchpad 292.45 KB 292.47 KB
eo-select 334.72 KB 334.74 KB
eo-sidebar 298.86 KB 298.92 KB
eo-sidebar-menu 282.38 KB 282.4 KB
eo-sidebar-menu-group 282.38 KB 282.4 KB
eo-sidebar-menu-item 267.27 KB 267.26 KB
eo-sidebar-menu-submenu 282.38 KB 282.4 KB
eo-sidebar-sub-menu 273.22 KB 273.24 KB
eo-spin 67.31 KB 67.31 KB 🟰
eo-statistics-card 137.59 KB 137.59 KB 🟰
eo-submit-buttons 172.45 KB 172.47 KB
eo-svg-icon 121.81 KB 121.81 KB 🟰
eo-switch 199.97 KB 199.97 KB 🟰
eo-tab-group 72.14 KB 72.14 KB 🟰
eo-tab-item 157.91 KB 157.93 KB
eo-tab-list 157.91 KB 157.93 KB
eo-table 378.15 KB 378.15 KB 🟰
eo-tag 144.74 KB 144.76 KB
eo-tag-list 146.85 KB 146.87 KB
eo-text 285.54 KB 285.6 KB
eo-text-tooltip 139.31 KB 139.31 KB 🟰
eo-textarea 85.18 KB 85.18 KB 🟰
eo-time-picker 212.82 KB 212.82 KB 🟰
eo-time-range-picker 279.98 KB 334.34 KB 🔺 +54.36 KB
eo-tooltip 256.68 KB 256.74 KB
eo-tree 138.17 KB 138.17 KB 🟰
eo-tree-select 279.57 KB 279.57 KB 🟰
eo-upload-file 290.69 KB 290.71 KB
eo-upload-image 189.09 KB 189.11 KB
eo-user-or-user-group-select 300.98 KB 301 KB
eo-workbench-layout 337.87 KB 337.89 KB
eo-workbench-layout-v2 339.35 KB 339.37 KB
form.dynamic-form-item 187.93 KB 187.96 KB
form.general-checkbox 155.76 KB 155.76 KB 🟰
form.general-form 70.03 KB 70.03 KB 🟰
form.general-form-item 76.15 KB 76.15 KB 🟰
form.general-input 140.26 KB 194.62 KB 🔺 +54.36 KB
form.general-radio 203.77 KB 149.41 KB 🟢 -54.36 KB
form.general-search 198.66 KB 198.66 KB 🟰
form.general-select 334.72 KB 334.74 KB
form.general-switch 199.97 KB 145.62 KB 🟢 -54.35 KB
form.general-textarea 85.18 KB 85.18 KB 🟰
form.icon-select 208.53 KB 208.55 KB
form.submit-buttons 172.45 KB 172.47 KB
form.upload-image 189.09 KB 189.11 KB
icons.antd-icon 121.81 KB 121.81 KB 🟰
icons.easyops-icon 121.81 KB 121.81 KB 🟰
icons.fa-icon 121.81 KB 121.81 KB 🟰
icons.general-icon 121.81 KB 121.81 KB 🟰
icons.get-antd-icons 121.81 KB 121.81 KB 🟰
icons.get-easyops-icons 121.81 KB 121.81 KB 🟰
icons.get-fa-icons 121.81 KB 121.81 KB 🟰
icons.get-libs 121.81 KB 121.81 KB 🟰
icons.search-icons 121.81 KB 121.81 KB 🟰
illustrations.error-message 137.44 KB 137.42 KB
illustrations.get-illustration 9.12 KB 9.12 KB 🟰
illustrations.get-illustrations-by-category 6.02 KB 6.02 KB 🟰
illustrations.loading-transition 66.64 KB 66.64 KB 🟰
illustrations.translate-illustration-config 9.12 KB 9.12 KB 🟰
inject.visual-builder-preview-agent 56.22 KB 56.22 KB 🟰
markdown.markdown-editor 405.38 KB 405.38 KB 🟰
nav.app-bar-wrapper 68.09 KB 68.09 KB 🟰
nav.easyops-navbar-alerts 267.22 KB 267.21 KB
nav.get-menu-config-options 7.85 KB 7.85 KB 🟰
nav.get-menu-config-tree 8.35 KB 8.35 KB 🟰
nav.launchpad-config 298.46 KB 298.49 KB
nav.nav-logo 266.26 KB 266.28 KB
nav.poll-announce 276.79 KB 276.82 KB
presentational.code-display 340.36 KB 340.38 KB
presentational.general-alert 137.72 KB 137.72 KB 🟰
presentational.general-descriptions 183.24 KB 183.26 KB
presentational.humanize-time 272.93 KB 272.99 KB
recent-history.clear-history 28.36 KB 28.36 KB 🟰
recent-history.get-all-history 28.36 KB 28.36 KB 🟰
recent-history.push-history 28.36 KB 28.36 KB 🟰
recent-history.recent-visit 299.33 KB 299.35 KB
sl-alert 106.23 KB 106.23 KB 🟰
sl-animated-image 105.29 KB 105.29 KB 🟰
sl-animation 108.64 KB 108.64 KB 🟰
sl-avatar 105.28 KB 105.28 KB 🟰
sl-badge 105.29 KB 105.29 KB 🟰
sl-breadcrumb 106.03 KB 106.03 KB 🟰
sl-breadcrumb-item 106.03 KB 106.03 KB 🟰
sl-button 106.02 KB 106.02 KB 🟰
sl-button-group 105.29 KB 105.29 KB 🟰
sl-card 105.28 KB 105.28 KB 🟰
sl-carousel 106.03 KB 106.03 KB 🟰
sl-carousel-item 106.03 KB 106.03 KB 🟰
sl-checkbox 105.29 KB 105.29 KB 🟰
sl-color-picker 111.06 KB 111.06 KB 🟰
sl-details 106.02 KB 106.02 KB 🟰
sl-dialog 106.23 KB 106.23 KB 🟰
sl-divider 105.29 KB 105.29 KB 🟰
sl-drawer 106.02 KB 106.02 KB 🟰
sl-dropdown 106.22 KB 106.22 KB 🟰
sl-format-bytes 106.02 KB 106.02 KB 🟰
sl-format-date 106.02 KB 106.02 KB 🟰
sl-format-number 106.02 KB 106.02 KB 🟰
sl-icon 105.28 KB 105.28 KB 🟰
sl-icon-button 105.29 KB 105.29 KB 🟰
sl-image-comparer 106.03 KB 106.03 KB 🟰
sl-input 106.02 KB 106.02 KB 🟰
sl-menu 106.22 KB 106.22 KB 🟰
sl-menu-item 106.22 KB 106.22 KB 🟰
sl-menu-label 105.29 KB 105.29 KB 🟰
sl-mutation-observer 105.29 KB 105.29 KB 🟰
sl-option 106.02 KB 106.02 KB 🟰
sl-popup 106.22 KB 106.22 KB 🟰
sl-progress-bar 106.03 KB 106.03 KB 🟰
sl-progress-ring 106.02 KB 106.02 KB 🟰
sl-qr-code 109.96 KB 109.96 KB 🟰
sl-radio 105.29 KB 105.29 KB 🟰
sl-radio-button 105.29 KB 105.29 KB 🟰
sl-radio-group 105.29 KB 105.29 KB 🟰
sl-range 106.02 KB 106.02 KB 🟰
sl-rating 106.02 KB 106.02 KB 🟰
sl-relative-time 106.02 KB 106.02 KB 🟰
sl-resize-observer 105.29 KB 105.29 KB 🟰
sl-select 106.22 KB 106.22 KB 🟰
sl-skeleton 105.29 KB 105.29 KB 🟰
sl-spinner 106.02 KB 106.02 KB 🟰
sl-split-panel 106.02 KB 106.02 KB 🟰
sl-switch 105.28 KB 105.28 KB 🟰
sl-tab 106.03 KB 106.03 KB 🟰
sl-tab-group 106.03 KB 106.03 KB 🟰
sl-tab-panel 106.03 KB 106.03 KB 🟰
sl-tag 106.01 KB 106.01 KB 🟰
sl-textarea 105.29 KB 105.29 KB 🟰
sl-tooltip 106.23 KB 106.26 KB
sl-tree 106.02 KB 106.02 KB 🟰
sl-tree-item 106.02 KB 106.02 KB 🟰
sl-visually-hidden 105.29 KB 105.29 KB 🟰
visual-builder.batch-update-raw-data-generated-view 7.47 KB 7.47 KB 🟰
visual-builder.chat-conversation 326.96 KB 327.08 KB 🔼 +0.12 KB
visual-builder.chat-preview 69.53 KB 69.53 KB 🟰
visual-builder.check-editor-by-name 7.09 KB 7.09 KB 🟰
visual-builder.contract-select 166.67 KB 168.29 KB 🔺 +1.62 KB
visual-builder.generate-snippets-context-menu 279.11 KB 279.1 KB
visual-builder.get-data-deps 7.1 KB 7.1 KB 🟰
visual-builder.get-dependency-tree 7.48 KB 7.48 KB 🟰
visual-builder.get-raw-data-system-prompts 11.45 KB 11.45 KB 🟰
visual-builder.inject-chat-preview-agent 8.06 KB 8.06 KB 🟰
visual-builder.page-arch-node 269.41 KB 269.43 KB
visual-builder.parse-path 8.72 KB 8.72 KB 🟰
visual-builder.pre-generated-container 69.89 KB 69.89 KB 🟰
visual-builder.pre-generated-preview 69.51 KB 69.51 KB 🟰
visual-builder.pre-generated-table-view 67.12 KB 67.12 KB 🟰
visual-builder.property-editor 1,407.31 KB 1,407.25 KB
visual-builder.raw-data-preview 72.63 KB 72.63 KB 🟰
visual-builder.workbench-action 268.21 KB 268.24 KB
visual-builder.workbench-action-list 273.6 KB 273.63 KB
visual-builder.workbench-history-action 288.84 KB 289 KB 🔼 +0.16 KB
visual-builder.workbench-pane 133.25 KB 133.28 KB
visual-builder.workbench-sidebar 68 KB 68 KB 🟰
visual-builder.workbench-tree 273.65 KB 273.67 KB
vs.code-editor 1,121.67 KB 1,121.78 KB 🔼 +0.11 KB
Critical details for brick eo-auto-complete
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB Del
form/dist/chunks/8548.66dd7965.js 0.83 KB Del
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB New
icons/dist/chunks/144.35eed58e.js 50.06 KB New
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB New
icons/dist/chunks/45.f857a51b.js 2.51 KB New
Critical details for brick eo-checkbox
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB New
form/dist/chunks/8548.66dd7965.js 0.83 KB New
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB Del
icons/dist/chunks/144.35eed58e.js 50.06 KB Del
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB Del
icons/dist/chunks/45.f857a51b.js 2.51 KB Del
Critical details for brick eo-date-picker
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB New
form/dist/chunks/8548.66dd7965.js 0.83 KB New
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB Del
icons/dist/chunks/144.35eed58e.js 50.06 KB Del
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB Del
icons/dist/chunks/45.f857a51b.js 2.51 KB Del
Critical details for brick eo-display-canvas
Name Prev Now Diff
diagram/dist/chunks/5903.c898abec.js 22.43 KB New
diagram/dist/chunks/9039.bca76220.js 21.12 KB Del
diagram/dist/chunks/eo-display-canvas.28d0385d.js 3.16 KB New
diagram/dist/chunks/eo-display-canvas.8d14e680.js 3.16 KB Del
diagram/dist/chunks/eo-draw-canvas.2bb4e1d2.js 6.88 KB Del
diagram/dist/chunks/eo-draw-canvas.4b11d12e.js 7.11 KB New
diagram/dist/index.d0512eac.js 5.48 KB Del
diagram/dist/index.e4a680fa.js 5.48 KB New
Critical details for brick eo-draw-canvas
Name Prev Now Diff
basic/dist/index.7b66f21f.js 8.03 KB New
basic/dist/index.a4f4b875.js 8.01 KB Del
diagram/dist/chunks/5903.c898abec.js 22.43 KB New
diagram/dist/chunks/9039.bca76220.js 21.12 KB Del
diagram/dist/chunks/eo-draw-canvas.2bb4e1d2.js 6.88 KB Del
diagram/dist/chunks/eo-draw-canvas.4b11d12e.js 7.11 KB New
diagram/dist/index.d0512eac.js 5.48 KB Del
diagram/dist/index.e4a680fa.js 5.48 KB New
Critical details for brick eo-input
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB New
form/dist/chunks/8548.66dd7965.js 0.83 KB New
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB Del
icons/dist/chunks/144.35eed58e.js 50.06 KB Del
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB Del
icons/dist/chunks/45.f857a51b.js 2.51 KB Del
Critical details for brick eo-radio
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB Del
form/dist/chunks/8548.66dd7965.js 0.83 KB Del
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB New
icons/dist/chunks/144.35eed58e.js 50.06 KB New
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB New
icons/dist/chunks/45.f857a51b.js 2.51 KB New
Critical details for brick eo-time-range-picker
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB Del
form/dist/chunks/8548.66dd7965.js 0.83 KB Del
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB New
icons/dist/chunks/144.35eed58e.js 50.06 KB New
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB New
icons/dist/chunks/45.f857a51b.js 2.51 KB New
Critical details for brick form.general-input
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB Del
form/dist/chunks/8548.66dd7965.js 0.83 KB Del
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB New
icons/dist/chunks/144.35eed58e.js 50.06 KB New
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB New
icons/dist/chunks/45.f857a51b.js 2.51 KB New
Critical details for brick form.general-radio
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB New
form/dist/chunks/8548.66dd7965.js 0.83 KB New
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB Del
icons/dist/chunks/144.35eed58e.js 50.06 KB Del
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB Del
icons/dist/chunks/45.f857a51b.js 2.51 KB Del
Critical details for brick form.general-switch
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB New
form/dist/chunks/8548.66dd7965.js 0.83 KB New
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB Del
icons/dist/chunks/144.35eed58e.js 50.06 KB Del
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB Del
icons/dist/chunks/45.f857a51b.js 2.51 KB Del
Critical details for brick visual-builder.contract-select
Name Prev Now Diff
form/dist/chunks/1045.a9ea1f1b.js 2.51 KB Del
form/dist/chunks/8548.66dd7965.js 0.83 KB Del
form/dist/chunks/input.4e2e5b20.js 3.13 KB New
form/dist/chunks/input.eb21f7c8.js 3.13 KB Del
form/dist/chunks/react.aa821fb3.js 55.24 KB Del
form/dist/index.10e06049.js 6.13 KB New
form/dist/index.fa015fd4.js 6.13 KB Del
icons/dist/chunks/114.11316303.js 1.59 KB New
icons/dist/chunks/144.35eed58e.js 50.06 KB New
icons/dist/chunks/41.0c1ecdf2.js 3.54 KB New
icons/dist/chunks/45.f857a51b.js 2.51 KB New
visual-builder/dist/chunks/4837.b122ae40.js 2.5 KB New

@github-actions github-actions bot temporarily deployed to pull request February 18, 2025 11:15 Inactive
@github-actions github-actions bot temporarily deployed to pull request February 19, 2025 04:12 Inactive
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

🧹 Nitpick comments (2)
bricks/basic/src/avatar/index.tsx (2)

84-89: 建议完善属性文档

当前的 JSDoc 注释比较简单,建议添加以下信息:

  • 属性的使用场景
  • 支持的值类型(如:CSS 颜色值)
  • 示例代码

建议修改为:

-  /** 图标颜色 */
+  /**
+   * 图标颜色
+   * @description 设置图标的颜色,仅在 type 为 "icon" 时生效
+   * @example
+   * color="red"
+   * color="#ff0000"
+   */
   @property() accessor color: string | undefined;

-  /** 图标背景色 */
+  /**
+   * 图标背景色
+   * @description 设置图标的背景颜色,仅在 type 为 "icon" 时生效
+   * @example
+   * bgColor="lightgray"
+   * bgColor="#f5f5f5"
+   */
   @property() accessor bgColor: string | undefined;

256-260: 建议增强类型安全性

当前的样式处理逻辑正确,但建议增加类型安全性以防止潜在的运行时错误。

建议修改为:

-        style={
-          type === "icon"
-            ? omitBy({ color, backgroundColor: bgColor }, isNil)
-            : undefined
-        }
+        style={
+          type === "icon"
+            ? omitBy({
+                color,
+                backgroundColor: bgColor,
+              } as React.CSSProperties, isNil)
+            : undefined
+        }

这样可以:

  1. 明确指定样式对象的类型为 React.CSSProperties
  2. 在编译时捕获潜在的类型错误
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c84b10b and 918196a.

📒 Files selected for processing (8)
  • bricks/basic/docs/eo-card-box.md (1 hunks)
  • bricks/basic/src/avatar/index.tsx (5 hunks)
  • bricks/basic/src/bootstrap.ts (1 hunks)
  • bricks/basic/src/card-box/index.spec.tsx (1 hunks)
  • bricks/basic/src/card-box/index.tsx (1 hunks)
  • bricks/basic/src/card-box/styles.shadow.css (1 hunks)
  • bricks/basic/src/link/link.shadow.css (1 hunks)
  • shared/common-bricks/common-bricks.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (7)
  • shared/common-bricks/common-bricks.json
  • bricks/basic/src/bootstrap.ts
  • bricks/basic/docs/eo-card-box.md
  • bricks/basic/src/link/link.shadow.css
  • bricks/basic/src/card-box/index.spec.tsx
  • bricks/basic/src/card-box/styles.shadow.css
  • bricks/basic/src/card-box/index.tsx
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: Size check (20.x)
  • GitHub Check: Build docs (20.x)
🔇 Additional comments (3)
bricks/basic/src/avatar/index.tsx (3)

17-17: 导入更改看起来不错!

新增的 lodash 函数导入和样式文件导入的更改都是合理的,并且与新功能的实现相匹配。

Also applies to: 19-19


39-40: 接口扩展合理!

新增的 colorbgColor 属性增强了头像组件的自定义能力,同时保持了向后兼容性。


129-140: 函数签名改进合理!

  • 使用解构语法提高了代码可读性
  • showName 重命名为 propShowName 避免了与内部状态的命名冲突

@github-actions github-actions bot temporarily deployed to pull request February 19, 2025 08:44 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants