Skip to content

chore: Add additional metadata to reporting #132

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

Merged
merged 1 commit into from
May 7, 2025
Merged

Conversation

just-boris
Copy link
Member

@just-boris just-boris commented May 6, 2025

Issue #, if available:

Description of changes:

Allow easier debugging which theme is currently used in an app, by inspecting element.__awsuiMetadata__.theme property

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

@just-boris just-boris requested a review from a team as a code owner May 6, 2025 15:27
@just-boris just-boris requested review from michaeldowseza and removed request for a team May 6, 2025 15:27
analyticsMetadata?: AnalyticsMetadata
) {
const elementRef = useRef<T>(null);

useEffect(() => {
if (elementRef.current) {
const pkgMetadata = typeof packageMetadata === 'string' ? { version: packageMetadata } : packageMetadata;
Copy link
Member Author

Choose a reason for hiding this comment

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

Backward compatibility. I am planning to remove string type after migrating all consumers

Copy link

codecov bot commented May 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.33%. Comparing base (fd512d9) to head (ae67436).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #132   +/-   ##
=======================================
  Coverage   99.33%   99.33%           
=======================================
  Files          30       30           
  Lines         751      752    +1     
  Branches      199      195    -4     
=======================================
+ Hits          746      747    +1     
  Misses          5        5           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@just-boris just-boris added this pull request to the merge queue May 7, 2025
Merged via the queue into main with commit 721a476 May 7, 2025
37 checks passed
@just-boris just-boris deleted the extra-metadata branch May 7, 2025 09:52
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