Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Mobile Alpha 0.6.0 (33) #834

Merged
merged 42 commits into from
Jan 15, 2019
Merged

Mobile Alpha 0.6.0 (33) #834

merged 42 commits into from
Jan 15, 2019

Conversation

cvarley100
Copy link
Contributor

No description provided.

@cvarley100 cvarley100 added the L - Do not merge Lifecycle - Do not merge this pull request label Dec 20, 2018
cvarley100 and others added 3 commits December 20, 2018 20:45
* Implement quorum for wereAddressesSpentFrom

* Simply #findSyncedNodes implementation

* Add quorum support for getBalances IRI endpoint

* Minor updates

- Add quorum support for getTrytes IRI endpoint
- Minor clean up in quorum methods

* Add quorum support for findTransactions IRI endpoint

* Rename quorum methods for better readability

* Integrate quorum methods with extended api

* Remove findTransactions & getTrytes endpoints from quorum

* Refactor quorum implementation and do minor fixes

- Update JSDoc typos
- Simplify quorum implementation (Remove duplications)
- Add a timeout for network request to each node
- Fix issues in findSyncedNodes implementation
- Update error messages

* Add coverage
- Add coverage for #determineQuorumResult
- Add coverage for #fallbackToSafeResult
- Add coverage for #findSyncedNodes

* Add empty payload checks in quorum methods

* Wrap percentage calculation in parentheses for clarity

Co-Authored-By: laumair <[email protected]>

* Use develop branch of iota.lib.js

* Enforce quorum (by default) on supported methods

* Fix tests failing because of quorum enforcement

* Add code documentation and rename parameters & variables for clarity

- Related discussion #631 (comment)

* [Security] Bump cryptiles from 3.1.2 to 3.1.4 (#829)

* [Security] Bump nokogiri from 1.8.4 to 1.9.1 in /src/mobile/android (#828)

* Make sure accounts are always iterated in correct order (by account index) (#824)

Object.keys(<object>) function does not always preseve the order, especially if the object key starts with a number. This causes an issue when Object.keys is used for iterating on account names. #715 adds account indexes to state to make sure the order of accounts is always intact. However, some components in desktop use Object.keys directly on accounts object, which leads to certain issues of incorrect references to accounts. This commit fixes this issue by replacing Object.keys implementation on accounts with getAccountNamesFromState selector that guarantees the accounts order.

Fixes #811

Note that the issues Object.keys create are not always noticeable. Steps to reproduce these issues are:

- Add account with name "M"
- Add another account with name "0"
- Notice account names order in sidebar (Instead of "0" being the second account, it becomes the first)
- Generate receive address from account "M" (Instead of generating receive address for account "M", it generates receive address for account "0")

* New Crowdin translations [ci skip] (#826)

* New translations translation.json (Czech)

* New translations translation.json (Czech)

* New translations translation.json (Japanese)

* New translations translation.json (Spanish)

* Mobile: Update findSyncedNodes

* Update quorum.js

* Improve parameters and variable names

* Include custom nodes in quorum nodes

* Reduce node request timeout for getNodeInfo api calls (in quorum)
@cvarley100 cvarley100 changed the title Mobile: Bug fixes Mobile Alpha 0.6.0 (34) Dec 20, 2018
@cvarley100 cvarley100 changed the title Mobile Alpha 0.6.0 (34) Mobile Alpha 0.6.0 (33) Dec 20, 2018
@cvarley100 cvarley100 force-pushed the mobile-0.6.0-alpha-quorum branch from addd68d to c2b3bde Compare January 4, 2019 15:00
laumair and others added 15 commits January 4, 2019 15:11
* Mobile: Fix settings animations issues

* Mobile: Fix settings animations issues

* Mobile: Fade out on logout

* Mobile: Fix login animation direction

* Mobile: Remove unused prop

* Mobile: Fix notification icon when modal is open

* Mobile: Fix retry text opacity during promotion
* Remove unnecessary node sync checks

With quorum integration, some node sync checks are now unnecessary as quorum will ensure we always query synced nodes. This commit removes these checks.

* Use default timeout for getNodeInfo while checking node's health
- Add node health checks for account sync utils because getLatestInclusion support for quorum is (temporarily) disabled.
* Mobile: Add request-specific timeouts to quorum

* Mobile: Update GET_NODE_INFO_REQUEST_TIMEOUT in config
* Mobile: Add request-specific timeouts to quorum

* Mobile: bump build no
findSyncedNodes wasn't filtering unsynced nodes from selected nodes in one case. This commit fixes the issue.
* Mobile: Add request-specific timeouts to quorum

* Mobile: Fix modal layout issues and refactor

* Update src/mobile/src/ui/components/ModalView.js

Co-Authored-By: cvarley100 <[email protected]>
@cvarley100 cvarley100 merged commit 29d1d02 into develop Jan 15, 2019
@rajivshah3 rajivshah3 deleted the mobile-0.6.0-alpha-quorum branch January 21, 2019 03:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
L - Do not merge Lifecycle - Do not merge this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants