Skip to content

fix ignore of mimeTime set in mediaRenderer #5683

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

dirtycajunrice
Copy link
Contributor

@dirtycajunrice dirtycajunrice commented Dec 10, 2024

Problem solved

CNCT-2634


PR-Codex overview

This PR modifies the return object in the useResolvedMediaType.ts file to enhance the isFetched property by including a check for mimeType.

Detailed summary

  • Updated the isFetched property in the returned object.
  • Changed the value of isFetched from resolvedMimeType.isFetched to resolvedMimeType.isFetched || !!mimeType.

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

Copy link

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

Copy link

changeset-bot bot commented Dec 10, 2024

⚠️ No Changeset found

Latest commit: f6dca69

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

Copy link
Contributor

graphite-app bot commented Dec 10, 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.

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Dec 10, 2024
Copy link
Contributor Author

dirtycajunrice commented Dec 10, 2024


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.

Copy link
Contributor

github-actions bot commented Dec 10, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.93 KB (0%) 899 ms (0%) 1.5 s (-25.66% 🔽) 2.4 s
thirdweb (cjs) 110.71 KB (0%) 2.3 s (0%) 4.8 s (+12.41% 🔺) 7 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 126 ms (-66.74% 🔽) 237 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 28 ms (-51.45% 🔽) 38 ms
thirdweb/react (minimal + tree-shaking) 19.07 KB (0%) 382 ms (0%) 741 ms (+142.54% 🔺) 1.2 s

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.28%. Comparing base (a9dd26c) to head (d74127f).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5683      +/-   ##
==========================================
+ Coverage   51.27%   51.28%   +0.01%     
==========================================
  Files        1092     1092              
  Lines       57346    57346              
  Branches     4685     4688       +3     
==========================================
+ Hits        29404    29410       +6     
+ Misses      27226    27220       -6     
  Partials      716      716              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from a9dd26c
packages 47.91% <100.00%> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
...react/web/ui/MediaRenderer/useResolvedMediaType.ts 89.18% <100.00%> (ø)

... and 3 files with indirect coverage changes

Copy link
Contributor

graphite-app bot commented Dec 11, 2024

Merge activity

  • Dec 10, 7:41 PM EST: A user added this pull request to the Graphite merge queue.
  • Dec 10, 7:46 PM EST: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Unit Tests').
  • Dec 11, 1:59 AM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 11, 2:29 AM EST: A user added this pull request to the Graphite merge queue.
  • Dec 11, 2:33 AM EST: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Unit Tests').
  • Dec 11, 2:33 AM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 11, 7:33 AM UTC: The merge label 'merge-queue' was removed. This PR will no longer be merged by the Graphite merge queue

joaquim-verges pushed a commit that referenced this pull request Dec 11, 2024
## Problem solved

CNCT-2634

<!-- start pr-codex -->

---

## PR-Codex overview
This PR modifies the `isFetched` property in the `useResolvedMediaType.ts` file to include an additional condition for its value, enhancing the logic that determines whether media type data has been successfully fetched.

### Detailed summary
- The `isFetched` property is updated to:
  - Use `resolvedMimeType.isFetched` or check if `mimeType` is truthy (`!!mimeType`).

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

<!-- end pr-codex -->
@joaquim-verges joaquim-verges force-pushed the 12-10-fix_ignore_of_mimetime_set_in_mediarenderer branch from 9760615 to d74127f Compare December 11, 2024 00:42
@joaquim-verges joaquim-verges added the merge-queue Adds the pull request to Graphite's merge queue. label Dec 11, 2024
## Problem solved

CNCT-2634

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the `isFetched` property in the `useResolvedMediaType.ts` file to include an additional condition based on `mimeType`. This change aims to enhance the logic determining if the media type has been successfully fetched.

### Detailed summary
- Updated the `isFetched` property:
  - Changed from `resolvedMimeType.isFetched` to `resolvedMimeType.isFetched || !!mimeType`.

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

<!-- end pr-codex -->
@joaquim-verges joaquim-verges force-pushed the 12-10-fix_ignore_of_mimetime_set_in_mediarenderer branch from d74127f to f6dca69 Compare December 11, 2024 07:29
@graphite-app graphite-app bot removed the merge-queue Adds the pull request to Graphite's merge queue. label Dec 11, 2024
@joaquim-verges joaquim-verges merged commit c91ca93 into main Dec 13, 2024
28 of 29 checks passed
@joaquim-verges joaquim-verges deleted the 12-10-fix_ignore_of_mimetime_set_in_mediarenderer branch December 13, 2024 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants