Skip to content

Conversation

@GspikeHalo
Copy link
Contributor

@GspikeHalo GspikeHalo commented Oct 19, 2024

Propose:
Currently, opening the dashboard triggers some browser errors. Although they do not affect normal functionality, they could potentially lead to other unknown risks. This PR fixes these issues in the dashboard.

Changes:

  1. Using ChangeDetectorRef to trigger view updates ensures that the UI stays synchronized with asynchronous data changes.
  2. Removed nz-tooltip due to conflicts with nz-icon causing the nz0100 error. Additionally, the usage of nz-icon overlaps with the title attribute.

Demo:
Before:
image

After:
image

@GspikeHalo GspikeHalo self-assigned this Oct 19, 2024
Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

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

We don't need to do another forum connection check on the backend. It's possible that after frontend connection error, we simply catch it, such that the error doesn't show on console. Basically we do the same check at frontend.

@GspikeHalo GspikeHalo marked this pull request as ready for review October 20, 2024 03:42
Copy link
Contributor

@aglinxinyuan aglinxinyuan left a comment

Choose a reason for hiding this comment

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

LGTM!

@GspikeHalo GspikeHalo merged commit d571c3c into master Oct 20, 2024
@GspikeHalo GspikeHalo deleted the fix-dashboard-bug branch October 20, 2024 17:06
PurelyBlank pushed a commit that referenced this pull request Dec 4, 2024
**Propose:**
Currently, opening the dashboard triggers some browser errors. Although
they do not affect normal functionality, they could potentially lead to
other unknown risks. This PR fixes these issues in the dashboard.

**Changes:**
1. Using `ChangeDetectorRef` to trigger view updates ensures that the UI
stays synchronized with asynchronous data changes.
2. Removed `nz-tooltip` due to conflicts with `nz-icon` causing the
`nz0100` error. Additionally, the usage of `nz-icon` overlaps with the
`title` attribute.

**Demo:**
Before:

![image](https://github.com/user-attachments/assets/154f08a5-77ff-4cf1-b58d-eceec798b922)

After:

![image](https://github.com/user-attachments/assets/5d2829d2-64ff-4005-b22a-8197058797fc)
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.

2 participants