544 Commits

Author SHA1 Message Date
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
Andrey Shovkoplyas
883b702fcb Introduced new hierarchy ,refactored core 2017-08-14 13:42:20 +03:00
Andrey Shovkoplyas
a91a945bfa tests for group module 2017-08-10 10:05:29 +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
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
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
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
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
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
adc55d6fb9 Make sure validation-messages are nil when navigating to a chat 2017-07-18 08:49:32 +03:00
Andrey Shovkoplyas
0bf8b711be removed old unused code and resources 2017-07-17 22:48:06 +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
Roman Volosovskyi
8e896fcdfb fix #1432 (related to re-frame migration) 2017-07-12 10:04:20 +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
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
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
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
Andrey Shovkoplyas
63bf882e65 fixes https://github.com/status-im/status-react/issues/1217 2017-06-26 13:14:45 +03:00
Roman Volosovskyi
024cf6d6b8 status.sendMessage in jail
status.showSuggestions in jail
jail: fix localStorage behaviour on setItem with null value and getItem with key without value
2017-06-05 19:09:51 +03:00
Roman Volosovskyi
5b69439d3d allows markup returned from bot's init function to be shown 2017-06-05 08:10:49 +03:00
Roman Volosovskyi
6f6849f635 use status-go's hackaton-alt branch 2017-06-02 17:45:02 +03:00
Roman Volosovskyi
45a08d7643 prevent unecessary :preview calls to jail 2017-06-01 10:55:46 +03:00
alwx
2c90faab86 No more react-native-network-info, updated /debug command response 2017-06-01 10:18:04 +03:00
alwx
1b2f657bfb Support for status-dev-cli 3.2.0 — NDS, responses and 3 more commands 2017-05-24 12:49:17 +03:00
alwx
f165492b33 Devtools 3.0 support 2017-05-17 13:00:45 +03:00
Andrey Shovkoplyas
6433676f51 fixes https://github.com/status-im/status-react/issues/1016 2017-05-11 13:36:59 +03:00