Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Dec 6, 2024

closes: DASH-547


PR-Codex overview

This PR primarily focuses on removing obsolete components and modifying existing ones to streamline the codebase. It introduces changes to the handling of publisher profiles and social media integration while enhancing the user interface components.

Detailed summary

  • Deleted several unused components, including MetaIcon, MediumIcon, and TelegramIcon.
  • Updated retry option to false in multiple queryOptions.
  • Refactored publisher profile fetching logic to utilize social profiles.
  • Replaced console logging with structured error handling in various components.
  • Simplified the ProfileUI by integrating ProfileHeader.
  • Enhanced avatar handling with AccountAvatar and AccountName components.
  • Removed unnecessary imports and unused functions related to publisher profiles.
  • Improved the replaceDeployerAddress function for better address formatting.

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

@vercel
Copy link

vercel bot commented Dec 6, 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 Dec 6, 2024 2:09am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2024 2:09am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2024 2:09am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2024 2:09am

@changeset-bot
Copy link

changeset-bot bot commented Dec 6, 2024

🦋 Changeset detected

Latest commit: c8dfeb7

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 Dec 6, 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.

@jnsdls jnsdls marked this pull request as ready for review December 6, 2024 00:20
@github-actions github-actions bot added Dashboard Involves changes to the Dashboard. packages SDK Involves changes to the thirdweb SDK labels Dec 6, 2024
Copy link
Member Author

jnsdls commented Dec 6, 2024

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

@jnsdls jnsdls force-pushed the 12-05-use_social_sdk_for_publisher_page branch 2 times, most recently from e447da3 to fc14c23 Compare December 6, 2024 00:22
@linear
Copy link

linear bot commented Dec 6, 2024

@jnsdls jnsdls added the DO NOT MERGE This pull request is still in progress and is not ready to be merged. label Dec 6, 2024 — with Graphite App
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.71 KB (0%) 915 ms (0%) 3.2 s (+10.77% 🔺) 4.1 s
thirdweb (cjs) 106.23 KB (0%) 2.2 s (0%) 6.3 s (+9.05% 🔺) 8.4 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 113 ms (-8.52% 🔽) 224 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 54 ms (+37.28% 🔺) 64 ms
thirdweb/react (minimal + tree-shaking) 18.77 KB (0%) 376 ms (0%) 466 ms (+1.55% 🔺) 841 ms

@codecov
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.80%. Comparing base (7bbc173) to head (ed0886a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5639   +/-   ##
=======================================
  Coverage   47.80%   47.80%           
=======================================
  Files        1090     1090           
  Lines       56691    56694    +3     
  Branches     4304     4303    -1     
=======================================
+ Hits        27100    27103    +3     
  Misses      28893    28893           
  Partials      698      698           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 7bbc173
packages 43.55% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
...rdweb/src/react/web/ui/prebuilt/Account/avatar.tsx 50.87% <100.00%> (+0.87%) ⬆️
...dweb/src/react/web/ui/prebuilt/Account/balance.tsx 80.39% <100.00%> (+0.39%) ⬆️
...hirdweb/src/react/web/ui/prebuilt/Account/name.tsx 68.18% <100.00%> (+0.73%) ⬆️

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 6, 2024

Merge activity

jnsdls added a commit that referenced this pull request Dec 6, 2024
closes: DASH-547

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on removing unused components and optimizing existing code related to publisher profiles and social media integration. It also introduces improvements to error handling and modifies the account components to avoid retrying on failures.

### Detailed summary
- Deleted several unused icon and component files.
- Set `retry: false` for account components in `thirdweb`.
- Added `replaceDeployerAddress` function to `publisher-utils`.
- Refactored profile handling to utilize social profiles.
- Removed unused profile schema definitions.
- Updated `ProfileUI` to use `ProfileHeader` for displaying user info.
- Simplified `ContractPublisher` to use `AccountProvider`.
- Enhanced error handling in various components.

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

<!-- end pr-codex -->
@jnsdls jnsdls force-pushed the 12-05-use_social_sdk_for_publisher_page branch from f77a1b8 to c8dfeb7 Compare December 6, 2024 01:33
closes: DASH-547

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on removing unused components and code, updating the handling of publisher profiles, and enhancing the user interface components related to account and publisher display.

### Detailed summary
- Deleted unused files: `MetaIcon.tsx`, `MediumIcon.tsx`, `TelegramIcon.tsx`, `edit-profile.tsx`, `masked-avatar.tsx`, `PublisherSocials.tsx`.
- Updated `retry` option to `false` in several `queryOptions`.
- Refactored publisher profile fetching and display logic.
- Introduced `replaceDeployerAddress` function for address formatting.
- Updated `ProfileUI` to use `ProfileHeader` component.
- Enhanced `ContractPublisher` component with `AccountProvider`.
- Removed console logging and unused variables throughout the code.

> ✨ 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

Dashboard Involves changes to the Dashboard. DO NOT MERGE This pull request is still in progress and is not ready to be merged. packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants