-
Notifications
You must be signed in to change notification settings - Fork 55
Profile page: Add vCOW swap feature cards #2564
Conversation
|
Noticed on medium resolution, the COW balance token icon position/margin could be improved. Will handle in a up following PR (cc @elena-zh ) |
|
Hey @fairlighteth , great changes! What I'd like to add, is that it would be nice to make alignment of all components more or less the same in a middle-screen devices. Look: Another proposal I'd like to make, is to re-use a component from the bottom affiliate forms to show Vested tokens amount. WDYT? Just to confirm: if a user does not have (v)COW tokens on the balance/not connected, we will show a regular Profile page without newly added components, right? I have to notice, that I was not able to test cases when a user does not have vCOW card container, or COW balance only, so I will retest it later. |
* Add governance card banner. * Governance banner update styles.
Updated the tooltip icons to be dynamically use the right dark/light mode colors. Also updated the (swap) container background color to match the others below: Screen.Recording.2022-03-21.at.16.35.35.mov |
@elena-zh Made some updates to properly align elements for different viewports: |
@elena-zh I think at the very least we show the COW balance + governance banner. I think it's beneficial to show both these to make users more aware of COW/Governance. Perhaps we could even add a button 'Buy COW token' when your balance is 0. Obviously this can only be implemented once vCOW is swappable. the vCOW / convert card we would not show, unless you have >0 vCOW balance. |
@alfetopito Right, forgot that it would break the build, fixed now! |
Hey @fairlighteth , changes LGTM now! Also, it would be nice to show full amounts on hover as we do for all amounts across the app But I feel that everything I have mention is our of scope of the current task. Thanks! |
@elena-zh Thanks for reviewing again:
Yes agreed, let's keep this in mind when the actual balances are connected (now hard coded). |
@fairlighteth , I have created #2571 task for this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look great to me!
I only have two tiny nitpicks, which you can ignore.
One is, that i think in responsive, is more relevant the COW than vCow so it should be higher:
The other, is I kind of liked more your original proposal for the background of the vested amount. I agree with making it coherent, but maybe your proposed background was nicer than the one we had for the affiliate.
Yes, I can see that. I think I'll add a custom 'order' prop on an upcoming PR for the vCOW container.
Agreed. Didn't want to add too many changes on this PR and just make it coherent instead. Will adjust this in an upcoming PR for all elements on this page. |
* Profile page: Add vCOW swap feature cards (#2564) * Style vCOW swap cards. * Style vCOW swap cards. (#2565) * Add governance card banner. (#2566) * Add governance card banner. * Governance banner update styles. * Make question icon use dynamic dark/light mode colors. * Center content properly cross devices. * Dummy values. * Disable unused vars * Cleanup obsolete color * Styling of vesting breakdown tooltip.
* Profile page: Add vCOW swap feature cards (#2564) * Style vCOW swap cards. * Style vCOW swap cards. (#2565) * Add governance card banner. (#2566) * Add governance card banner. * Governance banner update styles. * Make question icon use dynamic dark/light mode colors. * Center content properly cross devices. * Dummy values. * Disable unused vars * Cleanup obsolete color * Styled governance banner and inner card container. * Fix code style issues with Prettier * Style update (trigger build) Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
* Profile page: Add vCOW swap feature cards (#2564) * Style vCOW swap cards. * Style vCOW swap cards. (#2565) * Add governance card banner. (#2566) * Add governance card banner. * Governance banner update styles. * Make question icon use dynamic dark/light mode colors. * Center content properly cross devices. * Dummy values. * Disable unused vars * Cleanup obsolete color * Connect UI and vCow data * Added PR changes * Remove some previous change * Added swapAll abi (#2576) Co-authored-by: fairlight <31534717+fairlighteth@users.noreply.github.com>
* Update FAQ to reflect Token Launch This PR pushes a new content section from lines 559 - 627 that addresses questions related to the token launch. I have tried format everything as good as I possibly know/can, apologies if it needs to be reworked. Questions are: 562 - Does CowSwap Have a token? 580 - Is there a proposal to make vCOW transferrable? 585 - what is the purspose of the COW tokens? 605 - what was the criteria for the token airdrop? * Fix code style issues with Prettier * Fix building error * Add space * Profile page: Add vCOW swap feature cards (#2564) * Style vCOW swap cards. * Style vCOW swap cards. (#2565) * Add governance card banner. (#2566) * Add governance card banner. * Governance banner update styles. * Make question icon use dynamic dark/light mode colors. * Center content properly cross devices. * Dummy values. * Disable unused vars * Cleanup obsolete color * Moving custom components to mod file to avoid circular dependencies/lazy loading issues (#2580) Co-authored-by: Leandro <leandro.boscariol@gnosis.io> * Remove isClaiming flag (#2586) * Remove lint warn (#2587) * Update index.tsx * Fix code style issues with Prettier * Split and refactor FAQ * Update FAQ to reflect Token Launch (#2540) * Update FAQ to reflect Token Launch This PR pushes a new content section from lines 559 - 627 that addresses questions related to the token launch. I have tried format everything as good as I possibly know/can, apologies if it needs to be reworked. Questions are: 562 - Does CowSwap Have a token? 580 - Is there a proposal to make vCOW transferrable? 585 - what is the purspose of the COW tokens? 605 - what was the criteria for the token airdrop? * Fix code style issues with Prettier * Fix building error * Add space * Update index.tsx * Fix code style issues with Prettier * Add punctuantions Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: Anxo Rodriguez <anxolin@gmail.com> * Fix links * Add footer * Add footer to index too * Update metrics * Fix internal links * Hide back in home * Link to FAQ * Correct year * Fix typo. Fixes #2067 * Re-style FAQ menu. * Title styles. * Cleanup console.log * Fix merge and style back to top + misc. * Text updates. * Fix code style issues with Prettier * Remove click events. * Fix lint issue. * Remove is claim enabled Co-authored-by: Alex V <80408352+avsavsavs@users.noreply.github.com> Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: Anxo Rodriguez <anxolin@gmail.com> Co-authored-by: Leandro Boscariol <alfetopito@users.noreply.github.com> Co-authored-by: Leandro <leandro.boscariol@gnosis.io> Co-authored-by: w3stside <david.sato64@gmail.com>
* Split refactor faq (#2592) * Update FAQ to reflect Token Launch This PR pushes a new content section from lines 559 - 627 that addresses questions related to the token launch. I have tried format everything as good as I possibly know/can, apologies if it needs to be reworked. Questions are: 562 - Does CowSwap Have a token? 580 - Is there a proposal to make vCOW transferrable? 585 - what is the purspose of the COW tokens? 605 - what was the criteria for the token airdrop? * Fix code style issues with Prettier * Fix building error * Add space * Update index.tsx * Fix code style issues with Prettier * Split and refactor FAQ * Fix links * Add footer * Add footer to index too * Update metrics * Fix internal links * Hide back in home * Link to FAQ * Correct year * Fix typo. Fixes #2067 Co-authored-by: Alex V <80408352+avsavsavs@users.noreply.github.com> Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * Re-style FAQ menu. (#2611) * Update FAQ to reflect Token Launch This PR pushes a new content section from lines 559 - 627 that addresses questions related to the token launch. I have tried format everything as good as I possibly know/can, apologies if it needs to be reworked. Questions are: 562 - Does CowSwap Have a token? 580 - Is there a proposal to make vCOW transferrable? 585 - what is the purspose of the COW tokens? 605 - what was the criteria for the token airdrop? * Fix code style issues with Prettier * Fix building error * Add space * Profile page: Add vCOW swap feature cards (#2564) * Style vCOW swap cards. * Style vCOW swap cards. (#2565) * Add governance card banner. (#2566) * Add governance card banner. * Governance banner update styles. * Make question icon use dynamic dark/light mode colors. * Center content properly cross devices. * Dummy values. * Disable unused vars * Cleanup obsolete color * Moving custom components to mod file to avoid circular dependencies/lazy loading issues (#2580) Co-authored-by: Leandro <leandro.boscariol@gnosis.io> * Remove isClaiming flag (#2586) * Remove lint warn (#2587) * Update index.tsx * Fix code style issues with Prettier * Split and refactor FAQ * Update FAQ to reflect Token Launch (#2540) * Update FAQ to reflect Token Launch This PR pushes a new content section from lines 559 - 627 that addresses questions related to the token launch. I have tried format everything as good as I possibly know/can, apologies if it needs to be reworked. Questions are: 562 - Does CowSwap Have a token? 580 - Is there a proposal to make vCOW transferrable? 585 - what is the purspose of the COW tokens? 605 - what was the criteria for the token airdrop? * Fix code style issues with Prettier * Fix building error * Add space * Update index.tsx * Fix code style issues with Prettier * Add punctuantions Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: Anxo Rodriguez <anxolin@gmail.com> * Fix links * Add footer * Add footer to index too * Update metrics * Fix internal links * Hide back in home * Link to FAQ * Correct year * Fix typo. Fixes #2067 * Re-style FAQ menu. * Title styles. * Cleanup console.log * Fix merge and style back to top + misc. * Text updates. * Fix code style issues with Prettier * Remove click events. * Fix lint issue. * Remove is claim enabled Co-authored-by: Alex V <80408352+avsavsavs@users.noreply.github.com> Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: Anxo Rodriguez <anxolin@gmail.com> Co-authored-by: Leandro Boscariol <alfetopito@users.noreply.github.com> Co-authored-by: Leandro <leandro.boscariol@gnosis.io> Co-authored-by: w3stside <david.sato64@gmail.com> Co-authored-by: Anxo Rodriguez <anxolin@gmail.com> Co-authored-by: Alex V <80408352+avsavsavs@users.noreply.github.com> Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: fairlight <31534717+fairlighteth@users.noreply.github.com> Co-authored-by: Leandro Boscariol <alfetopito@users.noreply.github.com> Co-authored-by: Leandro <leandro.boscariol@gnosis.io> Co-authored-by: w3stside <david.sato64@gmail.com>
Summary
🡒 Note: This is part of a waterfall PR series 🡐
Desktop
Tablet/Medium resolutions
Mobile/small resolutions
No vCOW card container: Governance card falls in to place:
Only the COW balance:
Just to demonstrate the sizing flexibility of the card elements.
Light mode
Todo