WeBankFinTech / DataSphereStudio

DataSphereStudio is a one stop data application development& management portal, covering scenarios including data exchange, desensitization/cleansing, analysis/mining, quality measurement, visualization, and task scheduling.
https://github.com/WeBankFinTech/DataSphereStudio-Doc
Apache License 2.0
3.08k stars 1k forks source link

[Feature] The error message reminder box is displayed permanently #1084

Closed wxyn closed 1 year ago

wxyn commented 1 year ago

Search before asking

Problem Description

When a user uses a function on the DSS, if the operation is incorrect or the status is failed, an error notification box will be displayed in the upper right corner of the page for 3 to 5s. If the error information is more complex, the popup window will automatically disappear before the user has time to read the error information, which is not conducive to the troubleshooting of users and operation and maintenance colleagues.

Description

Error messages are displayed permanently

Error message display logic:

If the mouse does not move to the error notification box, it will disappear automatically after 5 6s. Move the mouse over the error notification reminder box, and the reminder box permanently displays. Users can click "×" to close the reminder box (or click "Report error"/" View solution ", or refresh the page); Note: 1) As long as the mouse moves to the reminder box, even after it is removed, the prompt box will be permanently displayed, and the closing method is described above; 2) When there are multiple error boxes, the logic is consistent with the single error box

Use case

No response

solutions

Two realization schemes are designed according to the product:

1: All error messages are displayed permanently. Modify the configuration of the interface error notice and do not automatically close it

2: The user moves the mouse to the error message to block the shutdown. After blocking the shutdown, you need to manually close it. The mouse event mouseover is monitored to the error prompt area, and the onClsoe is blocked when it is closed incorrectly

Anything else

No response

Are you willing to submit a PR?