Repository navigation
feat: add "Your Positions" header with a transactions link on the dashboard - #3104
Conversation
…hboard The transaction history page at /history was orphaned: ROUTES.history was referenced nowhere, and the only inbound links were two hard-coded /history?marketName= links inside the Swap result and CoW open-orders warning. There was no way to reach it from the UI. Add a section header row at the top of the dashboard content band, above the mobile Supply/Borrow tab switcher and the four position cards, with the title on the left and the link out on the right. Gated on currentAccount to match the cards below it, which are replaced by the connect-wallet prompt when disconnected. The title uses the h2 variant and the button the outlined (secondary pill) variant, both of which already match the design spec exactly — no new styles were needed. Also correct the dark value of the semantic/button token button-bg-secondary, which had drifted from the design source: #28282a against Figma's #1e1e20. The token is read only by secondaryPillDark in theme.tsx, so this is scoped to variant="outlined" in dark mode. Its light value, and both shadow layers in both modes, already matched.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
📦 Next.js Bundle Analysis for aave-uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| Page | Size (compressed) |
|---|---|
global |
1.34 MB (🟡 +15 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Two Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
| Page | Size (compressed) | First Load |
|---|---|---|
/ |
91.89 KB (🟡 +79 B) |
1.43 MB |
/dashboard |
81.82 KB (🟡 +79 B) |
1.42 MB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
Brings in #3104, which adds the dashboard's "Your Positions" header and its link to /history — the entry point this branch's page was built for, and the reason it no longer carries a back button of its own. Conflicts were confined to the four compiled locale catalogs (src/locales/*/messages.js). Those are generated, and their conflict markers break lingui's own parse, so rather than hand-editing minified output they were regenerated with `pnpm i18n` from the source catalog, which merged cleanly: 993 messages, this branch's 991 plus main's "View transactions" and "Your Positions".
Uh oh!
There was an error while loading. Please reload this page.