Commit Graph

1649 Commits

Author SHA1 Message Date
Eric Dvorsak d999927352 Refactoring guidelines draft 2017-08-09 14:23:41 +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
Eric Dvorsak 9e73097446 Remove externs and add them to gitignore
lein generate-externs need externs directory to be present

Create an externs directory with a gitignore file that only allows itself to
be commited

We are using simple optimizations for prod builds so this file is not used.

We have much more useful output with :simple optimizations if an error
happens, not just something like a.b.adsfas is undefined.

The difference in size between advanced and simple optimizations is only
about 300KB, and the RN packager also makes some magic with js after cljs
compiler anyway.
2017-08-07 16:43:37 +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
Julien Eluard 6b0f09faf8 Added alert when exception are thrown Java side.
Report max memory available on current platform
2017-08-07 10:21:09 +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
Herich 7a3e9a1f96 fix #1467 console: confirmation code preview 2017-07-29 13:41:26 +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
Herich d90dab8711 fix #1501 wallet: display right fee amount 2017-07-27 13:59:48 +03:00
Roman Volosovskyi f185fa4190 add package-lock.json file 2017-07-27 11:16:16 +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
jaimeagudo be503447ee Add comment to guide Android newbies builds, fix README typos 2017-07-26 15:54:02 +03:00
Herich f5b0c0c368 chat, data, utils: add implementation of simple preview caching 2017-07-26 15:00:14 +03:00
Herich 59edcb37ef wallet: always displays fee with fixed precision 2017-07-26 14:51:33 +03:00
Julien Eluard 98b58c9036 Removed useless natal-shell dependency 2017-07-26 08:37:59 +03:00
Roman Volosovskyi 0a76262953 fix ArgumentError - invalid byte sequence in US-ASCII at pod install 2017-07-26 08:34:03 +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
Oskar Thorén 263c05ffec console: fix bad suggestion (#1207) 2017-07-21 12:51:06 +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 670f873d2e testfairy integration on iOS, update testfairy key for Android version 2017-07-17 14:27:22 +03:00
Roman Volosovskyi 23399c63e1 extract React Native dependencies 2017-07-17 11:38:48 +03:00
Julien Eluard bd80c814c9 Upgraded figwheel/cljsbuild. 2017-07-17 08:49:36 +03:00
alwx 6669f79c44 Comments for input model; redundant functions has been removed; refactoring 2017-07-17 08:05:41 +03:00
Jan Herich 2adc02849f console: add preview for phone command (#1451) 2017-07-15 19:41:54 +02: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