-
Notifications
You must be signed in to change notification settings - Fork 5k
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
modified transaction complete popup #16300
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
127df80
to
827410d
Compare
Builds ready [827410d]
Page Load Metrics (2169 ± 88 ms)
|
Verified by QA |
12de561
to
478b8ef
Compare
Builds ready [478b8ef]
Page Load Metrics (2083 ± 81 ms)
|
478b8ef
to
b23803b
Compare
Builds ready [b23803b]
Page Load Metrics (1993 ± 107 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@adnansahovic needs a rebase. |
b23803b
to
0a6fcec
Compare
deleted upperCase function deleted replaceAll fixed lint
0a6fcec
to
e5d14a2
Compare
Builds ready [e5d14a2]
Page Load Metrics (2572 ± 259 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Hi @brad-decker, Done. |
app/scripts/platforms/extension.js
Outdated
@@ -160,10 +162,11 @@ export default class ExtensionPlatform { | |||
|
|||
const url = getBlockExplorerLink(txMeta, rpcPrefs); | |||
const nonce = parseInt(txMeta.txParams.nonce, 16); | |||
const view = getURLHostName(url).replace(/([.]\w+)$/u, ''); |
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.
- Is this way of deriving view name from URL good enough ?
startCase(toLower(view))
this conversion can also be probably done here.
Builds ready [cc5f3b8]
Page Load Metrics (2355 ± 152 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -160,10 +162,13 @@ export default class ExtensionPlatform { | |||
|
|||
const url = getBlockExplorerLink(txMeta, rpcPrefs); | |||
const nonce = parseInt(txMeta.txParams.nonce, 16); | |||
const view = startCase( | |||
toLower(getURLHostName(url).replace(/([.]\w+)$/u, '')), |
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.
I have to agree with @jpuri on this one. Your screenshot for Mumbai PolygonScan makes it appear that this works with subdomains (mumbai) but then Ehterscan would have a 'www' proceeding it? And if I do a naive assertion on this regex statement in console:
const y = new URL('https://mumbai.polygonscan.com/');
> undefined
y.hostname.replace(/([.]\w+)$/u, '')
> 'mumbai.polygonscan'
y.hostname.replace(/([.]\w+)$/ug, '')
> 'mumbai.polygonscan'
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.
Hi @jpuri and @brad-decker,
I tried this solution again, I changed Mumbai block explorer link to Etherscan link and I saw this notification "View on Etherscan" (this is just for testing). Can you please review this again?
You can see the following video:
Screen.Recording.2022-12-02.at.11.32.07.mov
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.
I missed the call to 'startCase' which is the reason the magic works. Alright i'm good with this. Thanks for pushing back @adnansahovic
Builds ready [3b788b0]
Page Load Metrics (1297 ± 91 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Merging as there are two approvals! |
Explanation
Changed the text on popup after the completion of transaction
More Information
Screenshots/Screencaps
Before
After
Manual Testing Steps