Skip to content

[DASH-624] Add tracking in insight playground #5737

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

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Dec 13, 2024

Problem solved

DASH-624


PR-Codex overview

This PR focuses on enhancing the CodeBlockContainer and related components to support a new onCopy callback, which allows for custom actions when code is copied. Additionally, it integrates tracking events for user interactions in the BlueprintPlayground component.

Detailed summary

  • Added onCopy prop to CodeBlockContainer, RenderCode, PlainTextCodeBlock, and CodeClient.
  • Updated onClick handler in CodeBlockContainer to call onCopy and execute the new onCopy prop.
  • Integrated useTrack for tracking events in BlueprintPlayground and PlaygroundHeader.
  • Added tracking for "run", "copy-url", and "copy-response" actions in BlueprintPlayground and ResponseSection.

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

Copy link

linear bot commented Dec 13, 2024

Copy link

vercel bot commented Dec 13, 2024

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

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 9:13pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Dec 13, 2024 9:13pm
thirdweb_playground ⬜️ Skipped (Inspect) Dec 13, 2024 9:13pm
wallet-ui ⬜️ Skipped (Inspect) Dec 13, 2024 9:13pm

Copy link

changeset-bot bot commented Dec 13, 2024

⚠️ No Changeset found

Latest commit: 9954b37

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 13, 2024 21:01 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 13, 2024 21:01 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 13, 2024 21:01 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Dec 13, 2024
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@MananTank MananTank marked this pull request as ready for review December 13, 2024 21:01
Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.89%. Comparing base (9b58a08) to head (9954b37).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5737   +/-   ##
=======================================
  Coverage   52.89%   52.89%           
=======================================
  Files        1099     1099           
  Lines       59010    59010           
  Branches     4791     4791           
=======================================
  Hits        31211    31211           
  Misses      27083    27083           
  Partials      716      716           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 9b58a08
packages 49.99% <ø> (ø)

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

Copy link
Contributor

github-actions bot commented Dec 13, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.94 KB (0%) 899 ms (0%) 2.6 s (-9.36% 🔽) 3.5 s
thirdweb (cjs) 110.78 KB (0%) 2.3 s (0%) 5.9 s (+2.05% 🔺) 8.1 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 220 ms (+29.76% 🔺) 332 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 37 ms (-36.53% 🔽) 47 ms
thirdweb/react (minimal + tree-shaking) 19.03 KB (0%) 381 ms (0%) 454 ms (-2.28% 🔽) 835 ms

Copy link
Contributor

graphite-app bot commented Dec 13, 2024

Merge activity

## Problem solved

DASH-624

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `CodeBlockContainer` and related components to support an `onCopy` callback, allowing for custom actions when code is copied. It also introduces tracking for user interactions within the `BlueprintPlayground` component.

### Detailed summary
- Added `onCopy` prop to `CodeBlockContainer`, `RenderCode`, `PlainTextCodeBlock`, and `CodeClient`.
- Updated button click handler in `CodeBlockContainer` to call `onCopy` and pass the copied code.
- Integrated `useTrack` for tracking user events in `BlueprintPlayground`.
- Added tracking for "run", "copy-url", and "copy-response" actions in relevant components.

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

<!-- end pr-codex -->
@jnsdls jnsdls force-pushed the 12-14-_dash-624_add_tracking_in_insight_playground branch from 6eabe57 to 9954b37 Compare December 13, 2024 21:10
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 13, 2024 21:11 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 13, 2024 21:11 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 13, 2024 21:11 Inactive
@graphite-app graphite-app bot merged commit 9954b37 into main Dec 13, 2024
31 checks passed
@graphite-app graphite-app bot deleted the 12-14-_dash-624_add_tracking_in_insight_playground branch December 13, 2024 21:15
@vercel vercel bot temporarily deployed to Production – wallet-ui December 13, 2024 21:15 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 December 13, 2024 21:15 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground December 13, 2024 21:15 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dashboard Involves changes to the Dashboard.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants