Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

feat: warning element for threshold changes/delegate calls #3861

Merged
merged 3 commits into from
May 11, 2022

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented May 6, 2022

What it solves

Resolves #3471 and #3723

How this PR fixes it

A new AlertTooltipWarning component was created and added to (unexpected) delegate calls, as well as confirmation policy changes.

Confirmation policy change descriptions have also been adjusted.

Note: this does not include a link to an article regarding delegate calls.

How to test it

  • Open (unexpected) delegate call transactions and observe the warning message.
  • Open threshold changing owner alterations and observe the warning message.

Screenshots

image
image

(Unexpected) delegate call: rin:0x73a7AA145338587f7aB7f63c06d187C85dF4727e/transactions/multisig_0x73a7AA145338587f7aB7f63c06d187C85dF4727e_0xba28109747222d6cfb7f0fb75f03d49957e343674bc116162b038e244dbcc6d6
image
image

Threshold alteration: (rin:0xAb5e3288640396C3988af5a820510682f3C58adF/transactions/multisig_0xAb5e3288640396C3988af5a820510682f3C58adF_0x3a2f4ef3358d80bb776efabc9e29757441fe2fdba2dc2ead688ee9146a280def)
image
image

@iamacook iamacook requested a review from usame-algan May 6, 2022 06:57
@github-actions
Copy link

github-actions bot commented May 6, 2022

CLA Assistant Lite All Contributors have signed the CLA.

@iamacook iamacook requested a review from schmanu May 6, 2022 06:58
@github-actions
Copy link

github-actions bot commented May 6, 2022

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const ThresholdWarning = (): ReactElement => (
<AlertTooltipWarning
tooltip="This transaction alters the number of confirmations required to execute a transaction."
warning="Confirmation policy change"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh cool, you done them both!

@github-actions
Copy link

github-actions bot commented May 6, 2022

Deployment links

🟠 Rinkeby Mainnet 🟣 Polygon 🟡 BSC Arbitrum 🟢 Gnosis Chain

@coveralls
Copy link

coveralls commented May 6, 2022

Pull Request Test Coverage Report for Build 2280703343

  • 6 of 13 (46.15%) changed or added relevant lines in 5 files are covered.
  • 23 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.01%) to 35.282%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/routes/safe/components/Transactions/TxList/DelegateCallWarning.tsx 1 2 50.0%
src/routes/safe/components/Transactions/TxList/ThresholdWarning.tsx 1 2 50.0%
src/routes/safe/components/Transactions/TxList/TxInfoSettings.tsx 0 1 0.0%
src/routes/safe/components/Transactions/TxList/AlertTooltipWarning.tsx 3 7 42.86%
Files with Coverage Reduction New Missed Lines %
src/utils/constants.ts 1 93.02%
src/logic/wallets/onboard.ts 22 43.06%
Totals Coverage Status
Change from base Build 2280112088: 0.01%
Covered Lines: 3612
Relevant Lines: 9297

💛 - Coveralls

@iamacook iamacook requested a review from katspaugh May 6, 2022 07:39
Copy link
Member

@usame-algan usame-algan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@schmanu schmanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the same typo twice. Besides that everything looks good to me 🚀

@JagoFigueroa
Copy link

Looking sharp! Moving the 2 related issues to QA done ;)

@iamacook iamacook merged commit d8a9e12 into dev May 11, 2022
@iamacook iamacook deleted the warning-element branch May 11, 2022 10:15
@github-actions github-actions bot locked and limited conversation to collaborators May 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create/add article about delegate calls to tooltip
6 participants