Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

perf: improve the prompt for upload failure of the upload component #769

Merged
merged 3 commits into from
Dec 14, 2022

Conversation

ruibaby
Copy link
Member

@ruibaby ruibaby commented Dec 13, 2022

What type of PR is this?

/kind improvement

What this PR does / why we need it:

优化上传组件的异常提示信息。

Which issue(s) this PR fixes:

Fixes halo-dev/halo#2933
Ref halo-dev/halo#2932 halo-dev/halo#2931

Screenshots:

image

image

Special notes for your reviewer:

测试方式:

  1. 进入附件上传、插件安装、主题安装界面。
  2. 上传不符合规则的文件,比如主题可以上传一个不是主题的 zip 或者 Halo 1.x 版本的 zip。
  3. 观察是否有异常提示。

Does this PR introduce a user-facing change?

优化 Console 端上传组件的异常提示信息。

@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/improvement Categorizes issue or PR as related to a improvement. labels Dec 13, 2022
@f2c-ci-robot f2c-ci-robot bot requested review from Aanko and guqing December 13, 2022 08:59
@vercel
Copy link

vercel bot commented Dec 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
ui ✅ Ready (Inspect) Visit Preview Dec 14, 2022 at 3:45AM (UTC)

Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

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

It works very well.

image

/approve

@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Dec 14, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 14, 2022
Copy link
Member

@guqing guqing left a comment

Choose a reason for hiding this comment

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

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Dec 14, 2022
@f2c-ci-robot f2c-ci-robot bot merged commit 101e91a into halo-dev:main Dec 14, 2022
@ruibaby ruibaby deleted the perf/handle-upload-error branch December 14, 2022 13:46
@JohnNiang JohnNiang added this to the 2.1.x milestone Dec 20, 2022
@JohnNiang
Copy link
Member

将这些修改应用到 release-2.0 分支如何?

@ruibaby
Copy link
Member Author

ruibaby commented Dec 20, 2022

/cherry-pick release-2.0

@halo-dev-bot
Copy link

@ruibaby: new pull request created: #786

In response to this:

/cherry-pick release-2.0

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

f2c-ci-robot bot pushed a commit that referenced this pull request Dec 20, 2022
…ad component (#786)

This is an automated cherry-pick of #769

/assign ruibaby

```release-note
优化 Console 端上传组件的异常提示信息。
```
@ruibaby ruibaby modified the milestones: 2.1.x, 2.1.0 Dec 25, 2022
JohnNiang pushed a commit to JohnNiang/halo that referenced this pull request Mar 2, 2023
…alo-dev/console#769)

#### What type of PR is this?

/kind improvement

#### What this PR does / why we need it:

优化上传组件的异常提示信息。

#### Which issue(s) this PR fixes:

Fixes halo-dev#2933
Ref halo-dev#2932 halo-dev#2931

#### Screenshots:

<img width="794" alt="image" src="https://user-images.githubusercontent.com/21301288/207272593-b94efb0a-7033-4ec1-b1eb-f2e3871b34f0.png">
<img width="674" alt="image" src="https://user-images.githubusercontent.com/21301288/207272682-0c223d29-8c4f-45b0-a8d5-2432a97835c6.png">


#### Special notes for your reviewer:

测试方式:

1. 进入附件上传、插件安装、主题安装界面。
2. 上传不符合规则的文件,比如主题可以上传一个不是主题的 zip 或者 Halo 1.x 版本的 zip。
3. 观察是否有异常提示。

#### Does this PR introduce a user-facing change?

```release-note
优化 Console 端上传组件的异常提示信息。
```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/improvement Categorizes issue or PR as related to a improvement. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

安装和升级主题如果异常没有明确提示
4 participants