Commit Graph

1053 Commits

Author SHA1 Message Date
Roman Volosovskyi a7950af335 remove code related to restarting RPC server on entering background (#2008)
* remove restart-rpc-server, stop-rpc-server, start-rpc-server functions and related code

* clean native code
2017-10-04 21:56:27 +02:00
Roman Volosovskyi cede095746 reset shh keys on starting whisper, fix warnings related to outdated shh keys 2017-10-03 17:54:18 +02:00
Roman Volosovskyi 2763c87c40 use account-update function instead of dispatching :account-update (#1995)
* use account-update function instead of dispatching :account-update
* add (inject-cofx :now) to default interceptors
2017-10-03 17:06:12 +02:00
Roman Volosovskyi 4b6f920e43 add predefined ethereum networks 2017-10-03 10:32:49 +02:00
angusiguess 8d2992d1a4 Fix viewport translucency math 2017-10-03 10:32:16 +02:00
angusiguess 3578eed912 Update navigation for QR scan
Factor copy/paste to use choose-recipient

Change assoc to an update

Set name to nil
2017-10-03 10:32:16 +02:00
Eric Dvorsak db7614f8f7 Various styling fixes for wallet
[bugfix] transaction details background should be white

[bugfix] button styling in unsigned transactions

[bugfix] make whole item touchable in transactions history and unsigned

[bugfix] correction of icons styling in transactions history

[bugfix] error message should not touch the toolbar in wallet

[bugfix] add asset icon and text are different on ios and android

PR review fixes
2017-10-03 10:32:16 +02:00
angusiguess 69a6baf09b Add flashlight functionality to choose recipient screen 2017-10-03 10:32:16 +02:00
Andrey Shovkoplyas 499cd393ad fixes tests 2017-10-03 10:32:16 +02:00
Andrey Shovkoplyas 9246d7df21 send transaction layer 1 2017-10-03 10:32:16 +02:00
Eric Dvorsak 62affda881 add unsigned transactions bindings in new wallet 2017-10-03 10:32:16 +02:00
angusiguess 498f641c8a Initial Commit for first send screen:
- Update toolbar text
- Add frame for camera/qr
- Add button for choose contacts
- Add button for address from clipboard
- Add button for browse photos

Set recipient from clipboard.

Added functionality and event handling necessary to set recipient
from clipboard.

Add choose-recipient event to assoc into the database

Add QR code scanning to first screen

Add vector icons for copy and select image

Fix svg

Fix rebase, localize labels

Add checkmark icon (this is a placeholder, current svg won't render)

Remove leak from develop

Vertical alignment fixes

Vertically align maps in view

Address review comments

Fix rebase reference problems/styling issues

Small style tweaks, fix icon

Fix small design issues

Indentation fixes

Address review points

Fix indentation

Prevent permissions request on ios

On ios, a permissions request results in a null reference error,
do a platform check before performing a permissions request.

Fix compile error

Restyle for ios, colours, layout

Update icons on ios

Restyle disabled button

Browse photos button disabled

Add viewfinder and platform specific styling.

Viewfinder and style changes

Add some torch functionality, fix toolbar, style issues

Refactor view style, add translucent bits to viewfinder

Address pull request feedback

Replace a style by defstyle
2017-10-03 10:32:16 +02:00
angusiguess 3b4d140ef6 Initial Commit for first send screen:
- Update toolbar text
- Add frame for camera/qr
- Add button for choose contacts
- Add button for address from clipboard
- Add button for browse photos

Set recipient from clipboard.

Added functionality and event handling necessary to set recipient
from clipboard.

Add choose-recipient event to assoc into the database

Add QR code scanning to first screen

Add vector icons for copy and select image

Fix svg

Fix rebase, localize labels

Add checkmark icon (this is a placeholder, current svg won't render)

Remove leak from develop

Vertical alignment fixes

Vertically align maps in view

Address review comments

Fix rebase reference problems/styling issues

Small style tweaks, fix icon

Fix small design issues

Indentation fixes

Address review points

Fix indentation

Prevent permissions request on ios

On ios, a permissions request results in a null reference error,
do a platform check before performing a permissions request.

Fix compile error
2017-10-03 10:32:16 +02:00
Herich d9db548e57 Refactoring chat events to shorten event chains 2017-10-03 09:28:38 +02:00
Roman Volosovskyi 5a49926ad0 remove status-im.utils.ethereum-network ns 2017-10-03 08:26:00 +02:00
Roman Volosovskyi bc9e65774c remove duplicate calls to jail 2017-10-02 18:12:25 +02:00
Roman Volosovskyi cf7a9845c6 data_store and network_settings from #1115
missed default networks
fix :load-default-networks
network settings screen
fix network details screen
networks in account
fix network property saving
update startNode and stopNode on iOS
test RPC proxy on iOS
StopNode and StartNode on androd
pass UpstreamConfig to status-go
upgrade status-go
added default network on login
fixed UI, added vector icons
added network name in drawer
migrated accounts
workaround for account v4 migration
2017-10-02 14:13:10 +02:00
Roman Volosovskyi a0872fb1bf ensure that bool value is set to refreshing prop 2017-09-28 16:05:55 +02:00
Andrey Shovkoplyas f36dca3b5c fixes vector icons 2017-09-28 16:56:58 +03:00
Eric Dvorsak 3f2416fafd refactor chat actions view 2017-09-25 19:55:47 +02:00
Eric Dvorsak 28355ca3c5 add accessibility ids for end-to-end tests 2017-09-25 19:55:47 +02:00
Eric Dvorsak 17011f6d9e refactor toolbar action 2017-09-25 19:55:47 +02:00
Eric Dvorsak 998df74b10 add gas price in gwei in transaction details 2017-09-25 19:54:57 +02:00
Oskar Thorén 9ab7ebdcf2 Push notifications: Print notif and data payload when resuming app
- on-notification listener registered in root component
- print data (hardcoded keys) and notif payload to debug
2017-09-25 16:32:35 +02:00
Roman Volosovskyi 0badfd6b5b fix Use of undeclared Var status-im.utils.platform/platform warning 2017-09-25 14:07:08 +02:00
Eric Dvorsak 7d9190bb85 fix #1893 cannot scroll to last 2 transactions in history
update react-native-swipper to latest working version
remove bottom margin hack in other screens with similar bug
fixes Cannot scroll transaction history when app is syncing #1902 as well
2017-09-25 13:09:27 +02:00
Oskar Thorén c846574155 Fix portfolio change to 0 if balance is zero
If you don't have money in your balance, your "portfolio" change is nothing.

- Positive portfolio change includes if it is zero
2017-09-25 11:17:50 +02:00
Roman Volosovskyi d86a853f07 atomic Confirm button for transactions 2017-09-21 14:46:49 +03:00
Jan Herich 805d874846 Fix #1886 (#1894)
* Fix #1886

Completly rework the way how async handlers work

Delay further processing of message till async handler returns result

* Fix indent

* Fix #1903
2017-09-21 14:08:51 +03:00
Eric Dvorsak bce18bf32c typo prevented error on prices-update from clearing 2017-09-20 17:26:58 +03:00
Eric Dvorsak 8d80e35305 make history-list the default transactions tab 2017-09-19 13:17:15 +03:00
Julien Eluard b8dff77311 [FIX #1854] Fixed broken pull-to-refresh behavior 2017-09-19 13:17:15 +03:00
Eric Dvorsak d6966e2d34 remove unsigned transactions before they are implemented 2017-09-19 13:17:15 +03:00
Eric Dvorsak 5e31fcdacc add transaction details screen 2017-09-19 13:17:15 +03:00
Oskar Thorén 1b0409fdc9 Bugfix: correct realm schema for release
In release 0.9.11 we'll have v13, so we don't want to modify this in develop.
This moves Push notification related changes into a new migration as opposed to
merging them into one.
2017-09-18 17:51:53 +03:00
Oskar Thorén d30a14a774 Bugfix: resolve undeclared var for status/notify
Rebasing introduced regression due to refactoring of how native modules are
called. Call implementation when available, noop when stubbing status-go.
2017-09-18 17:48:44 +03:00
Oskar Thorén b5c0b24f30 Push notifications: end to end v1
- Send notification when sending message in 1on1 chat
- Add notify FFI with binds for ObjC and Java
- Add fcm-token to contacts in spec and realm
- Add notifications to db
- Include fcm-token in contact request
- Update fcm-token when it arrives and put it in DB
- Disable copy-paste hijacking and popup
- Turn on notifications flag in Jenkins build
2017-09-18 16:28:04 +03:00
Jan Herich b889a07a86 Implement possibility for async command handlers (#1857)
* Implement possibility for async command handlers

Command handler can now return results asynchronously,
and those results as saved and persisted, indexed by
command message-id.

* Address feedback raised in PR comments

* Different handler codes + simplified error message
2017-09-18 16:08:06 +03:00
Roman Volosovskyi e961801429 utilize single jail.signal event for all signals from jail 2017-09-18 16:06:22 +03:00
Roman Volosovskyi 43a5d91ca2 upgrade status-go to bugfix-updated-cht-#185-gd84d10d
changes in shh API according to https://github.com/ethereum/go-ethereum/wiki/Whisper-v5-RPC-API
2017-09-18 16:06:22 +03:00
Julien Eluard 7c82f3f0c3 [FIX #1851] Improved iOS wallet UI 2017-09-15 18:28:24 +02:00
Andrey Shovkoplyas 9f5d808702 fixes Wallet Request screen UI issues 2017-09-15 16:37:27 +02:00
Andrey Shovkoplyas 66dd3a2e82 implemented request transaction 2017-09-15 16:37:27 +02:00
Eric Dvorsak a43af5e078 rename wallet history -> wallet transactions 2017-09-15 16:37:27 +02:00
Eric Dvorsak c22060542a sort completed-transactions by timestamp 2017-09-15 16:37:27 +02:00
Roman Volosovskyi 8c044d9991 stub for ReactNativeModule 2017-09-15 14:15:32 +03:00
Goran Jovic eac7e06f40 feature #1805 refactored protocol listeners 2017-09-15 14:15:04 +03:00
Julien Eluard a85929e72d [FIX #1802] Make sure wallet buttons have proper width 2017-09-13 09:43:09 +03:00
Oskar Thorén cdc996caa2 Remove cljs-priority-map
cljs-priority-map provides a special purpose data structure that needlessly
complicated things and doesn't appear to provide much value for what it gives
us.

Instead, keep :chats an ordinary map and sort vector on final subscription, as
our ListView destructures data-source items correctly.

This means we can upgrade Clojurescript.
2017-09-13 08:46:35 +03:00
Julien Eluard 9cda6806e3 Fixed various wallet UI inconsistencies 2017-09-12 10:46:15 +03:00
Goran Jovic a764da2b4b fix #1605 protocol message parser catches all invalid payload as errors 2017-09-11 09:46:24 +03:00
Eric Dvorsak 7a06bb8278 fix #1804 - duplicated status in discover tab 2017-09-11 09:18:11 +03:00
alwx 7875e11ea0 1628: Add Testnet warning, so no real ether or SNT is sent to the app 2017-09-10 12:23:49 +03:00
Julien Eluard 3e1d731111 Fixed incorrect margin for toolbar action buttons 2017-09-09 17:31:33 +03:00
Oskar Thorén ef777511dc Enable treating warnings as errors and list acceptable warnings 2017-09-09 14:05:13 +03:00
Eric Dvorsak 35b69030bf fix compilation warnings 2017-09-09 12:48:30 +03:00
Oskar Thorén 60515a01e6 Turn off NOTIFICATIONS_WIP_ENABLED for Jenkins; remove dup event
- After testing we don't need to expose this WIP with popups etc
- get-fcm-token event was accidentally included twice during rebase leading to warnings
2017-09-09 12:11:09 +03:00
Henrik Kjerringvåg 51730d2404 Added a translations-file for Norwegian Bokmål 2017-09-09 07:45:32 +03:00
Eric Dvorsak ab98de0be5 moving drawer local state to db and fixing bug 2017-09-09 07:36:05 +03:00
Eric Dvorsak d5981c65a1 add accessibility labels for UI testing 2017-09-08 16:39:54 +03:00
Julien Eluard ad7c6b8542 Fixed tabs component 2017-09-08 14:50:19 +03:00
Oskar Thorén aaa13b922b Push notifications: iOS request permissions, listen for token, flags
- Asks for permissions on iOS at startup
- Introduce NOTIFICATIONS_WIP_ENABLED flag
- Surface FCM Token and put it in clipboard for QA manual end to end testing
- Listen for FCM RefreshToken event at root
2017-09-08 12:05:21 +03:00
Eric Dvorsak c1cac1eb7c wallet UX error fixes and more frequent refreshes
fix wallet errors that were sticking when refresh occured
add separate errors for transaction history fetching with visual feedback
update wallet when going on wallet tab
update transaction list when opening transaction modal
2017-09-08 11:53:49 +03:00
Julien Eluard 97789feb6b [FIX #1772] Fixed incorrect icon padding 2017-09-08 11:53:27 +03:00
Eric Dvorsak 5d2a0e836a link transaction history with real transactions data
- add transactions utils namespace
- link transactions to view
2017-09-07 16:02:13 +03:00
Andrey Shovkoplyas f88c3feaf6 reworked main tabs using svg icons [#1748 2017-09-06 17:05:56 +03:00
Julien Eluard 1a6bfd06a6 Fixed UI glitch when switching to wallet tab on iOS 2017-09-06 14:51:45 +03:00
Eric Dvorsak de9905a14e Fix: timezone offset for today was missing 2017-09-06 11:08:52 +03:00
Julien Eluard 36d1568a76 Fixed main wallet discrepancies 2017-09-05 17:38:19 +03:00
Julien Eluard c3f38249e5 Improved eexception-handler to provide more contextual info 2017-09-05 17:19:39 +03:00
Goran Jovic 2fc6854543 fix #1448 #1741 - workaround to identify a group chat by existence of group-id rather than unreliable group-chat flag 2017-09-05 09:25:06 +03:00
Andrey Shovkoplyas a3700c19ac made user pics circle in chat 2017-09-05 07:29:31 +03:00
Andrey Shovkoplyas 1655873738 [fix #1460] hide emoji on commands selection 2017-09-04 17:16:11 +03:00
Julien Eluard 99e04105ec [FIX #1731] Prepare configuration allowing to fail build 2017-09-04 11:16:44 +03:00
Julien Eluard bc73fbd83e [FIX #1721] Disable sign-in button when no password has been entered 2017-09-04 11:16:03 +03:00
vojta c6daeaa1ee Added Czech translation 2017-09-04 08:01:23 +03:00
Eric Dvorsak c46a465b98 fix compilation warnings 2017-09-02 10:01:13 +03:00
angusiguess bc37283cb7 Add wallet error message.
- Add wallet key to db
- Add sub for wallet error messages
- Add event handlers to set wallet values
- Cover the above with tests

Oh and add the tests

Add error view

Add exclamation mark, style error message, add message to view

Remove commented styling

Localise wallet error

Add translation

- Add an english translation for the error message
- Change error representation in db to a keyword
- Update handlers to set and clear keywords

Constrain spec, make view conditional

- The spec for error messages now takes a predefined set.
- Error message only pops on error

Fix test

Align maps

Reduce event chain size, move logging to timbre
2017-09-01 19:01:12 +02:00
Goran Jovic d2530517c4 feature #1585 generate signing phrase, show it to the user during on-boarding, store in the account; account schema updated, added migration, generating a new signing phrase on recovery 2017-08-31 15:41:15 +03:00
Julien Eluard dd6d679322 Improve error message when status-go throw an error 2017-08-31 10:25:37 +02:00
Eric Dvorsak 37a67b3ccf create subscriptions for wallet data bindings 2017-08-30 14:08:58 +02:00
Oskar Thorén e169949e0a Push notifications: Spike for Android
- Print FCMToken which can be used to send PNs from Firebase Console
- Include react-native-fcm and related packages
- Update capabilities for iOS
- google service config files for Android and iOS
2017-08-30 13:58:52 +02:00
Andrey Shovkoplyas be57d85147 implemented svg icons 2017-08-30 11:09:27 +02:00
Gustavo Nunes 9a06417b6e New screen: Wallets list (ui only) 2017-08-29 16:51:17 +02:00
Oskar Thorén f07eff4ab1 Merge pull request #1686 from status-im/feature/wallet-transactions
Implemented all wallet/transactions screens
2017-08-28 09:32:42 +02:00
Goran Jovic e6e65a41d8 fix #1397 - two sent messages instead of one in group chat, only recipient's wallet updated 2017-08-28 10:03:31 +03:00
angusiguess 0df8dcad32 [FIX #1474] Fix copy/paste of coordinates, address, and map viewing 2017-08-25 16:27:08 +03:00
Julien Eluard a2b717cfbb
Implemented all wallet/transactions screens 2017-08-25 12:46:41 +02:00
angusiguess 6fa9040def [FIX #1668] Prevent UI keys from propagating to account model.
The ```:account-update``` event was being passed the key
```update-status?``` which has nothing to do with an account as
represented in the db. This resulted in a spec failure when this
key was detected on an attempt to save changes.

I've sanitized this event by pulling out the three account keys,
```[:name :photo-path :status]```
that are relevant to ```profile``` and ensuring that only they get
passed to ```:account-update```.

Profile updates now work as expected.

Add tests covering profile events

Fix the runner
2017-08-25 13:10:18 +03:00
angusiguess 52c8fc967d [FIX #1602] Trim whitespace from passphrase during account recovery
Currently account recovery includes whitespace on either side of the
passphrase, preventing recovery of the desired account.

We trim that whitespace in the account-recovery-fx
2017-08-24 16:36:47 +03:00
Julien Eluard 2585a32c7a Enable main wallet screen. WIP features are hidden behind flag 2017-08-23 12:28:42 +03:00
Oskar Thorén 8ac1535dab wallet: main screen live data binding
Initial utility for live data binding in the new wallet.

- Add prices namespace to get fiat prices from Cryptocompare
- Events to init wallet balance and load prices
- Listen to these events in wallet main view
- Show accurate ETH balance, USD value and %change from yesterday
- Enable wallet tab in Jenkins
2017-08-22 11:52:31 +03:00
Julien Eluard 55fd200c71 Introduced tab switching for wallet transactions screen 2017-08-22 11:41:37 +03:00
Eric Dvorsak 92f3f9a4c5 Fix #1648
Popup null is not an object (evaluating 'e.replace') if tap on
status -> username -> status in drawer
2017-08-21 10:20:31 +03:00
Andrey Shovkoplyas bab4e33ec2 Accounts refactoring #1610 2017-08-21 10:19:03 +03:00
Eric Dvorsak cb48195383 fix #1571 Feature/profile refactoring
Second step of refactoring guidelines to fix #1571

- use fx and cofx
- specs
- simplify event chain
2017-08-18 13:15:25 +03:00
Julien Eluard a22bde50c7 First implementation of the unsigned transactions list 2017-08-18 12:34:16 +03:00
Mihael Konjevic 90c26570f8 [FIX #148] Disable back button on QR code reader page until camera is available. 2017-08-18 10:47:25 +03:00
Mihael Konjevic 41429cf1ed Ensure that `:initialCenterCoordinate` attribute gets the correct data
Mapview component accepts the `:initialCenterCoordinate` which always must have
longitude and latitude attributes. This ensures that they will always be present
even when they are missing from the map passed retreived from the app state.
2017-08-18 10:43:45 +03:00
Goran Jovic 1ca35db17c fix #1518 and #1573 - removed potentially offensive words, made username generation deterministic, updated unit tests 2017-08-17 18:43:15 +03:00