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 missing instanceIdentifier to ExpandableSection #3215

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

michaeldowseza
Copy link
Member

@michaeldowseza michaeldowseza commented Jan 24, 2025

Description

Correctly pass down the analytics Metadata props to the container variant of the expandable section.

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

How has this been tested?

Added usage of Expandable Section to integ test page and added integ test for the metadata property.

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 Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.44%. Comparing base (c357e20) to head (dbd29e3).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3215    +/-   ##
========================================
  Coverage   96.44%   96.44%            
========================================
  Files         790      790            
  Lines       22246    22249     +3     
  Branches     7575     7231   -344     
========================================
+ Hits        21455    21458     +3     
- Misses        739      784    +45     
+ Partials       52        7    -45     

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

@michaeldowseza michaeldowseza force-pushed the analytics/expandable-section branch from eb05546 to 5f8fae2 Compare January 24, 2025 14:36
@michaeldowseza michaeldowseza marked this pull request as ready for review January 24, 2025 14:55
@michaeldowseza michaeldowseza requested a review from a team as a code owner January 24, 2025 14:55
@michaeldowseza michaeldowseza requested review from pan-kot and removed request for a team January 24, 2025 14:55
const analyticsComponentMetadata: GeneratedAnalyticsMetadataExpandableSectionComponent = {
name: 'awsui.ExpandableSection',
label: { root: 'self' },
properties: { variant, expanded: `${!!expanded}` },
};

console.log(analyticsMetadata);
Copy link
Member Author

Choose a reason for hiding this comment

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

🤦🏻‍♂️

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.

1 participant