Skip to content
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

Feat/external txs #850

Merged
merged 13 commits into from
Aug 21, 2019
Merged

Feat/external txs #850

merged 13 commits into from
Aug 21, 2019

Conversation

Schwartz10
Copy link
Contributor

@Schwartz10 Schwartz10 commented Jun 25, 2019

Fixes #536 and goes along with aragon/aragon.js#328

Think we could do a better job with language, but this could be a starting point that we improve as we start to see new designs and more informative copy.

image

Also, I'm not sure why my linter complained about src/aragonjs-wrapper.js - i didnt touch that file?

@sohkai sohkai requested review from dizzypaty and removed request for bpierre and AquiGorka July 3, 2019 12:40
@sohkai
Copy link
Contributor

sohkai commented Jul 3, 2019

@dizzypaty Let's discuss the copy / security concerns of what this means when you're ready!

@sohkai sohkai mentioned this pull request Jul 24, 2019
1 task
Copy link

@dizzypaty dizzypaty left a comment

Choose a reason for hiding this comment

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

Hey @Schwartz10, sorry for taking long in reviewing this issue. Here’s a mockup with the aragonUI new style applied to the signer panel and my suggestion for the copy.

external-tx

WARNING: Be aware that this is an attempt to execute a transaction on an *external contract* that has not been reviewed or audited. This means that it might behave unexpectedly. Please *be sure your trust this contract* before proceeding.

Figma assets here.

I’ve started exploring the idea of displaying a “security badge” that we could assign to contracts depending on whether these have been reviewed & audited and the outcomes of those audits (trusted, not trusted, unsafe). We’ll keep you in the loop with the direction this takes¡ 🤗

Also, we will create specific visual cues / icons to differentiate between known / unknown or external contacts. For now we can use the ‘app default’ one that you see on the design above for the compact AddressBadge.

@sohkai
Copy link
Contributor

sohkai commented Jul 26, 2019

@dizzypaty We can also detect if the app is calling another installed app (to separate it from an external contract, which would be a totally arbitrary contract we don't know about).

One suggestion is to just change the copy slightly to indicate this, something along the lines of:

WARNING: Be aware that this is an attempt to execute a transaction on another app that is installed in this organization. You may want to double check that app's functionality before proceeding.

@vercel vercel bot temporarily deployed to staging August 2, 2019 20:28 Inactive
@Schwartz10
Copy link
Contributor Author

Hey @sohkai this is set for your review. I'm not sure how to make the UI compatible with the latest aragon/ui components. Right now I'm using an Info.Action component to render the warning text. Is that the best way?

@vercel vercel bot temporarily deployed to staging August 5, 2019 16:53 Inactive
Copy link
Contributor

@sohkai sohkai left a comment

Choose a reason for hiding this comment

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

Right now I'm using an Info.Action component to render the warning text. Is that the best way?

If it's not too much trouble, it would be better to merge this against newstyle after #901 is merged, so we can use the new Tag component.

Otherwise, a couple of small and simple notes:

src/components/SignerPanel/ActionPathsContent.js Outdated Show resolved Hide resolved
src/components/SignerPanel/ConfirmTransaction.js Outdated Show resolved Hide resolved
src/components/SignerPanel/SignerPanel.js Outdated Show resolved Hide resolved
src/components/SignerPanel/SignerPanel.js Outdated Show resolved Hide resolved
src/components/SignerPanel/ActionPathsContent.js Outdated Show resolved Hide resolved
@vercel vercel bot temporarily deployed to staging August 8, 2019 16:56 Inactive
@Schwartz10
Copy link
Contributor Author

Schwartz10 commented Aug 8, 2019

Thanks for the feedback @sohkai. Your comments are addressed in 9b5e771. I'll do one more UI tweak and final test once #901 is merged

} installed in this organization. You may want to double check that app's functionality before proceeding.`}
{installed
? `Be aware that this is an attempt to execute a transaction on another app that is installed in this organization. You may want to double check that app's functionality before proceeding.`
: `Be aware that this is an attempt to execute a transaction on an *external contract* that has not been reviewed or audited. This means that it might behave unexpectedly. Please *be sure your trust this contract* before proceeding.`}
Copy link
Contributor

@sohkai sohkai Aug 9, 2019

Choose a reason for hiding this comment

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

Unfortunately we can't use markdown in react; let's use <strong>s here :).

@sohkai sohkai changed the base branch from master to newstyle August 21, 2019 23:07
@vercel vercel bot temporarily deployed to staging August 21, 2019 23:07 Inactive
@vercel vercel bot temporarily deployed to staging August 21, 2019 23:22 Inactive
… display it before any possible pretransactions
@vercel vercel bot temporarily deployed to staging August 21, 2019 23:25 Inactive
@sohkai
Copy link
Contributor

sohkai commented Aug 21, 2019

@Schwartz10 I've pushed a few commits, mostly merging it with newstyle and updating the styling to be consistent with everything new :).

@sohkai sohkai merged commit 78da115 into aragon:newstyle Aug 21, 2019
2color added a commit that referenced this pull request Aug 28, 2019
…tions

* origin/newstyle:
  MenuPanel tweaks (#933)
  Home redesign (#934)
  SignerPanel: consolidate external transaction props into intent object (#931)
  useLocalIdentity: handle remove case (#930)
  Add AppInternal to manage the layout logic of internal apps (#932)
  MenuPanel: adjust for new styles (#923)
  SignerPanel: display warning for external transactions (#850)
  Remove Badge and update occurrences for Tag (#901)
  SignerPanel: adjust for new styles (#920)
  Organization Settings: replace old Settings app (#896)
  Permissions: new style (#899)
  Sidepanel: redesign feedback indicator (#907)
  eslint: make sure curly braces are used everywhere (#924)
  Org switcher: new style + add FavoritesMenu (#925)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants