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

asset outdated warning inline on full screen #8734

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

brad-decker
Copy link
Contributor

@brad-decker brad-decker commented Jun 3, 2020

Work towards implementing the full-screen design for the asset page

This PR:

  1. Updates the list-item to expose a new prop midContent which I can imagine might be used in other use cases as well.
  2. Updates the styling of list-item to be responsive with/without midContent present.
  3. repurposes warning prop on asset-list-item to be multipurpose so that it can be used to build the tooltip and inline experience.
  4. Updates one thing with transaction list item to update font-sizes on the transaction list item to match designs.

Does not include:

  1. The send token button on full screen UI
  2. Update to the text of the warning to indicate last sync time.

Screenshots will be added once CI passes

Asset page Responsive Gif
Transaction list item screenshot before
Transaction list item screenshot after

@brad-decker brad-decker changed the title warning inline on full screen asset outdated warning inline on full screen Jun 3, 2020
@brad-decker brad-decker force-pushed the fullscreen-asset-page-ui branch from 633ef84 to 32d9dd5 Compare June 4, 2020 15:36
@metamaskbot
Copy link
Collaborator

Builds ready [32d9dd5]
Page Load Metrics (607 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint319541168
domContentLoaded36675760511053
load36775860711053
domInteractive36675660511053

@brad-decker brad-decker force-pushed the fullscreen-asset-page-ui branch 3 times, most recently from 510a3ee to 8ff4e00 Compare June 4, 2020 17:06
@metamaskbot
Copy link
Collaborator

Builds ready [8ff4e00]
Page Load Metrics (698 ± 61 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint32119512210
domContentLoaded41391169712660
load41491369812661
domInteractive41291069612660

@brad-decker brad-decker marked this pull request as ready for review June 4, 2020 17:46
@brad-decker brad-decker requested a review from a team as a code owner June 4, 2020 17:46
test/helper.js Outdated Show resolved Hide resolved
ui/app/components/app/asset-list-item/asset-list-item.js Outdated Show resolved Hide resolved
ui/app/components/app/asset-list-item/asset-list-item.js Outdated Show resolved Hide resolved
ui/app/components/ui/list-item/index.scss Show resolved Hide resolved
@brad-decker brad-decker force-pushed the fullscreen-asset-page-ui branch from 8ff4e00 to da62b2d Compare June 5, 2020 17:39
The asset list item and transaction list item do not make great use of
screen realestate when in fullscreen mode on larger displays/windows.
This PR adds in a new prop for list-item for displaying content in the
middle of the list-item when on these types of screens. To facilitate
this, some updates were made to styling to allow for the list item to
better control how items are laid out in various breakpoints.

This works makes it possible to display the outdated balance warning
inline in the middle section of the list item, and convert to a tooltip
when on small displays.
@brad-decker brad-decker force-pushed the fullscreen-asset-page-ui branch from da62b2d to 9dadf78 Compare June 5, 2020 17:39
@metamaskbot
Copy link
Collaborator

Builds ready [9dadf78]
Page Load Metrics (654 ± 53 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint32443831
domContentLoaded36280765210952
load36380965410953
domInteractive36280765111053

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@brad-decker brad-decker merged commit 7fcf625 into develop Jun 5, 2020
@brad-decker brad-decker deleted the fullscreen-asset-page-ui branch June 5, 2020 18:36
Gudahtt added a commit that referenced this pull request Jun 10, 2020
* origin/develop: (35 commits)
  Delete unused InfuraController & tests (#8773)
  Permissions: Do not display HTTP/HTTPS URL schemes for unique hosts (#8768)
  Refactor confirm approve page (#8757)
  blocklisted -> blocked
  Update app/scripts/contentscript.js
  blacklist -> blocklist; whitelist -> safelist
  replace blacklist with blocklist
  Delete unused transaction history test state (#8769)
  fix-formatting-of-gif (#8767)
  Order accounts on connect page (#8762)
  add gif for loading dev build (#8766)
  Bump websocket-extensions from 0.1.3 to 0.1.4 (#8759)
  Fix prop type mismatch (#8754)
  use grid template to position list item (#8753)
  Fix account menu entry for imported accounts (#8747)
  Fix permissions connect close and redirect behavior (#8751)
  Refactor `TokenBalance` component (#8752)
  Fix 'Remove account' in Account Options menu (#8748)
  move activation logic into token rates controller (#8744)
  asset outdated warning inline on full screen (#8734)
  ...
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