Commit Graph

1200 Commits

Author SHA1 Message Date
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
Andrey Shovkoplyas 0b2483bf3b temporary fix for #1369
added new languages, fixed small shortcomings
2017-06-28 13:41:29 +03:00
aissenhub 32359d82b2 Create lv.cljs
Latvia (latvian language)
2017-06-28 12:34:54 +03:00
Cryotech06 310db2b103 Update to FR translation (#1311)
Create fr.cljs
2017-06-28 12:34:54 +03:00
skrinnikov 70d7349fbf bel.cljs 2017-06-28 12:34:54 +03:00
Yooji 52625d8788 Create de.cljs (#1330)
- fixed some typos
- changed some wordings
2017-06-28 12:34:54 +03:00
Kadauserer ac19bb0520 Create de.cljs (#1304)
update de.cljs
2017-06-28 12:34:54 +03:00
JackCandem 1517b02216 "Patch" 1.0
Tried to do it on mobile 2 hours ago and ended up accidentally deleting it...so again:

changed "formal" you to "personal" you as thought it would fit better.
changed several changes, small as well as big ones
will need to play around with the app more to be sure if i interpreted the constellation of some of those translations correctly
2017-06-28 12:34:53 +03:00
Zino Hofmann 655f1e17cc 🇳🇱 Update nl.cljs (#1356)
Update nl.cljs
2017-06-28 12:34:53 +03:00
yāλu dfc3d4939e added Nepali translation (#1346)
added Nepali translation
2017-06-28 12:34:53 +03:00
pedrobraz1990 c6493f6a4a Update pt_br.cljs
Based on whatsapp's words I changed a few translations, also found a couple of typos.
2017-06-28 12:34:53 +03:00
Yooji cc03fdcffa Create de_ch.cljs 2017-06-28 12:34:53 +03:00
Paradontix 2912adf8c9 Create la.cljs
"Hey guys I/we kinda thought whats the best way to advertise your project if not being able to tell that your supporters are actually so dedicated they will even translate your app into a dead language? (I mean there are propably a million better ways...but still) 
WE/I DID IT!
With the best of our/mine school latin and some dictionaries we translated Status into LATIN ! "
2017-06-28 12:34:52 +03:00
Bumsoo Kim de906ba5ef Added missing translation & some improvements 2017-06-28 12:34:52 +03:00
vehbimerakli 6ceab6e158 Create tr.cljs 2017-06-28 12:34:52 +03:00
Wietze Bronkema 2f8cc6b5fe Create fy.cljs (#1314)
Create fy.cljs. Translation of Status for the Frisian language
2017-06-28 12:34:52 +03:00
matte171 01779c8373 Small update 2017-06-28 12:34:52 +03:00
CopyyCatt 052647edac he.cljs (#1296)
Create he.cljs
2017-06-28 12:34:51 +03:00
Foo Pang 4ccc1dcbc4 Update Chinese translations 2017-06-28 12:34:51 +03:00
Guillaume 2c44fe9201 Fix some typos 2017-06-28 12:34:51 +03:00
ayakix 1b286a729c Update ja.cljs 2017-06-28 12:34:50 +03:00
Ante Sarkkinen a061bc5590 Create fi.cljs
Need to check the translations in the app later on.
2017-06-28 12:34:50 +03:00
nulldash 53f4f9a08a Create ms.cljs
Translation for Bahasa Malaysia
2017-06-28 12:34:50 +03:00
alwx 1596b61b46 More UI components accessible from API, ability to generate QR codes, small cleanup 2017-06-28 10:38:23 +03:00
Jan Herich fa8fe11bd7 chat: fix broken chat delete logic (#1343)
* chat: fix broken chat delete logic

Previously, persisting the chat delete functionality was working
only for group chats, where the `debug?` flag decided if delete was
a real "hard" delete (deleting data from the realm database) or just
marking with the `inactive` flag.

However non-group chats were not deleted at all, which I believe is a
bug fixed by this commit.

* chat: fix broken chat delete logic

Fix the branching logic with `if` instead of `when`
2017-06-26 20:41:58 +03:00
Julien Eluard fc7cc1d795 Clear :last-message when clearing chat history. Fixes #212 2017-06-26 18:43:08 +03:00
Julien Eluard 90d8b5c23c Fixes #1212 (#1249)
* Make sure suggestions properly popsup when command starts with space

* Added basic tests for splt-command-args

* Properly handle white spaces

* Added tests for commands with whitespaces
2017-06-26 13:45:49 +03:00
Julien Eluard 5e5b4fa2cf Tap on return permits sign-in. Fixes #1285 2017-06-26 13:18:05 +03:00
Andrey Shovkoplyas 63bf882e65 fixes https://github.com/status-im/status-react/issues/1217 2017-06-26 13:14:45 +03:00
Julien Eluard 7da40ce7fa Do not prevent input if first character is invalid 2017-06-26 10:50:19 +03:00
Julien Eluard 2ab9e4e85e Clear Seq arguments before navigating back to chat. Fixes #1355 2017-06-26 10:49:29 +03:00
Andrey Shovkoplyas 6d3edd7920 fixes https://github.com/status-im/status-react/issues/1325 2017-06-26 10:46:11 +03:00