embark/packages/embark-ui
Michael Bradley, Jr 2f2c0eefbf refactor(@cockpit/explorer): revise transactions explorer per techniques of PRs #1492, #1494
In addition to introducing improvements per #1492 and #1494, adjust the
transactions request action to allow for a `blockLimit` argument, since that
API parameter is supported by embark.

Revise `changePage` to invoke `fetchTransactions` correctly, i.e. with
arguments pertaining to a starting block number and a block limit.

These changes together fix most of the pagination problems related to exploring
transactions, i.e. badly mis-ordered results are no longer displayed.

However, a *wart* still remains related to estimation of the total number of
transactions and pages. Sometimes the calculated number of pages for the
transactions explorer doesn't match up to the actual number of transactions on
the blockchain (owing to estimation). The pagination controls and display of
transactions will temporarily behave a little strangely if one jumps ahead in
the pages, e.g. a jump from cockpit explorer overview's transactions page 1 to
page 5 for embark's demo, if an additional transaction has been added and the
explorer overview is freshly loaded. This behavior is related to the fact that
actions such as `fetchBlocksFull` and `fetchTransactions` are async without any
means to determine when all actions have completed and React re-/rendering has
settled down.

There are probably some architectural changes that could improve the situation,
but they're outside the scope of this PR and in no way easy to solve by means
of React lifecycle methods. In fact, attempts to make an improvement with
`componentDidUpdate` (and watching what happens in the debugger) revealed the
nature of the problem, as described above.
2019-05-07 10:40:27 -05:00
..
.storybook build: implement a monorepo with Lerna 2019-02-04 14:28:49 -06:00
config build: implement a monorepo with Lerna 2019-02-04 14:28:49 -06:00
public build: implement a monorepo with Lerna 2019-02-04 14:28:49 -06:00
scripts build: implement a monorepo with Lerna 2019-02-04 14:28:49 -06:00
src refactor(@cockpit/explorer): revise transactions explorer per techniques of PRs #1492, #1494 2019-05-07 10:40:27 -05:00
.env build: implement a monorepo with Lerna 2019-02-04 14:28:49 -06:00
.env.production fix(embark-ui): specify PUBLIC_URL=/ for production builds 2019-03-17 20:07:19 -04:00
.gitignore build: cleanup .gitignore 2019-02-05 18:08:14 -06:00
.npmrc build: implement a monorepo with Lerna 2019-02-04 14:28:49 -06:00
CHANGELOG.md chore(release): 4.1.0-beta.0 2019-04-17 11:11:28 -05:00
README.md feat: normalize README and package.json bugs, homepage, description 2019-03-12 09:17:33 -04:00
package.json chore(release): 4.1.0-beta.0 2019-04-17 11:11:28 -05:00

README.md

embark-ui

Web frontend for interactive DApp development with Embark

Visit embark.status.im to get started with Embark.