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

Sig request design fixed #1493

Merged
merged 95 commits into from
May 7, 2020
Merged

Sig request design fixed #1493

merged 95 commits into from
May 7, 2020

Conversation

EtDu
Copy link
Contributor

@EtDu EtDu commented Apr 16, 2020

Description

Implement new signature request screen designs

Checklist

  • Create AccountInfoCard component
  • SignatureRequest: use AccountInfoCard
  • SignatureRequest: remove scrollview
  • ActionView: remove scrollview if rendered by message, typed or personal sign components (isSigning = true)
  • TypedSign (V1, V3, V4): Ensure message content fits within the box (no overflow)
  • MessageSign: Ensure message content fits within the box (no overflow)
  • PersonalSign: Ensure message content fits within the box (no overflow)
  • Ensure arrow icon only renders if content is clipped
  • SignatureRequest: tap on children (message box) to expand and reveal the full message
  • SignatureRequest: tap on the top left arrow to go back (collapsing full message)
  • MessageSign: add new warning message

Issue

Resolves #1488

@EtDu
Copy link
Contributor Author

EtDu commented Apr 16, 2020

Screen Shot 2020-04-16 at 11 12 34 PM

@cjeria What do you think? This is with typed data signing.

@cjeria
Copy link

cjeria commented Apr 16, 2020

@EtDu Does the style of the data change per the data type (string vs type data)? For instance, if the message is a string (like the cryptokitties example below), does the style of the message font change?

If so, I'm inclined to suggest styling type data messages like code blocks and strings like the example below.

Also, note that the arrow symbol ">" (indicating the message can be expanded) is only intended for very long messages that don't fit inside the container.

@EtDu
Copy link
Contributor Author

EtDu commented Apr 17, 2020

Screen Shot 2020-04-17 at 9 48 03 PM

CryptoKitties example with a regular message

@EtDu
Copy link
Contributor Author

EtDu commented Apr 20, 2020

Screen Shot 2020-04-20 at 8 45 51 PM

eth_sign message sign

Screen Shot 2020-04-20 at 8 55 19 PM

personal_sign message sign

Screen Shot 2020-04-20 at 8 56 28 PM

personal_sign expanded

Screen Shot 2020-04-20 at 8 46 44 PM

sign typed data V4

Screen Shot 2020-04-20 at 8 57 04 PM

sign typed data V4 expanded @cjeria

Copy link
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

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

Nice work. Left some minor comments and questions.

