Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Apr 18, 2025


PR-Codex overview

This PR refines the useDashboardRouter functionality to improve navigation performance by implementing a transition mechanism, replacing the previous loading state management, and enhancing the DashboardRouterTopProgressBar for better route loading indication.

Detailed summary

  • Removed usePathname and useSearchParams from useRouterLoadingStatus.
  • Introduced RouteStartTransitionFn to manage transition states.
  • Updated useDashboardRouter to use startTransition for router.push and router.replace.
  • Renamed isLoading to isRouteLoading for clarity.
  • Modified DashboardRouterTopProgressBarInner to track isRouteLoading.
  • Removed Suspense wrapping in DashboardRouterTopProgressBar.

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

@changeset-bot
Copy link

changeset-bot bot commented Apr 18, 2025

⚠️ No Changeset found

Latest commit: 17b8368

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
Copy link

vercel bot commented Apr 18, 2025

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 Apr 18, 2025 4:19pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Apr 18, 2025 4:19pm
login ⬜️ Skipped (Inspect) Apr 18, 2025 4:19pm
thirdweb_playground ⬜️ Skipped (Inspect) Apr 18, 2025 4:19pm
wallet-ui ⬜️ Skipped (Inspect) Apr 18, 2025 4:19pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 18, 2025 15:23 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 18, 2025 15:23 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 18, 2025 15:23 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 18, 2025 15:23 Inactive
@MananTank MananTank marked this pull request as ready for review April 18, 2025 15:23
@MananTank MananTank requested review from a team as code owners April 18, 2025 15:23
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Apr 18, 2025
Copy link
Member Author

MananTank commented Apr 18, 2025


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.

@codecov
Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.17%. Comparing base (24319f4) to head (17b8368).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6769   +/-   ##
=======================================
  Coverage   55.17%   55.17%           
=======================================
  Files         896      896           
  Lines       56921    56921           
  Branches     3942     3942           
=======================================
  Hits        31407    31407           
  Misses      25418    25418           
  Partials       96       96           
Flag Coverage Δ
packages 55.17% <ø> (ø)
🚀 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.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 18, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 50.75 KB (0%) 1.1 s (0%) 212 ms (+94.97% 🔺) 1.3 s
thirdweb (cjs) 139.02 KB (0%) 2.8 s (0%) 360 ms (+39.43% 🔺) 3.2 s
thirdweb (minimal + tree-shaking) 5.59 KB (0%) 112 ms (0%) 60 ms (+410.48% 🔺) 172 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 46 ms (+1013.52% 🔺) 56 ms
thirdweb/react (minimal + tree-shaking) 19.36 KB (0%) 388 ms (0%) 100 ms (+391.82% 🔺) 487 ms

@MananTank MananTank force-pushed the mnn/better-progress-bar branch from dd1ccd0 to d14be78 Compare April 18, 2025 15:28
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 18, 2025 15:29 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 18, 2025 15:29 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 18, 2025 15:29 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 18, 2025 15:29 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 18, 2025

Merge activity

…#6769)

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR refines the `useDashboardRouter` functionality by implementing a progress bar during route transitions and removing the use of `LoadingRouteHref`. It introduces `RouteStartTransitionFn` for managing transition states and modifies the `DashboardRouterTopProgressBar` to reflect these changes.

### Detailed summary
- Removed `usePathname` and `useSearchParams` from `useRouterLoadingStatus`.
- Replaced `LoadingRouteHref` with `RouteStartTransitionFn` for managing transition states.
- Updated `replace` and `push` methods in `useDashboardRouter` to use `startTransition`.
- Refactored `DashboardRouterTopProgressBarInner` to use `isRouteLoading`.
- Adjusted progress bar visibility and state management based on `isRouteLoading`.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the mnn/better-progress-bar branch from d14be78 to 17b8368 Compare April 18, 2025 16:12
@vercel vercel bot temporarily deployed to Preview – login April 18, 2025 16:12 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 18, 2025 16:12 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 18, 2025 16:12 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 18, 2025 16:12 Inactive
@graphite-app graphite-app bot merged commit 17b8368 into main Apr 18, 2025
23 checks passed
@graphite-app graphite-app bot deleted the mnn/better-progress-bar branch April 18, 2025 16:20
@vercel vercel bot temporarily deployed to Production – thirdweb_playground April 18, 2025 16:20 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 April 18, 2025 16:20 Inactive
@vercel vercel bot temporarily deployed to Production – login April 18, 2025 16:20 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui April 18, 2025 16:20 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.

3 participants