Skip to content
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

PROD-2349 Fix messaging ui unresponsive. Fix warnings. #5081

Merged
merged 2 commits into from
Jul 15, 2024

Conversation

lucanovera
Copy link
Contributor

@lucanovera lucanovera commented Jul 15, 2024

Description Of Changes

Fix unresponsive messaging ui due to react render loop. Also fix other warnings on the page.

Code Changes

  • Fix main loop issue by using useMemo on sortedData
  • Fix warning about input without name or id by adding a name property to the toggles
  • Fix warning about <p> inside another <p> by adding as="span" to Text
  • Added useCallback to useMEssagingTemplateToggle as a best practice

Steps to Confirm

  • Log in to admin ui
  • Go to Settings > Messaging
  • Add a new message or use the toggles and check that the UI still responds

Pre-Merge Checklist

  • All CI Pipelines Succeeded
  • Issue Requirements are Met
  • Update CHANGELOG.md

Copy link

vercel bot commented Jul 15, 2024

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
fides-plus-nightly ⬜️ Ignored (Inspect) Visit Preview Jul 15, 2024 2:23pm

Copy link

cypress bot commented Jul 15, 2024

Passing run #8899 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge 21022ac into 1957636...
Project: fides Commit: fe096890a3 ℹ️
Status: Passed Duration: 00:36 💡
Started: Jul 15, 2024 2:34 PM Ended: Jul 15, 2024 2:35 PM

Review all test suite changes for PR #5081 ↗︎

Copy link
Contributor

@eastandwestwind eastandwestwind left a comment

Choose a reason for hiding this comment

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

Works great for me, thanks!

@lucanovera lucanovera merged commit e02e6e1 into main Jul 15, 2024
13 checks passed
@lucanovera lucanovera deleted the PROD-2349-message-goes-non-responsive branch July 15, 2024 14:51
Copy link

cypress bot commented Jul 15, 2024

Passing run #8900 ↗︎

0 4 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

PROD-2349 Fix messaging ui unresponsive. Fix warnings. (#5081)
Project: fides Commit: e02e6e1b38
Status: Passed Duration: 00:35 💡
Started: Jul 15, 2024 3:02 PM Ended: Jul 15, 2024 3:02 PM

Review all test suite changes for PR #5081 ↗︎

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