feat: dashboard connect wallet info - #427
Conversation
🦋 Changeset detectedLatest commit: 76e4788 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Pull Request Overview
This PR improves the user experience on the dashboard by replacing generic fallback content with clear, localized messages when the wallet is not connected. The changes focus on providing helpful prompts to users on the Positions and Activity pages.
- Adds localized "connect wallet" messages for positions and activity pages
- Replaces generic fallback components with custom styled components showing the localized messages
- Updates styling for better layout consistency
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/widget/src/translation/English/translations.json | Adds new translation keys for connect wallet prompts |
| packages/widget/src/pages/details/activity-page/hooks/use-activity-page.tsx | Replaces fallback content with localized connect wallet message |
| packages/widget/src/pages-dashboard/overview/positions/styles.css.ts | Updates container style to use full height |
| packages/widget/src/pages-dashboard/overview/positions/positions.page.tsx | Replaces fallback content with localized connect wallet message |
| .changeset/common-onions-cry.md | Adds changelog entry for the feature |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This pull request improves the user experience on the dashboard by providing clear, user-friendly messages when the wallet is not connected, instead of generic fallback content. It also ensures these messages are localized and updates relevant styles for better layout consistency.
User Experience Improvements:
Localization:
useTranslationhook into both the positions and activity dashboard pages to support the new localized messages. [1] [2]Styling:
containerstyle inpositions/styles.css.tsto useheight: 100%for improved layout consistency.Changelog: