You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TOOL-3419] Nebula: Add hardcoded reply for Nebula Capabilities (#6298)
<!--
## 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 focuses on enhancing the user interface and functionality of various components in the dashboard application, particularly in handling links, chat interactions, and example prompts for a feature called Nebula.
### Detailed summary
- Updated `className` for improved styling in `markdown-renderer.tsx`.
- Changed `backgroundImage` gradient in `EmptyStateChatPageContent.tsx`.
- Added `target` attribute for external links in `Sidebar.tsx`.
- Introduced `examplePrompts` with new responses in `ChatPageContent.tsx`.
- Added `interceptedReply` to `ExamplePrompt` interface in `examplePrompts.ts`.
- Provided detailed descriptions of Nebula's capabilities in `examplePrompts.ts`.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
Copy file name to clipboardExpand all lines: apps/dashboard/src/app/nebula-app/(app)/data/examplePrompts.ts
+58-7Lines changed: 58 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,68 @@
1
1
typeExamplePrompt={
2
2
title: string;
3
3
message: string;
4
+
interceptedReply?: string;
4
5
};
5
6
6
-
// Note:
7
-
// Keep the title as short as possible so 2 of them can fit in a single row on desktop viewport
8
-
// title is only used for displaying the example - the `message` is sent to server when user clicks on the example - it can be as long and descriptive as needed
7
+
constwhatCanNebulaDoReply=`
8
+
Nebula is a natural language model with improved blockchain reasoning, autonomous transaction capabilities, and real-time access to the blockchain.
9
+
[Learn more about Nebula](https://portal.thirdweb.com/nebula)
10
+
11
+
Here are some example actions you can perform with Nebula:
12
+
13
+
### Bridge & Swap
14
+
Bridge and swap native currencies
15
+
- Swap 1 USDC to 1 USDT on the Ethereum Mainnet
16
+
- Bridge 0.5 ETH from Ethereum Mainnet to Polygon
17
+
18
+
### Transfer
19
+
Send native and ERC-20 currencies
20
+
- Send 0.1 ETH to vitalik.eth
21
+
- Transfer 1 USDC to saminacodes.eth on Base
22
+
23
+
### Deploy
24
+
Deploy published contracts
25
+
- Deploy a Token ERC20 Contract
26
+
- Deploy a Split contract with two recipients.
27
+
- Deploy an ERC1155 Contract named 'Hello World' with description 'Hello badges on Ethereum'
28
+
29
+
### Understand
30
+
Retrieve information about smart contracts.
31
+
- What ERC standards are implemented by contract address 0x59325733eb952a92e069C87F0A6168b29E80627f on Ethereum?
32
+
- What functions can I use to mint more of my contract's NFTs?
33
+
- What is the total supply of NFTs for my contract?
34
+
35
+
### Interact
36
+
Query wallet balances, addresses, and token holdings.
37
+
- How much ETH is in my wallet?
38
+
- What is the wallet address of vitalik.eth?
39
+
- Does my wallet hold USDC on Base?
40
+
41
+
### Explore
42
+
Access blockchain-specific data.
43
+
- What is the last block on zkSync?
44
+
- What is the current gas price on Avalanche C-Chain?
45
+
- Can you show me transaction details for 0xdfc450bb39e44bd37c22e0bfd0e5212edbea571e4e534d87b5cbbf06f10b9e04 on Optimism?
46
+
47
+
### Research
48
+
Obtain details about tokens, their addresses, and current prices.
49
+
- What is the address of USDC on Ethereum?
50
+
- Is there a UNI token on Arbitrum?
51
+
- What is the current price of ARB?
52
+
53
+
### Build
54
+
Implement features using Web3 SDKs and tools.
55
+
- How can I add a connect wallet button to my web app? I want to support users connecting with both email/social wallets and MetaMask and use smart wallets.
56
+
- Can you show me how to claim an NFT from an ERC721 using TypeScript?
57
+
- I have an ERC1155 contract from thirdweb. Can you show me how to generate and mint with a signature?
0 commit comments