Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Oct 2, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on refactoring the proposal creation UI components in a decentralized application. It replaces the Drawer component with a Sheet component for better styling and functionality, and improves the form handling for creating proposals.

Detailed summary

  • Deleted proposal-form.tsx.
  • Modified metadata-header.tsx to adjust the className for the Link.
  • Changed layout in page.tsx from Flex to div for better structure.
  • Refactored ProposalButton in proposal-button.tsx:
    • Replaced Drawer with Sheet.
    • Updated form handling using react-hook-form.
    • Added error handling and form validation for the proposal description.

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 2, 2024

⚠️ No Changeset found

Latest commit: 4b80b25

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 Oct 2, 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 3, 2024 5:14pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Oct 3, 2024 5:14pm
thirdweb_playground ⬜️ Skipped (Inspect) Oct 3, 2024 5:14pm
wallet-ui ⬜️ Skipped (Inspect) Oct 3, 2024 5:14pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 2, 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.

@vercel vercel bot temporarily deployed to Preview – wallet-ui October 2, 2024 22:08 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 2, 2024 22:08 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 2, 2024 22:08 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Oct 2, 2024
Copy link
Contributor Author

kien-ngo commented Oct 2, 2024

@kien-ngo kien-ngo changed the title Update [Dashboard] Vote contract proposal drawer Oct 2, 2024
@kien-ngo kien-ngo marked this pull request as ready for review October 2, 2024 22:08
@codecov
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.61%. Comparing base (47f5387) to head (4b80b25).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4899   +/-   ##
=======================================
  Coverage   47.61%   47.61%           
=======================================
  Files        1057     1057           
  Lines       57221    57221           
  Branches     3924     3924           
=======================================
  Hits        27246    27246           
  Misses      29286    29286           
  Partials      689      689           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 47f5387
packages 43.37% <ø> (ø)

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 41.95 KB (0%) 840 ms (0%) 3.1 s (+32.81% 🔺) 3.9 s
thirdweb (cjs) 101.63 KB (0%) 2.1 s (0%) 5.8 s (-15.82% 🔽) 7.8 s
thirdweb (minimal + tree-shaking) 4.82 KB (0%) 97 ms (0%) 262 ms (+27.37% 🔺) 358 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 80 ms (-46.55% 🔽) 90 ms
thirdweb/react (minimal + tree-shaking) 17.22 KB (-0.06% 🔽) 345 ms (-0.06% 🔽) 748 ms (-2.96% 🔽) 1.1 s

@kien-ngo kien-ngo force-pushed the kien/remove-react-icons-3 branch from 25f91c3 to fd0e97a Compare October 2, 2024 22:12
@kien-ngo kien-ngo force-pushed the kien/proposal-drawer branch from ab0af0d to 16301f8 Compare October 2, 2024 22:12
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 2, 2024 22:12 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 2, 2024 22:12 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 2, 2024 22:12 Inactive
@kien-ngo kien-ngo force-pushed the kien/remove-react-icons-3 branch from fd0e97a to 594ca68 Compare October 3, 2024 02:20
@kien-ngo kien-ngo force-pushed the kien/proposal-drawer branch from 16301f8 to 71950c5 Compare October 3, 2024 02:20
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 3, 2024 02:20 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 3, 2024 02:20 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 3, 2024 02:20 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 3, 2024

Merge activity

  • Oct 3, 12:00 PM EDT: MananTank added this pull request to the Graphite merge queue.
  • Oct 3, 12:08 PM EDT: The Graphite merge queue couldn't merge this PR because it had conflicts with the trunk branch.
  • Oct 3, 1:01 PM EDT: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.
  • Oct 3, 1:11 PM EDT: kien-ngo added this pull request to the Graphite merge queue.
  • Oct 3, 1:16 PM EDT: kien-ngo merged this pull request with the Graphite merge queue.

@MananTank MananTank changed the base branch from kien/remove-react-icons-3 to graphite-base/4899 October 3, 2024 16:08
@kien-ngo kien-ngo force-pushed the kien/proposal-drawer branch from 298ed24 to f8bbc57 Compare October 3, 2024 17:00
@kien-ngo kien-ngo force-pushed the graphite-base/4899 branch from 9ec8c9f to 47f5387 Compare October 3, 2024 17:00
@kien-ngo kien-ngo changed the base branch from graphite-base/4899 to main October 3, 2024 17:00
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 3, 2024 17:00 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 3, 2024 17:00 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 3, 2024 17:00 Inactive
## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on refactoring the proposal creation UI components, replacing a `Drawer` with a `Sheet` for better user experience, and enhancing the proposal submission process with improved form handling and error management.

### Detailed summary
- Deleted `proposal-form.tsx`.
- Modified `metadata-header.tsx` className for better styling.
- Replaced `Flex` components with `div` for layout in `page.tsx`.
- Refactored `ProposalButton` to use `Sheet` instead of `Drawer`.
- Added form handling with `react-hook-form` in `ProposalButton`.
- Implemented error handling and user feedback with `toast` in the proposal submission process.

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

<!-- end pr-codex -->
@kien-ngo kien-ngo force-pushed the kien/proposal-drawer branch from f8bbc57 to 4b80b25 Compare October 3, 2024 17:11
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 3, 2024 17:11 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 3, 2024 17:12 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 3, 2024 17:12 Inactive
@graphite-app graphite-app bot merged commit 4b80b25 into main Oct 3, 2024
26 checks passed
@graphite-app graphite-app bot deleted the kien/proposal-drawer branch October 3, 2024 17:16
@vercel vercel bot temporarily deployed to Production – wallet-ui October 3, 2024 17:16 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground October 3, 2024 17:16 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 October 3, 2024 17:16 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