Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 2, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enabling the configuration of the analytics endpoint in the thirdweb package, allowing users to customize where analytics data is sent.

Detailed summary

  • Added analytics configuration option in apps/playground-web/src/lib/client.ts.
  • Replaced hardcoded ANALYTICS_ENDPOINT with a dynamic URL in packages/thirdweb/src/analytics/track/index.ts.
  • Introduced DEFAULT_ANALYTICS_URL in packages/thirdweb/src/utils/domains.ts.
  • Updated domains object to include analytics with a default value.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Nov 2, 2024

🦋 Changeset detected

Latest commit: 0660416

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 2, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@vercel
Copy link

vercel bot commented Nov 2, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2024 7:34am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2024 7:34am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2024 7:34am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 2, 2024 7:34am

@github-actions github-actions bot added Playground Changes involving the Playground codebase. packages labels Nov 2, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (-0.01% 🔽) 860 ms (-0.01% 🔽) 2.6 s (-23.05% 🔽) 3.5 s
thirdweb (cjs) 103.02 KB (+0.15% 🔺) 2.1 s (+0.15% 🔺) 7.2 s (+14.26% 🔺) 9.2 s
thirdweb (minimal + tree-shaking) 4.85 KB (+0.19% 🔺) 97 ms (+0.19% 🔺) 402 ms (+15.28% 🔺) 499 ms
thirdweb/chains (tree-shaking) 506 B (+1.61% 🔺) 10 ms (0%) 133 ms (+165.21% 🔺) 143 ms
thirdweb/react (minimal + tree-shaking) 17.01 KB (+0.06% 🔺) 341 ms (+0.06% 🔺) 397 ms (-51.73% 🔽) 738 ms

@codecov
Copy link

codecov bot commented Nov 2, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 45.37%. Comparing base (7d36418) to head (0660416).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/utils/domains.ts 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5270   +/-   ##
=======================================
  Coverage   45.36%   45.37%           
=======================================
  Files        1067     1067           
  Lines       55449    55451    +2     
  Branches     3989     3992    +3     
=======================================
+ Hits        25157    25161    +4     
+ Misses      29601    29599    -2     
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 7d36418
packages 40.41% <75.00%> (+<0.01%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
packages/thirdweb/src/analytics/track/index.ts 100.00% <100.00%> (ø)
packages/thirdweb/src/utils/domains.ts 64.86% <66.66%> (+8.98%) ⬆️

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 2, 2024
Copy link
Contributor Author

gregfromstl commented Nov 2, 2024

Merge activity

  • Nov 1, 9:14 PM EDT: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 2, 3:22 AM EDT: A user added this pull request to the Graphite merge queue.
  • Nov 2, 3:34 AM EDT: A user merged this pull request with the Graphite merge queue.

Copy link
Member

@joaquim-verges joaquim-verges left a comment

Choose a reason for hiding this comment

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

@gregfromstl check the size job? something bumped it

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces the ability to configure the analytics endpoint for the `thirdweb` package, enhancing flexibility in specifying where analytics data is sent.

### Detailed summary
- Added a new configuration option for `analytics` in `apps/playground-web/src/lib/client.ts`.
- Replaced the hardcoded `ANALYTICS_ENDPOINT` URL with a dynamic URL using `getThirdwebBaseUrl` in `packages/thirdweb/src/analytics/track/index.ts`.
- Introduced a default value for `analytics` in `packages/thirdweb/src/utils/domains.ts`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-queue Adds the pull request to Graphite's merge queue. packages Playground Changes involving the Playground codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants