Skip to content

Move Contract page components to app router folder #2 (no code change) #5073

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

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Oct 17, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on refactoring the code structure by reorganizing the import paths and updating component references across various files in the apps/dashboard/src directory. It improves modularity and maintainability of the codebase.

Detailed summary

  • Updated import paths for several components in page.tsx files to use relative paths.
  • Renamed and relocated components such as ContractSplitPage, ContractProposalsPage, and ContractPermissionsPage.
  • Modified DistributeButton and SolidityInput imports to reflect new paths.
  • Removed unnecessary imports and organized hooks in the permissions components.
  • Adjusted the import of PrimaryDashboardButton to a new location in layout.tsx.

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

Copy link

changeset-bot bot commented Oct 17, 2024

⚠️ No Changeset found

Latest commit: 00a6a56

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 Oct 17, 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.

Copy link

vercel bot commented Oct 17, 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 Oct 17, 2024 9:08pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Oct 17, 2024 9:08pm
thirdweb_playground ⬜️ Skipped (Inspect) Oct 17, 2024 9:08pm
wallet-ui ⬜️ Skipped (Inspect) Oct 17, 2024 9:08pm

@vercel vercel bot temporarily deployed to Preview – docs-v2 October 17, 2024 20:53 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 17, 2024 20:53 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 17, 2024 20:53 Inactive
@MananTank MananTank marked this pull request as ready for review October 17, 2024 20:53
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Oct 17, 2024
Copy link
Member Author

MananTank commented Oct 17, 2024

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

Join @MananTank and the rest of your teammates on Graphite Graphite

Copy link
Contributor

github-actions bot commented Oct 17, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.81 KB (0%) 857 ms (0%) 581 ms (-3.66% 🔽) 1.5 s
thirdweb (cjs) 102.66 KB (0%) 2.1 s (0%) 1.5 s (+20.4% 🔺) 3.5 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 38 ms (-47.53% 🔽) 135 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 144 ms (+1454.47% 🔺) 154 ms
thirdweb/react (minimal + tree-shaking) 17.36 KB (0%) 348 ms (0%) 308 ms (+200.85% 🔺) 656 ms

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.29%. Comparing base (7855c3e) to head (00a6a56).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5073   +/-   ##
=======================================
  Coverage   45.29%   45.29%           
=======================================
  Files        1059     1059           
  Lines       54728    54728           
  Branches     3954     3954           
=======================================
  Hits        24791    24791           
  Misses      29246    29246           
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 7855c3e
packages 40.24% <ø> (ø)

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

Copy link
Contributor

graphite-app bot commented Oct 17, 2024

Merge activity

#5073)

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR refactors the structure of the dashboard application, changing the import paths for several components and pages to a more localized format. It also moves certain components related to contract management and permissions to new locations.

### Detailed summary
- Updated import paths for various pages and components to local paths.
- Moved `ContractSplitPage` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/split/ContractSplitPage.tsx`.
- Moved `DistributeButton` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/split/components/distribute-button.tsx`.
- Moved `ContractProposalsPage` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/proposals/ContractProposalsPage.tsx`.
- Moved `ContractEditModulesPage` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/ContractEditModulesPage.tsx`.
- Moved `ContractPermissionsPage` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/permissions/ContractPermissionsPage.tsx`.
- Moved `ContractExplorerPage` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/explorer/ContractExplorerPage.tsx`.
- Moved `ContractSettingsPage` to `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/ContractSettingsPage.tsx`.
- Updated import statements in `events-feed.tsx` and `permissions/index.tsx` to reflect new paths.
- Adjusted type imports in various components to align with the new structure.

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

<!-- end pr-codex -->
@jnsdls jnsdls force-pushed the 10-18-move_contract_page_components_to_app_router_folder_2_no_code_change_ branch from 5d4ef44 to 00a6a56 Compare October 17, 2024 21:03
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 17, 2024 21:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 17, 2024 21:03 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 17, 2024 21:03 Inactive
@graphite-app graphite-app bot merged commit 00a6a56 into main Oct 17, 2024
31 checks passed
@graphite-app graphite-app bot deleted the 10-18-move_contract_page_components_to_app_router_folder_2_no_code_change_ branch October 17, 2024 21:09
@vercel vercel bot temporarily deployed to Production – thirdweb_playground October 17, 2024 21:09 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 October 17, 2024 21:09 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui October 17, 2024 21:09 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