-
Notifications
You must be signed in to change notification settings - Fork 155
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 runtime actions discovery to alert and flashbar #1430
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1430 +/- ##
=======================================
Coverage 93.57% 93.58%
=======================================
Files 631 636 +5
Lines 16897 16934 +37
Branches 5583 5581 -2
=======================================
+ Hits 15812 15848 +36
- Misses 1013 1014 +1
Partials 72 72
☔ View full report in Codecov by Sentry. |
5aa2832
to
2cf84a6
Compare
|
||
@use '../../internal/styles/tokens' as awsui; | ||
|
||
.root { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a space between component, because runtime plugins require rendering an empty <div>
as a mount point and this breaks :empty
styling.
In this custom implementation, the wrapper nodes are deduplicated and :empty
works again
if (this.updateTimeout) { | ||
clearTimeout(this.updateTimeout); | ||
} | ||
this.updateTimeout = setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have figured that this timeout is basically a debounce implementation and I can reuse our existing one
2cf84a6
to
f85db70
Compare
Description
Implement new runtime API
Related links, issue #, if available: n/a
How has this been tested?
Added unit tests and dev pages for screenshot tests
Review checklist
The following items are to be evaluated by the author(s) and the reviewer(s).
Correctness
CONTRIBUTING.md
.CONTRIBUTING.md
.Security
checkSafeUrl
function.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.