Skip to content
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

[TOOL-2807] Nebula: Fix incorrect prepared transaction object, Fix sign_transaction action not shown properly on page reload #5809

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Dec 19, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR updates the handling of chat messages and transaction data in the nebula-app. It introduces a new structure for transaction data and modifies how chat messages are processed, particularly focusing on the "action" role.

Detailed summary

  • Added action role to the history type in types.ts.
  • Replaced SendTransactionOption with NebulaTxData in chat.ts.
  • Enhanced message processing in ChatPageContent.tsx to handle action messages.
  • Updated Chats.tsx to use NebulaTxData for transaction data.
  • Adjusted transaction preparation in SendTransactionButton.

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

Copy link

linear bot commented Dec 19, 2024

Copy link

changeset-bot bot commented Dec 19, 2024

⚠️ No Changeset found

Latest commit: 74a1d99

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

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

Copy link
Member Author

MananTank commented Dec 19, 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.

@MananTank MananTank force-pushed the 12-20-_tool-2807_nebula_fix_incorrect_prepared_transaction_object_fix_sign_transaction_action_not_shown_properly_on_page_reload branch from 4fa3eb7 to 32f1bbf Compare December 19, 2024 20:45
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 19, 2024 20:46 Inactive
@MananTank MananTank changed the base branch from 12-20-_tool-2800_insight_playground_combine_all_filter_query_params_in_a_group to main December 19, 2024 20:46
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 19, 2024 20:46 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 19, 2024 20:46 Inactive
@MananTank MananTank force-pushed the 12-20-_tool-2807_nebula_fix_incorrect_prepared_transaction_object_fix_sign_transaction_action_not_shown_properly_on_page_reload branch from 32f1bbf to 74a1d99 Compare December 19, 2024 20:48
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 19, 2024 20:48 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 19, 2024 20:48 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 19, 2024 20:49 Inactive
Copy link
Contributor

github-actions bot commented Dec 19, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.02 KB (0%) 901 ms (0%) 4.1 s (+8.55% 🔺) 5 s
thirdweb (cjs) 110.76 KB (0%) 2.3 s (0%) 6 s (-5.29% 🔽) 8.2 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 291 ms (+39.09% 🔺) 403 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 47 ms (-25.49% 🔽) 57 ms
thirdweb/react (minimal + tree-shaking) 19.1 KB (0%) 383 ms (0%) 531 ms (+28.79% 🔺) 913 ms

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.34%. Comparing base (fa26eef) to head (b2a52d9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5809   +/-   ##
=======================================
  Coverage   53.34%   53.34%           
=======================================
  Files        1101     1101           
  Lines       59124    59124           
  Branches     4825     4825           
=======================================
  Hits        31541    31541           
  Misses      26864    26864           
  Partials      719      719           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from fa26eef
packages 50.56% <ø> (ø)

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

Copy link

graphite-app bot commented Dec 19, 2024

Merge activity

…gn_transaction action not shown properly on page reload (#5809)

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `Chat` component's handling of transaction messages, introducing a new transaction data structure, and modifying related components to support this change.

### Detailed summary
- Updated `role` in `types.ts` to include `"action"`.
- Replaced `SendTransactionOption` with `NebulaTxData` in `chat.ts`.
- Refactored message handling in `ChatPageContent.tsx` to support transaction messages.
- Created `NebulaTxData` type with properties for transaction details.
- Adjusted `Chats.tsx` to utilize `NebulaTxData` in various functions.
- Modified `SendTransactionButton` to prepare and send transactions using the new data structure.

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

<!-- end pr-codex -->
@MananTank MananTank force-pushed the 12-20-_tool-2807_nebula_fix_incorrect_prepared_transaction_object_fix_sign_transaction_action_not_shown_properly_on_page_reload branch from 74a1d99 to b2a52d9 Compare December 19, 2024 21:14
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 19, 2024 21:14 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 19, 2024 21:14 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 19, 2024 21:14 Inactive
@graphite-app graphite-app bot merged commit b2a52d9 into main Dec 19, 2024
32 checks passed
@graphite-app graphite-app bot deleted the 12-20-_tool-2807_nebula_fix_incorrect_prepared_transaction_object_fix_sign_transaction_action_not_shown_properly_on_page_reload branch December 19, 2024 21:23
@vercel vercel bot temporarily deployed to Production – thirdweb_playground December 19, 2024 21:23 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 December 19, 2024 21:23 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui December 19, 2024 21:23 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