-
Notifications
You must be signed in to change notification settings - Fork 295
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
[DDW-924] Create link component #1799
[DDW-924] Create link component #1799
Conversation
… small style improvements
@MarcusHurney @tomothespian what's holding us up with this one? |
@nikolaglumac now we have a new RP version with Link component. I will add a new package version and we are ready for review. |
@ManusMcCole that's expected... Please ignore this part. |
@IuliaDolishniak it has been removed on purpose. I did this part before I left for my vacation. |
It is shown on screen and in Storybook @nikolaglumac |
@IuliaDolishniak screenshots are old. This link should not be visible neither in Daedalus nor Storybook. |
@IuliaDolishniak there is no "Learn more" link for incentivized testnet. |
@tomothespian please merge latest v2-integration into this PR please! |
@DeeJayElly @MarcusHurney @yakovkaravelov please review this one! |
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.
Good job @tomothespian !!!
Don't forgot to merge latest v2-integration
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.
Before we merge, let's get this question answered by Sasha. |
@MarcusHurney thanks a lot ❤️ |
@MarcusHurney instead of tweaking 10px or 12px I'd unified all these buttons to be "text+icon" instead of both ("icon+text" or "text+icon"). |
* [DDW-924] Pull react-polymorph from GH repo and test * [DDW-924] Add Link overrides and integration into SystemTimeError component * [DDW-924] Replace all links with icons with RP Link component * [DDW-924] Replace link for WalletRecoveryPhraseStep4Dialog dialog and small style improvements * [DDW-924] Remove RP Link test case and new anchor eslint ignore rule * [DDW-924] Fix eslint issues * [DDW-924] Fix Flow issues * [DDW-924] Code cleanup * [DDW-924] Fix scss alphabetical ordering * [DDW-924] Add RP link theme variables * [DDW-924] Add RP Link for Donwload Logs syncing/connecting notification * [DDW-924] Introduce ButtonLink widget and imlementation into Manual Update overlay * [DDW-924] Add ButtonLink to Incident / Alert overlays * [DDW-924] Add ButtonLink to NewsFeed Item * [DDW-924] Add ButtonLink to Legacy Notification * [DDW-924] Add ButtonLink to Staking Countdown * [DDW-924] Add ButtonLink to Staking Info * [DDW-924] Fix lint and Flow * [DDW-924] Fix yarn.lock * [DDW-924] Button link code improvement and cleanup * [DDW-924] Introduce new React Polymorph version 0.9.1 * [DDW-924] Remove yarn.lock integrity hashes * [DDW-924] CHANGELOG update * [DDW-924] Fixes positioning of link icon in Alerts and Incident Overlays button Co-authored-by: Marcus Hurney <marcushurney@gmail.com>
This PR introduces React-Polymorph "Link" component integration.
Todos
Link
component once is readyLink
component orButtonLink
widget if miss on some placesScreenshots
1 Nodes - Syncing and Connecting - System Time Error (NTP reachable)"
1.1 Nodes - Syncing and Connecting - System Time Error"
2 General - Support"
3 Nodes - Splash - Network Info"
4 Decentralization - Staking - Rewards"
5 Decentralization - Staking - Pool Index"
6 Nodes - About - About Dialog"
7 Nodes - Status - Daedalus Diagnostics"
8 Wallets - Paper Wallets - Completion"
9 Wallets - Paper Wallets - Instructions"
10 Wallets - Transactions"
11 Wallets - Transactions - UTXO Distribution"
13 1 Nodes - Syncing and Connecting - Trouble Syncing"
13 2 Nodes - Syncing and Connecting - Trouble Connecting"
14 1 Nodes - Updates - Manual Update (Icon and label are inside button)"
14 2 Common - Widgets - ButtonLink"
15 News - Alerts - Alerts Overlay (Icon and label are inside button)"
16 News - Incident - Incident Overlay (Icon and label are inside button)"
17 News - NewsFeed - Fetched (Icon and label are inside button)"
18 Wallets - Summary - Wallet Summary + Legacy Wallet (Icon and label are inside button)"
19 Decentralization - Countdown - Decentralization Countdown"
20 Decentralization - Staking - Info"
Testing Checklist
Storybook Testing:
1. LINKS WITH / WITHOUT ICON
Nodes -> Errors -> System Time Error
Settings -> General -> Support
Nodes -> Splash -> Network Info
Decentralization -> Staking -> Rewards
Decentralization -> Staking -> Pool Index
Nodes -> About -> About Dialog
Nodes -> Status -> Daedalus Diagnostics (Available disk space: unknown)
Wallets -> Paper Wallets -> Completion
Wallets -> Paper Wallets -> Instructions
Wallets -> Transactions
Wallets -> Transactions -> UTXO Distribution
Wallet Settings -> Wallet Recovery Phrase (Verification Failure Step Dialog)
Nodes -> Syncing and Connecting -> Trouble Syncing
Nodes -> Syncing and Connecting -> Trouble Connecting
2. BUTTON LINKS
Nodes -> Updates -> Manual Update (Icon and label are inside button)
Common -> Widgets -> ButtonLink
News -> Alerts -> Alerts Overlay (Icon and label are inside button)
News -> Incident -> Incident Overlay (Icon and label are inside button)
News -> NewsFeed -> Fetched (Icon and label are inside button)
Wallets -> Summary -> Wallet Summary + Legacy Wallet (Icon and label are inside button)
Decentralization -> Countdown -> Decentralization Countdown
Decentralization -> Staking -> Info
In-App Testing:
Link
andButtonLink
clicks (open external / internal links) works properlyReview Checklist
Basics
feature
/bug
/chore
,release-x.x.x
)yarn test
)yarn dev
)yarn package
/ CI builds)yarn flow:test
)yarn lint
)yarn prettier:check
)yarn manage:translations
produces no changes)yarn storybook
)yarn.lock
file is updatedCode Quality
Testing
After Review
done
column on the YouTrack board