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

Scan: Implemented the txIndexPage's mobile layout #2310

Merged
merged 5 commits into from
Jul 25, 2020
Merged

Conversation

pzshine
Copy link
Member

@pzshine pzshine commented Jul 25, 2020

Fixed: #2304

Implementation details

  • Implemented mobile layout for TxIndexPage
  • Improved the MobileCard component to be more efficient.
  • Updated the infoMobileCard to have the new type

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@render
Copy link

render bot commented Jul 25, 2020

@pzshine pzshine changed the title Scan Implemented the txIndexPage's mobile layout Scan: Implemented the txIndexPage's mobile layout Jul 25, 2020
Copy link
Contributor

@evilpeach evilpeach left a comment

Choose a reason for hiding this comment

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

image
Please decrease the loading bar on timestamp.

scan/src/components/TxMobileIndexPageTable.re Outdated Show resolved Hide resolved
scan/src/components/TxMobileIndexPageTable.re Outdated Show resolved Hide resolved
scan/src/components/TxMobileIndexPageTable.re Show resolved Hide resolved
scan/src/reusable/MobileCard.re Outdated Show resolved Hide resolved
scan/src/reusable/MobileCard.re Outdated Show resolved Hide resolved
scan/src/reusable/MobileCard.re Outdated Show resolved Hide resolved
scan/src/reusable/InfoMobileCard.re Outdated Show resolved Hide resolved
scan/src/reusable/InfoMobileCard.re Outdated Show resolved Hide resolved
Copy link
Contributor

@evilpeach evilpeach left a comment

Choose a reason for hiding this comment

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

LGTM

@evilpeach evilpeach merged commit cdee312 into master Jul 25, 2020
@evilpeach evilpeach deleted the mobile-tx-index branch July 25, 2020 16:40
@@ -1052,6 +1051,7 @@ let make = (~messages: list(TxSub.Msg.t)) => {
{messages
->Belt.List.mapWithIndex((index, msg) => {
let theme = msg |> TxSub.Msg.getBadgeTheme;
//TODO: Change index to be uniqe something
Copy link
Member

Choose a reason for hiding this comment

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

nit: typo

type t =
| Address(Address.t, int)
| Address(Address.t, int, bool)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it's worth having a variant type for this. Can even be
Address(Address.t, int, [ `account | `validator ]). Or at least we can add a comment explaining the meaning of the boolean. Up to you guys.

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.

Tx Index Page (mobile)
3 participants