Commit Graph

976 Commits

Author SHA1 Message Date
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
Oskar Thorén 8e22ce9466 utils: Support ERC20 balance-of in order to get token balance
This is necessary in order to display token balance in Wallet.
2017-08-17 17:19:49 +03:00
Herich e3f27ee5ee Refactor command data loading + chat input handling
Also accomplished was removal of redundant preview loading
and command markup is now stored as cljs data in app-db,
only being translated to RN components in subscriptions
2017-08-17 09:08:07 +03:00
Andrey Shovkoplyas 7506689fe5 navigation refactoring #1609 2017-08-16 13:13:38 +03:00
Julien Eluard 9bacc65c8d Implement wallet/transactions basic skeleton 2017-08-16 12:09:01 +03:00
Eric Dvorsak 69a84c8315 Costmetic refactoring according to refactoring guidelines 2017-08-16 11:00:25 +03:00
Roman Volosovskyi a93cb0b1d1 show testfairy warning on startup (#1569) 2017-08-14 21:44:48 +03:00
Andrey Shovkoplyas 1fe17305af removed an unnecessary character 2017-08-14 14:27:27 +03:00
Andrey Shovkoplyas e158ba5d4f fixed wallet screens 2017-08-14 14:15:48 +03:00
Andrey Shovkoplyas 883b702fcb Introduced new hierarchy ,refactored core 2017-08-14 13:42:20 +03:00
Oskar Thorén 8d040aee11 wallet (WIP): Hook up handlers to minimal send-transaction screen 2017-08-11 12:14:17 +03:00
Roman Volosovskyi 13dcf9dafe fix main_screen dir 2017-08-10 17:32:38 +03:00
Gustavo Nunes dc42a9a719 Created Wallet main screen 2017-08-10 11:42:29 +03:00
Andrey Shovkoplyas a91a945bfa tests for group module 2017-08-10 10:05:29 +03:00
Roman Volosovskyi 0ada614d62 utilise CallRPC in react-native-status module 2017-08-09 19:38:48 +03:00
Andrey Shovkoplyas 6d62a21af7 tests for contacts events 2017-08-09 16:43:40 +03:00
Oskar Thorén db6b80d529 chat, protocol: Introduce Lamport clock semantics for message order
This commit ensures messages are ordered correctly when participants join and
leave a group chat. Specifically, the last received message will appear last.
Previously the user and chat clock was queried and updated in an ad hoc manner.
With this change there are only two clock changes to keep track of:

Sending messages:
time = time+1;
time_stamp = time;
send(message, time_stamp);

Receiving messages:
(message, time_stamp) = receive();
time = max(time_stamp, time)+1;

(See https://en.wikipedia.org/wiki/Lamport_timestamps)

Note that this means we can get rid of all the non-message clock queries and
updates.
2017-08-09 12:34:36 +03:00
Julien Eluard 646f61a406 Give all components a :display-name.
Make sure components use :reagent-render.
2017-08-08 21:42:26 +03:00
Oskar Thorén b510488f11 fix #1050
Introduce a money namespace that solves a bunch of issues related to significant
numbers being preserved and converted correctly.
2017-08-07 13:55:22 +03:00
Roman Volosovskyi f91c480ad8 remove sensitive data from debug output 2017-08-04 20:45:24 +03:00
Andrey Shovkoplyas b429076cad refactored new-group events using fx and cofx
reorganized modules structure, renamed files, improved requirements
2017-08-04 06:36:16 +03:00
Herich d9800fe9a7 fix #1469 chat: location is shown as plaintext 2017-08-03 17:05:39 +03:00
alwx abafa3308a Unit tests for input model 2017-08-02 17:03:11 +03:00
Oskar Thorén fc59f8d7f1 fix #1050 transaction view: app crash
Transactions with 15 significant digits crashes the app due to something weird
going on in the Clojurescript -> web3 -> BigNumber chain. This fix converts the
number into a BigNumber before converting it into Ether.
2017-08-01 15:41:12 +03:00
Herich 4521020ce5 fix #1486 chat: removable console chat 2017-07-31 14:58:42 +03:00
Andrey Shovkoplyas 3d05f99bd4 implemented fx handler, rewrite handlers using fx and cfx, optimized subscriptions, reorganized structure and renamed files, implemented re-frame-test and wrote some tests 2017-07-28 17:25:55 +03:00
Danny Wilson 68fe57b016 fix #1171: hide remove option from profile menu for unremovable contacts 2017-07-28 15:40:00 +03:00
Basile Beldame 5b4f15659d Fix french translation
"Address" in english is "Adresse" in French + Everything in the page is in Zero infinitive exect this "Entrez Addresse", which sounded weird.
2017-07-28 15:39:33 +03:00
Herich 9f35e0c983 fix #1488 new_group: once-only handler for save 2017-07-28 14:07:49 +03:00
Oskar Thorén 7eb5cdb9ab chat: fix #1390, selection OOB
When the input field includes an unmatched " in the input-text, there's a
mismatch between the parsed command-args and the length of the text field,
causing text selection to be out of bounds. By bounding the new selection to a
maximum of the input text, this is avoided.
2017-07-28 12:45:58 +03:00
Julien Eluard 614a2d89cb Added basic exception handler. 2017-07-26 21:40:38 +03:00
Herich 63d9301a27 fix #1499 chat: don't persist null properties 2017-07-26 18:27:47 +03:00
Oskar Thorén 389e79d683 console: amend fix of #1207 (bad suggestions)
A single unbalanced ')' shouldn't count as nesting, so ')' and 'a)' etc don't make the form ''.