app/components/UI/StyledButton/styledButtonStyles.js Outdated Show resolved Hide resolved
app/components/UI/ActionView/index.js Outdated Show resolved Hide resolved
@@ -161,5 +165,9 @@ ActionView.propTypes = {
/**
* Determines if the keyboard should stay visible after a tap
*/
keyboardShouldPersistTaps: PropTypes.string
keyboardShouldPersistTaps: PropTypes.string,
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

See above comment on suggested variable name change. The comment here could then be more generalized as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one was there already

app/components/UI/MessageSign/index.js Show resolved Hide resolved
@danjm
Copy link
Contributor

danjm commented Apr 21, 2020

I'll do final review once unit tests are passing and we get design approval. I'll also do a QA pass as Ibrahim is mostly out this week.

@@ -43,28 +41,33 @@ export default function ActionView({
showConfirmButton,
confirmed,
confirmDisabled,
keyboardShouldPersistTaps = 'never'
keyboardShouldPersistTaps = 'never',
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the purpose of this? I remember being debugging some problems for ActionViews that are using this in order to work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know why this is showing up in the diff, this wasn't my work so I'm not sure

const { children, currentPageInformation, shouldRenderArrow, toggleExpandedMessage } = this.props;
const url = currentPageInformation.url;
const title = getHost(url);
const arrowIcon = shouldRenderArrow ? this.renderArrowIcon() : null;
Copy link
Contributor

Choose a reason for hiding this comment

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

am I missing the definition of renderArrowIcon ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is directly below renderActionViewChildren

@@ -229,20 +224,17 @@ class SignatureRequest extends PureComponent {
confirmText={strings('signature_request.sign')}
onCancelPress={this.onCancel}
onConfirmPress={this.onConfirm}
confirmButtonMode="sign"
noScroll
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like this is removing the ability to scroll? we have to keep in mind that there are smaller devices that needs this to see the whole view

Copy link
Contributor Author

Choose a reason for hiding this comment

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

below comment

@@ -43,28 +41,33 @@ export default function ActionView({
showConfirmButton,
confirmed,
confirmDisabled,
keyboardShouldPersistTaps = 'never'
keyboardShouldPersistTaps = 'never',
noScroll
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the purpose to block the abiolity to scroll? we have to support smaller devices that without this could not be able to display all the information we may need to

Copy link
Contributor Author

Choose a reason for hiding this comment

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

below comment

Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

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

left some comments. @danjm I'd wait for @ibrahimtaveras00 to do QA he can build the app on both IOS and Android devices

@estebanmino
Copy link
Contributor

I'm also worried about the task SignatureRequest: remove scrollview I believe we need that for smaller devices but @ibrahimtaveras00 can take a look that

@EtDu
Copy link
Contributor Author

EtDu commented Apr 23, 2020

I'm also worried about the task SignatureRequest: remove scrollview I believe we need that for smaller devices but @ibrahimtaveras00 can take a look that

@estebanmino The reasoning for this is because of the new design. Instead of scrolling on the signature request screen, the user would tap the message to expand it (revealing ExpandedMessage component), where they can scroll there if necessary

@EtDu EtDu force-pushed the sig-request-design-fixed branch from 9c061ec to 8f5eec4 Compare April 23, 2020 06:41
@danjm danjm force-pushed the transaction-header branch from 935177b to 6e8d98a Compare April 23, 2020 14:25
@danjm danjm force-pushed the sig-request-design-fixed branch 2 times, most recently from 8f5eec4 to b449fb2 Compare April 23, 2020 14:38
@EtDu
Copy link
Contributor Author

EtDu commented Apr 24, 2020

Screen Shot 2020-04-24 at 11 35 35 AM

@cjeria with new padding

@EtDu
Copy link
Contributor Author

EtDu commented Apr 27, 2020

Screen Shot 2020-04-27 at 12 46 30 PM

with AccountInfoCard ontop

@estebanmino estebanmino added next release needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Apr 27, 2020
Copy link
Contributor

@estebanmino estebanmino left a comment

Choose a reason for hiding this comment

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

LGTM!

@ibrahimtaveras00
Copy link
Contributor

ibrahimtaveras00 commented Apr 29, 2020

Issue 1:

There are quite a few screen sizes that don't play well with the new design:

image

Issue 2:

on iOS (i have an iPhone 6S+ plugged in my macbook, this is left in the screen cast) I don't see the arrow indicating that I can expand the modal, nor when I tap on it, nothing happens. On android (right on the screen cast) when I scroll all the way down, there is no padding on the bottom which makes .html appear cut off a little

seen here = http://recordit.co/lOHTAad4dY

image

this is on https://danfinlay.github.io/js-eth-personal-sign-examples/ with the "personal_sign" example

Also, when I'm on android and I tap the native back button on the device, it completely dismisses the modal instead of taking me back to the initial "Sign this message?" view when I have the message expanded. @cjeria should we enable the device back button to dismiss the expanded message view to take us back one step?

In addition, in the mock up I see the "Read more" link but not currently implemented (was this intentional)?

image

@ibrahimtaveras00 ibrahimtaveras00 added the QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed label Apr 29, 2020
@EtDu
Copy link
Contributor Author

EtDu commented Apr 30, 2020

@ibrahimtaveras00 Thank you for the feedback, I'll get it fixed

@EtDu
Copy link
Contributor Author

EtDu commented May 5, 2020

@ibrahimtaveras00 Fixed all of the above! Also, Android native back button takes you back to "Sign this message"

EtDu added 20 commits May 7, 2020 17:04
…, configure expanded signing modal to go back on android back button press, pass down props to signing components
@EtDu EtDu force-pushed the sig-request-design-fixed branch from 63dac66 to 4deab30 Compare May 7, 2020 12:52
@EtDu EtDu changed the base branch from transaction-header to develop May 7, 2020 12:58
@EtDu
Copy link
Contributor Author

EtDu commented May 7, 2020

Okay I've rebased and switched the compare branch to develop. Anything else before merge?

@estebanmino estebanmino requested a review from danjm May 7, 2020 16:24
Copy link
Contributor

@danjm danjm left a comment

Choose a reason for hiding this comment

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

LGTM

@estebanmino estebanmino merged commit 9c8eaef into develop May 7, 2020
estebanmino added a commit that referenced this pull request May 15, 2020
* Loosen nvmrc (#1524)

Co-authored-by: Esteban Miño <efmino@uc.cl>

* bugfix/check for sai method (#1545)

* update docs link in readme (#1521)

Co-authored-by: Esteban Miño <efmino@uc.cl>

* Add settings to nav bar (#1544)

* Add settings to nav bar

* Remove settings Icon

* Add icons for all drawer links

* Improvement/tx status notification (#1475)

* simple not update

* text update

* wip

* delete old details

* delete old confirm

* almost done withtx details

* modal working

* modal title

* rm transfer element

* clean

* fix transfer

* transfer and payment channel

* decodeTransferFromTx

* decodeDeploymentTx

* decodeConfirmTx

* onpress

* status

* close on view web

* more cleanup

* payment

* showing not

* closer?

* comment

* tx details and not

* animated

* tx not

* enable access view on not

* animated

* rename

* using txnnot manager

* working

* receive

* rm unused

* rm logs

* handle browser not

* parse date

* handle asset details

* tx summary rename props

* Refactor names in details

* handle primary currency

* missing props

* almost there

* working but browser

* finally

* one more thing

* done

* snaps

* missing locales

* update ethereum address

* snaps

* handle instapay txs

* snaps

* feeless tx

* data check

* No fee

* instance._hideTransactionNotification

* fix instapay notifications

* elevation

* fix remaining issues

* apeed up cancel

* transaction modal

* speed cancel

* speedup cancel ui

* working

* added engine methods

* done

* snaps

* fix qaing

* fix ios build

* one snap

* remove test

* status text fix

* cancelled

* margin

* snaps

* fix insufficient funds

* doc

* Transaction Header Component (#1487)

* Remove redundant imports, remove redundant styles, comment typo correction, remove renderPageInformation(), split props line by line in render(), swap rendering renderPageInformation() with TransactionHeader component, pass props

* added lock and warning icons

* removed domain prop

* new TransactionHeader component, imports, styling, prop types, lock/warning icon change based on URL protocol, network status indicator (color) changes if network is online/not online

* re-generated snapshot for SignatureRequest, created new test for TransactionHeader

* network changes based on selected network

* update snapshot

* update snapshot

* remove function, use css for network capitalization

* move network status logic to renderNetworkStatusIndicator()

* render icon logic moved to renderSecureIcon()

* add comments

* update snapshot

* remove redundant getTrackingParams, use props directly

* remove png icons from image dir, use react native svg icons (FontAwesome), update snapshot

* TransactionHeader: use 'Ethereum' instead of 'Mainnet'

* Add shortnames to networks util, TransactionHeader: use networks util to display network name, update snapshot

* Remove redundant imports, remove redundant styles, comment typo correction, remove renderPageInformation(), split props line by line in render(), swap rendering renderPageInformation() with TransactionHeader component, pass props

* added lock and warning icons

* removed domain prop

* new TransactionHeader component, imports, styling, prop types, lock/warning icon change based on URL protocol, network status indicator (color) changes if network is online/not online

* re-generated snapshot for SignatureRequest, created new test for TransactionHeader

* network changes based on selected network

* update snapshot

* update snapshot

* remove function, use css for network capitalization

* move network status logic to renderNetworkStatusIndicator()

* render icon logic moved to renderSecureIcon()

* add comments

* update snapshot

* remove redundant getTrackingParams, use props directly

* remove png icons from image dir, use react native svg icons (FontAwesome), update snapshot

* TransactionHeader: use 'Ethereum' instead of 'Mainnet'

* Add shortnames to networks util, TransactionHeader: use networks util to display network name, update snapshot

* fixed import error

Co-authored-by: Esteban Miño <efmino@uc.cl>

* Feature/block screenshots (#1495)

* native

* test on wallet

* block in some screens

* ios check

* rm asyncs

* helper

* missing places

* Detect if site has been added to Favorites (#1538)

* Detect if site has been added to Favorites

Previously we were `Alert`ing after attempting to `addBookmark`.

Instead, we remove the option from the menu entirely.

closes: #1511

* Rename isFavorite -> isBookmark

* Use "web-search" keyboardType on iOS (#1539)

* Use web-search keyboard

Use web-search for the omnibar keyboard

* Add new mobile provider (#1517)

Co-authored-by: Esteban Miño <efmino@uc.cl>

* Sig request design fixed (#1493)

* new folder for AccountInfoCard component, remove signature_request.title from message, personal & typed sign components, remove redundant style

* SignatureRequest: remove account information from top, proptypes, props, styles, imports

* SignatureRequest: change signing message to 'Sign this message?', make bold and larger

* remove keyboard aware scroll view

* Add AccountInfoCard component to SignatureRequest

* AccountInfoCard: implement proper styling

* AccountInfoCard: use renderShortAddress, fix styles, use conversionRate to display $ amount

* ActionView: add isSigning prop, disables scroll when true, SignatureRequest: pass isSigning=true to ActionView

* AccountInfoCard: remove top level view

* SignatureRequest: apply styles & layout, add website + arrow icons

* Signing components: update styling, rename informationRow --> informationCol

* remove message style

* TypedSign: put back message style, add messageWrapper style, ensure data fits in box and hides overflow

* AccountInfoCard: add snapshot test

* update snapshots

* styling of 'sign this message'

* update snapshot

* update snapshot

* SignatureRequest: Always render arrow if children coming from TypedSign

* SignatureRequest: change to regular component with state to show expanded message content, wrap touchableWithoutFeedback around the message children and move rendering to renderActionViewChildren, tapping the message currently does nothing

* fix dapp icon style, fix render inf loop

* remove textwrap for typed sign. Now renders properly for V1, V3 & V4

* AccountInfoCard: fix paddings, identicon style, use widths instead of flex, float address to left, fix font weights

* TypedSign: use width instead of flex

* SignatureRequest: remove website icon wrapper, fix arrow positioning, remove assetLogo style

* temp disable warning to match style, ensure message fits within box

* PersonalSign: create message wrapper, ensure message fits within box

* Message & Personal Sign: use ellipses mode for text wrapper, drop messageWrapper styles

* SignatureRequest: remove shouldRenderArrow, add shouldRenderArrow prop

* MessageSign: change to stateful component, add renderArrow state, decides if should render arrow upon text component layout, then adjusts the text accordingly

* PersonalSign: change to stateful component, add renderArrow state, decides if should render arrow upon text component layout, then adjusts the text accordingly

* TypedSign: shouldRenderArrow always passes down as true. Will never be a situation where an entire typed message fits in the box

* SignatureRequest: change back to pure component, change handleMessageTap into prop

* change handleMessageTap to toggleExpandedMessage

* TypedSign: implement message expansion and retraction

* modify message, add message_from

* new ExpandedMessage component, rendered by typed, personal & regular message components

* TypedSign: use ExpandedMessage component

* ExpandedMessage: test

* SignatureRequest: add renderArrow prop, make box not expandable if false

* MessageSign: implement message expanding and retracting

* PersonalSign: implement message expand & retract

* ExpandedMessage: add mock fns, update all snapshots

* ActionView: get rid of top border

* new button styles

* signing components: ensure a top left and right rounded border

* change Cancel & Sign to lowercase

* snapshot update

* adjust style for android

* use unique button style for signing components, fix percentage in stylesheet

* change isSigning prop to noScroll

* snapshot update

* update more snapshots

* Signing components: revert to pure component

* AccountInfoCard: use weiToFiat & hexToBn helpers to display fiat value, add currentCurrency prop

* Signing components: shift renderRootView() contents into render()

* update snapshot

* AccountInfoCard, SignatureRequest: fix paddings per design

* AccountInfoCard: remove bottom margin

* TransactionHeader: remove margins, use padding

* MessageSign: larger min height, showWarning prop

* WarningMessage: use flexstart alignment for bell icon

* locales: change eth_sign_warning

* WarningMessage: add object as secondary prop type for warning message

* SignatureRequest: use WarningMessage component, fix paddings, use renderWarning as prop for WarningMessage

* snapshot update yo

* SignatureRequest: move AccountInfoCard ontop of message children

* snapshot update

* AccountInfoCard: remove width

* ActionView: remove no scroll - small devices

* Signing Components: remove root style, move to SignatureRequest

* SignatureRequest: remove style redundancies, add in root style

* SignatureRequest: fix height of modal based on screen height

* ExpandedMessage: fix styling, move scrollview to signing components renderMessage

* ExpandedMessage: Put the scroll back

* PersonalSign: remove expandedMessage text wrapper

* SignatureRequest: fix up styling, add more overhead (reduced from signing components)

* Signing components: reduce view hierarchy, move to SignatureRequest

* Locales: add Read more to signature_request

* AccountInfoCard: add operation prop, if operation is signing, only display the account name and address

* TypedSign: add shouldTruncateMessage & truncateMessage in state

* PersonalSign: remove console log

* Signing components: change renderArrow to truncateMessage

* Nav/Main: add showExpandedMessage to state, add toggleExpandedMessage, configure expanded signing modal to go back on android back button press, pass down props to signing components

* Signing Components: move showExpandedMessage out of state, move out toggleExpandedMessage

* TypedSign: create different messageWrapper height for iOS & Android, fix text clipping mid-line

* ExpandedMessage: fix scrollview

* snapshot update

* AccountInfoCard: use getTicker

* Signing components: change margin bottom from 5 to 4

* Device: new getMediumDevice, SignatureRequest: use getMediumDevice

* ActionView, styledButtonStyles: add cancel button style for signing components

* snapshot update

* SignatureRequest: fix the domain logo not being a circle

* update snapshot

* Use gaba@1.11.0 (#1552)

* Fix settings everywhere (#1556)

* Fix day and month numbers in toDateFormat (#1557)

* Make send flows consistent (#1465)

* Move components and styles from Confirm into TransactionReview

* Add ActionView back in

* Add missing styles

* Revert TransactionReview changes

* Update send screen: from accounts editable and redesign gas edit link

* Use sendflow confirm for payment requests and when editing

* Update sendflow/confirm tests

* Use new send flow designs for instapayment / payment channel transactions

* Use existing send flow screens for deep link transactions

* Fix editing of payment request transactions

* Fix unit tests on consistent-send-flow branch

* Fix navigation for deep link tx edits on the amount screen.

* Refactor: combine transaction and newTransaction reducers

* Fix bugs on consistent-send-flow

* Fix confirm and edit of transactions created from dapps

* Update transaction edit text color

* Only allow changing from field on confirm screen of payment requests

* Fix amount validation for payment channel transactions

* Fix qr payment requests, payment channel payment requests, and token payment requests; plus other small fixes

* Fix token approvals

* Fix sending of decimals on payment channles

* Show correct error messages when accounts are changed and/or token balances are insufficient

* Update navbar options in edit mode

* Ensure tokens cannot be sent in cases where user has not added the token

* Correctly validate payment channel transaction on mount/update

* Use sai.svg instead of dai.svg

Co-authored-by: Dan Miller <danjm.com@gmail.com>
Co-authored-by: Esteban Miño <efmino@uc.cl>

* Use setTimeout hack (again) to get paste context in token search (#1548)

* Use setTimeout hack (again) to get paste context in token search

* Update test

Co-authored-by: Esteban Miño <efmino@uc.cl>

* V0.2.16 (#1561)

* bump

* changelog

* rm entry

* Fix amount validation for large token payment requests (#1572)

* Fix validating of amount when sending a collectible (#1565)

* Fix validating of amount when sending a collectible

* Validate collectible ownership on amount screen.

* Ensure correct updating of collectible transaction after edit on the amount screen

* Ensure collectibles that use 'transfer' method show a fee in tx history list (#1574)

Co-authored-by: Esteban Miño <efmino@uc.cl>

* Disable confirm screen edit button when no tokens of a payment request (#1570)

* Disable confirm screen edit button when account has no tokens of a payment request

* Ensure account switching from undefined token balance accounts enables edit on pay reqs

* Improve logic in componentDidUpdate of send/index.js

* v0.2.16 changelog (#1575)

* Instapay deposit navbar cancel (#1582)

* fix

* works

* rm log

* add this to changelog and update date

* amount title

Co-authored-by: Erik Marks <25517051+rekmarks@users.noreply.github.com>
Co-authored-by: Jenny Pollack <jennypollack3@gmail.com>
Co-authored-by: ricky <ricky.miller@gmail.com>
Co-authored-by: Etienne Dusseault <etienne.dusseault@gmail.com>
Co-authored-by: Whymarrh Whitby <whymarrh.whitby@gmail.com>
Co-authored-by: Ibrahim Taveras <ibrahimtaveras00@gmail.com>
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* new folder for AccountInfoCard component, remove signature_request.title from message, personal & typed sign components, remove redundant style

* SignatureRequest: remove account information from top, proptypes, props, styles, imports

* SignatureRequest: change signing message to 'Sign this message?', make bold and larger

* remove keyboard aware scroll view

* Add AccountInfoCard component to SignatureRequest

* AccountInfoCard: implement proper styling

* AccountInfoCard: use renderShortAddress, fix styles, use conversionRate to display $ amount

* ActionView: add isSigning prop, disables scroll when true, SignatureRequest: pass isSigning=true to ActionView

* AccountInfoCard: remove top level view

* SignatureRequest: apply styles & layout, add website + arrow icons

* Signing components: update styling, rename informationRow --> informationCol

* remove message style

* TypedSign: put back message style, add messageWrapper style, ensure data fits in box and hides overflow

* AccountInfoCard: add snapshot test

* update snapshots

* styling of 'sign this message'

* update snapshot

* update snapshot

* SignatureRequest: Always render arrow if children coming from TypedSign

* SignatureRequest: change to regular component with state to show expanded message content, wrap touchableWithoutFeedback around the message children and move rendering to renderActionViewChildren, tapping the message currently does nothing

* fix dapp icon style, fix render inf loop

* remove textwrap for typed sign. Now renders properly for V1, V3 & V4

* AccountInfoCard: fix paddings, identicon style, use widths instead of flex, float address to left, fix font weights

* TypedSign: use width instead of flex

* SignatureRequest: remove website icon wrapper, fix arrow positioning, remove assetLogo style

* temp disable warning to match style, ensure message fits within box

* PersonalSign: create message wrapper, ensure message fits within box

* Message & Personal Sign: use ellipses mode for text wrapper, drop messageWrapper styles

* SignatureRequest: remove shouldRenderArrow, add shouldRenderArrow prop

* MessageSign: change to stateful component, add renderArrow state, decides if should render arrow upon text component layout, then adjusts the text accordingly

* PersonalSign: change to stateful component, add renderArrow state, decides if should render arrow upon text component layout, then adjusts the text accordingly

* TypedSign: shouldRenderArrow always passes down as true. Will never be a situation where an entire typed message fits in the box

* SignatureRequest: change back to pure component, change handleMessageTap into prop

* change handleMessageTap to toggleExpandedMessage

* TypedSign: implement message expansion and retraction

* modify message, add message_from

* new ExpandedMessage component, rendered by typed, personal & regular message components

* TypedSign: use ExpandedMessage component

* ExpandedMessage: test

* SignatureRequest: add renderArrow prop, make box not expandable if false

* MessageSign: implement message expanding and retracting

* PersonalSign: implement message expand & retract

* ExpandedMessage: add mock fns, update all snapshots

* ActionView: get rid of top border

* new button styles

* signing components: ensure a top left and right rounded border

* change Cancel & Sign to lowercase

* snapshot update

* adjust style for android

* use unique button style for signing components, fix percentage in stylesheet

* change isSigning prop to noScroll

* snapshot update

* update more snapshots

* Signing components: revert to pure component

* AccountInfoCard: use weiToFiat & hexToBn helpers to display fiat value, add currentCurrency prop

* Signing components: shift renderRootView() contents into render()

* update snapshot

* AccountInfoCard, SignatureRequest: fix paddings per design

* AccountInfoCard: remove bottom margin

* TransactionHeader: remove margins, use padding

* MessageSign: larger min height, showWarning prop

* WarningMessage: use flexstart alignment for bell icon

* locales: change eth_sign_warning

* WarningMessage: add object as secondary prop type for warning message

* SignatureRequest: use WarningMessage component, fix paddings, use renderWarning as prop for WarningMessage

* snapshot update yo

* SignatureRequest: move AccountInfoCard ontop of message children

* snapshot update

* AccountInfoCard: remove width

* ActionView: remove no scroll - small devices

* Signing Components: remove root style, move to SignatureRequest

* SignatureRequest: remove style redundancies, add in root style

* SignatureRequest: fix height of modal based on screen height

* ExpandedMessage: fix styling, move scrollview to signing components renderMessage

* ExpandedMessage: Put the scroll back

* PersonalSign: remove expandedMessage text wrapper

* SignatureRequest: fix up styling, add more overhead (reduced from signing components)

* Signing components: reduce view hierarchy, move to SignatureRequest

* Locales: add Read more to signature_request

* AccountInfoCard: add operation prop, if operation is signing, only display the account name and address

* TypedSign: add shouldTruncateMessage & truncateMessage in state

* PersonalSign: remove console log

* Signing components: change renderArrow to truncateMessage

* Nav/Main: add showExpandedMessage to state, add toggleExpandedMessage, configure expanded signing modal to go back on android back button press, pass down props to signing components

* Signing Components: move showExpandedMessage out of state, move out toggleExpandedMessage

* TypedSign: create different messageWrapper height for iOS & Android, fix text clipping mid-line

* ExpandedMessage: fix scrollview

* snapshot update

* AccountInfoCard: use getTicker

* Signing components: change margin bottom from 5 to 4

* Device: new getMediumDevice, SignatureRequest: use getMediumDevice

* ActionView, styledButtonStyles: add cancel button style for signing components

* snapshot update

* SignatureRequest: fix the domain logo not being a circle

* update snapshot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release QA Passed A successful QA run through has been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete New Signature Request Screen Designs
5 participants