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

chore: Add initialCheck capability to alert/flash content API #2879

Merged
merged 5 commits into from
Oct 18, 2024

Conversation

gethinwebster
Copy link
Member

@gethinwebster gethinwebster commented Oct 16, 2024

Description

Add capability to conditionally hide the initial render of alerts and flashes. This reduces the layout shift
that occurs when the alert/flash content is then replaced via runtime API.

Related links, issue #, if available: n/a

How has this been tested?

New unit tests.

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.21%. Comparing base (7693793) to head (8b7a60b).
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2879   +/-   ##
=======================================
  Coverage   96.21%   96.21%           
=======================================
  Files         761      761           
  Lines       21490    21511   +21     
  Branches     7359     7357    -2     
=======================================
+ Hits        20676    20697   +21     
  Misses        761      761           
  Partials       53       53           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

georgylobko
georgylobko previously approved these changes Oct 18, 2024
@gethinwebster gethinwebster added this pull request to the merge queue Oct 18, 2024
Merged via the queue into main with commit b22ec75 Oct 18, 2024
38 checks passed
@gethinwebster gethinwebster deleted the iam-plugin-refactoring branch October 18, 2024 16:05
@@ -77,6 +77,7 @@
"@types/react-resizable": "^1.7.4",
"@types/react-router": "^5.1.18",
"@types/react-router-dom": "^5.3.2",
"@types/react-test-renderer": "^18.3.0",
Copy link
Member

Choose a reason for hiding this comment

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

The types version does not match the actual version of the dependency

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.

3 participants