console: add ad-hoc test script for suggestions
This creates a quicker feedback loop for testing console suggestions, as well as making sure we don't introduce suggestions regressions.

chat, parameter-box: hide parameter-box when {markup: null} is returned
2017-07-26 16:16:59 +03:00
Herich f5b0c0c368 chat, data, utils: add implementation of simple preview caching 2017-07-26 15:00:14 +03:00
Julien Eluard 98b58c9036 Removed useless natal-shell dependency 2017-07-26 08:37:59 +03:00
alwx fe78e7d786 Can use requesting message to send ether if recipient name contains double quotes (#1411) 2017-07-25 13:56:07 +03:00
alwx 32b64dcdb9 App no longer crashes if start deleting url while browsing (#1468) 2017-07-25 11:15:49 +03:00
Julien Eluard cdbabca9fe Multiple hit on save should not create multiple groups 2017-07-25 10:24:02 +03:00
Julien Eluard 20550b42c6 Upgraded translations to reflect changes to :debug-enabled 2017-07-21 12:55:27 +02:00
Julien Eluard eed74d8af0 Fixed incorrect message keys 2017-07-21 12:53:57 +02:00
nulldash 76e3068220 Update Bahasa Malaysia translation
Translated the new added/fixed strings on the tracked en.cljs following commit 5051d1ce9e and 41ee6bfa89 plus properly translated the word `Wallet`.
2017-07-21 12:52:46 +02:00
Roman Volosovskyi cad5e0c567 fix missed web3 object 2017-07-18 10:17:58 +03:00
jaimeagudo 41ee6bfa89 Refine translations/es.cljs, fix en `:send-command-description` 2017-07-18 08:50:42 +03:00
Julien Eluard adc55d6fb9 Make sure validation-messages are nil when navigating to a chat 2017-07-18 08:49:32 +03:00
TheHealthyCat 909f697efd Update it.cljs 2017-07-18 08:46:38 +03:00
Roman Volosovskyi be463e0947 messaging test 2017-07-18 08:41:03 +03:00
Andrey Shovkoplyas 0bf8b711be removed old unused code and resources 2017-07-17 22:48:06 +03:00
Roman Volosovskyi 04c047a811 fix #1458 2017-07-17 16:01:07 +03:00
Roman Volosovskyi 23399c63e1 extract React Native dependencies 2017-07-17 11:38:48 +03:00
alwx 6669f79c44 Comments for input model; redundant functions has been removed; refactoring 2017-07-17 08:05:41 +03:00
Andrey Shovkoplyas f5348df929 fixes https://github.com/status-im/status-react/issues/1394 2017-07-15 07:13:09 +03:00
alwx a0de31ebb6 Requesting message in group chat now contains recipient name (#1396); restructuring of commands 2017-07-14 10:11:24 +03:00
Roman Volosovskyi 29ccf9546f remove :chat-properties sub 2017-07-13 16:13:08 +03:00
Roman Volosovskyi 1a056d0256 fix #1414 by adding necessary data to bot-db 2017-07-13 16:13:08 +03:00
Herich ac699e3320 chat: fix input length styling after commands 2017-07-13 14:01:35 +03:00
Andrey Shovkoplyas 458c884462 fixed es-mx ns 2017-07-12 13:12:40 +03:00
Roman Volosovskyi 8e896fcdfb fix #1432 (related to re-frame migration) 2017-07-12 10:04:20 +03:00
Julien Eluard 585d4e0195 Reduce captured photo size. 2017-07-12 09:21:11 +03:00
Raúl Velázquez Collado 70e068b8b0 Create es-mx.cljs
Spanish translation for Mexico.
2017-07-12 09:09:09 +03:00
Julien Eluard 4cd140f701 Added missing spec for :sync-data key 2017-07-12 08:57:13 +03:00
Roman Volosovskyi 06bff32f79 fix handlers-> macro 2017-07-11 20:16:02 +03:00
Roman Volosovskyi 1a997cad39 fix Unhandled JS Exception: Vector's key for assoc must be a number. 2017-07-11 19:12:07 +03:00
Andrey Shovkoplyas 1485e07259 make all specs nilable 2017-07-11 15:06:23 +03:00
Julien Eluard 6e5e6200ab Upgraded to re-frame 0.9.4
Simplify handlers chaining
Moved to reg-sub usage
Use reg-sub 3-arity to remove subscribe calls
2017-07-11 11:03:28 +03:00
Andrey Shovkoplyas f846cb8a92 fixes specs 2017-07-11 10:33:14 +03:00
Andrey Shovkoplyas 21626549d1 implemented spec for app-db 2017-07-10 22:57:36 +03:00
Andrey Shovkoplyas 5051d1ce9e /location command 2017-07-10 18:20:58 +03:00
alwx 5c15df9b64 /send and /request commands; commands in group chats and fixes for parameter and result boxes 2017-07-10 12:41:30 +03:00
Roman Volosovskyi a2b2851061 upgrade clojurescript to 1.9.671 2017-07-05 11:26:07 +03:00
Tienson Qin 4d73c47e62 status hashtags, android: fix #1247
Summary:

(.startsWith "#你好" "#") not works, but both
(.startsWith "#你好" "#你") and (.startsWith "#abc" "#") works.
2017-07-04 17:32:58 +03:00
nulldash 93889722fe Update Bahasa Malaysia translation
Translated some more, corrected some misspelling and improved some phrase structure.
2017-07-01 20:15:06 +03:00
Mike Jackson 561e0fe77a data-store: update command_parameter schema and create new migration to fix missing placeholders 2017-06-30 19:17:05 +03:00
Matthieu Béteille 8a3b7372ab chat: emoji replace 2017-06-30 17:22:56 +03:00
Roman Volosovskyi 173d4afbf3 letsubs macro (#1392)
* letsubs macro
2017-06-30 16:49:28 +03:00
Roman Volosovskyi 9665ea466d review comments 2017-06-28 17:57:30 +03:00
Roman Volosovskyi 4f6ebb53d3 text-message in command handler
to and from props in context in suggestions function
ability to send request using text-message property in handler and via status.sendMessage
show request's text if it exists
2017-06-28 17:57:30 +03:00
Andrey Shovkoplyas cc9b0c32c8
added translations from onehourtranslation 2017-06-28 17:41:20 +03:00
Yalu 9bbd96199f noticed some typos after previous pull request was pulled.
Made a semantical correction for "left" which at first was interpreted as having to do with direction, where actually it was about "leaving".

Made a grammatical correction relating to singular plural usage.

Made comment consistent.
2017-06-28 16:32:01 +03:00