Commit Graph

322 Commits

Author SHA1 Message Date
Andrey Shovkoplyas 883b702fcb Introduced new hierarchy ,refactored core 2017-08-14 13:42:20 +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
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
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
Julien Eluard 614a2d89cb Added basic exception handler. 2017-07-26 21:40:38 +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
Julien Eluard cdbabca9fe Multiple hit on save should not create multiple groups 2017-07-25 10:24:02 +03:00
Roman Volosovskyi be463e0947 messaging test 2017-07-18 08:41:03 +03:00
Roman Volosovskyi 23399c63e1 extract React Native dependencies 2017-07-17 11:38:48 +03:00
Roman Volosovskyi 29ccf9546f remove :chat-properties sub 2017-07-13 16:13:08 +03:00
Roman Volosovskyi 06bff32f79 fix handlers-> macro 2017-07-11 20:16:02 +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 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
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
Roman Volosovskyi 173d4afbf3 letsubs macro (#1392)
* letsubs macro
2017-06-30 16:49:28 +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
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 c56fa0c688 localStorage in jail 2017-06-05 16:53:20 +03:00
Julien Eluard 034ff3e413 Fixes #1220 Do not let catch escape 2017-05-26 17:34:37 +03:00
Julien Eluard 48709aced3 Fixes #919 Confirmation dialog for the delete actions 2017-05-22 17:10:31 +03:00
Roman Volosovskyi e16b93fbd0 logging to Instabug 2017-05-19 23:35:17 +03:00
Roman Volosovskyi 0deca1f874 upgrade instabug 2017-05-18 16:12:40 +03:00
Roman Volosovskyi 88cee34997 disable Instabug for development env 2017-05-18 11:30:17 +03:00
alwx f165492b33 Devtools 3.0 support 2017-05-17 13:00:45 +03:00
alwx 145e3ba1d4 Invalid phone number error is shown for valid phone number (#1087) 2017-05-03 16:46:07 +03:00
Roman Volosovskyi a62d19c7bb :update-suggestions after command'sloading 2017-04-28 15:08:53 +03:00
Roman Volosovskyi 19d65a4d46 fix #987 2017-04-28 15:08:53 +03:00
Roman Volosovskyi 03cab7ace2 interactive suggestions 2017-04-28 15:08:53 +03:00
Roman Volosovskyi 1fbb447761 use global @browse command for opening dapps (#847) 2017-04-28 15:08:53 +03:00
Roman Volosovskyi 239a0cbfe6 split console bot into separate files
bots dir
slurp-bot macro
split commands.js into browse, mailman and wallet
bot-url & loading of default bots
command schema
command-parameter schema
global-command in default_commands
@browse command in all chats
load global command from jail
optimize applications startup

 Conflicts:
	bots/wallet/translations.js
	resources/console.js
	resources/dapp.js
	resources/default_contacts.json
	resources/status.js
	resources/wallet.js
	src/status_im/accounts/screen.cljs
	src/status_im/chat/constants.cljs
	src/status_im/chat/handlers.cljs
	src/status_im/chat/handlers/commands.cljs
	src/status_im/chat/handlers/send_message.cljs
	src/status_im/chat/subs.cljs
	src/status_im/chat/suggestions.cljs
	src/status_im/chat/views/command.cljs
	src/status_im/chat/views/suggestions.cljs
	src/status_im/commands/handlers/jail.cljs
	src/status_im/commands/handlers/loading.cljs
	src/status_im/contacts/handlers.cljs
	src/status_im/data_store/realm/schemas/account/core.cljs
	src/status_im/data_store/realm/schemas/account/v5/core.cljs
	src/status_im/models/commands.cljs
	src/status_im/utils/js_resources.cljs
2017-04-28 15:08:53 +03:00
Roman Volosovskyi a9d1426426 sendWeb3Request method in StatusModule 2017-04-25 11:00:58 +03:00
alwx a15fb7e2a8 New chat input & suggestions area; new handlers to work with the improved logic (#880) 2017-04-13 18:17:56 +03:00
Andrey Shovkoplyas ae632b6acc rebase 2017-04-13 18:15:40 +03:00
Andrey Shovkoplyas 1b6112a9bd first iteration, implemented profile screens and my profile screen
android styles, moved styles to platform files

implemented edit profile, refactored components

refactored common components, moved platform specific

styles small fix

fixes for code review

use defstyle macro
2017-04-13 18:15:40 +03:00
Gustavo Nunes 990f9fcbf5 tabs bar UI refresh 2017-04-13 18:15:40 +03:00
Roman Volosovskyi 07f1877c63 defstyle and defnstyle macro 2017-04-13 18:15:40 +03:00
Gustavo Nunes 9f2af87393 chats list UI refresh 2017-04-13 18:15:40 +03:00
Eugene Hardbread d0eaa55d9d added a datetime-ago-format in translations to support different sentense order 2017-03-28 18:00:20 +03:00
alwx 947dcfba37 Checking transaction recepient validity (#780) 2017-03-10 17:25:48 +02:00
Roman Volosovskyi bc9ec05de3 fix #866 2017-03-08 15:53:26 +02:00
Alexander Pantyuhov 874bf16f97 Switching networks (#845) (#852)
* Switching networks (#845)

* pass RPC host to webview bridge
2017-03-08 13:45:02 +02:00
Roman Volosovskyi 9e509d2f9a fix http-fetch: handle error status code 2017-03-07 17:52:48 +02:00
Roman Volosovskyi 99931c24b9 upgrade react-native-webview-bridge (fix preloading of js on the first page, Android)
ensure that preloaded js in webview is executed only once
2017-02-22 17:54:14 +02:00
Roman Volosovskyi 99147706b3 move data-source to status-im.utils.listview ns (fixes externs generatoin) 2017-02-21 14:08:46 +02:00
Roman Volosovskyi 0548ca6f98 add jquery support in WebView 2017-02-20 14:28:40 +02:00
Roman Volosovskyi 289a43ace8 fix reloading of the whole project on change in code 2017-02-10 18:35:34 +02:00
Yehonathan Sharvit 37e871b117 fix kibit suggestions 2017-02-06 10:12:05 +02:00
Roman Volosovskyi b2e4801251 Add Instabug logging for status-go signals
Upgrade status-go to 1.1.0-25-gaeda17d
2017-01-19 17:34:53 +02:00
alwx d08ca05d33 Add to Contacts tab does not appear (#636) 2017-01-18 09:40:48 +02:00
alwx d260117c85 Phone fixes (#539, #566, #634) 2017-01-17 17:43:27 +02:00
alwx 9462088de8 Update public/private keys for discoveries (#557) 2017-01-16 11:42:12 +02:00
Roman Volosovskyi 9f4fd79586 kibit suggestion (in progress) 2017-01-16 08:25:45 +02:00
Roman Volosovskyi 0c69a27d95 unused aliases 2017-01-16 08:23:02 +02:00
alwx 5a872c8ca5 Translations for DApps (#334) 2016-12-30 20:45:14 +03:00
alwx 0e190c624b Default contacts (#580) 2016-12-27 13:18:22 +03:00
Roman Volosovskyi 9745d0bda8 prevent extra loading of Web3 2016-12-20 16:33:56 +02:00
Roman Volosovskyi fc39346bc2 inject web3 before page loading in webview (works only on android) 2016-12-19 14:40:16 +02:00
Roman Volosovskyi cc687986cc extended defview macro 2016-12-08 15:24:58 +02:00
alwx 3122cb7ac3 Blue hashtags & new line fix (#491) 2016-12-02 14:40:21 +03:00
Roman Volosovskyi eaf5ad650a Merge pull request #480 from status-im/bug/#435
Blue hashtags (#435)
2016-11-23 12:32:03 +02:00
Alexander Pantyukhov deaafded22 Blue hashtags (#435), other small status-related fixes 2016-11-23 12:18:28 +03:00
Roman Volosovskyi 0ce43593aa closes #446 2016-11-21 18:02:24 +02:00
Roman Volosovskyi 80be20666b send command styling 2016-11-18 17:13:38 +02:00
Roman Volosovskyi 459ce93220 fix #450; fix #451 2016-11-12 11:25:48 +02:00
Roman Volosovskyi 3e588ea74c reloadable js resources for jail
Former-commit-id: 958d900af7
2016-11-03 12:00:04 +02:00
Roman Volosovskyi 2190fa3be4 fixes #399
Former-commit-id: 50c877eee8
2016-11-02 13:29:43 +02:00
Roman Volosovskyi b9d29b7fd8 fix bugs related to release build for android devices
Former-commit-id: 53e7ca91d9
2016-10-26 15:16:27 +03:00
Roman Volosovskyi 8439407520 show connectivity issues & retry sending of phone/confirmation code to server if application is offline
Former-commit-id: 2580b0a9d9
2016-10-23 12:49:36 +03:00
Roman Volosovskyi 956da9b82e rework !send command
Former-commit-id: 608243bd3d
2016-10-18 15:40:57 +03:00
Roman Volosovskyi d40125cd79 Merge pull request #347 from status-im/feature/command-name-validation-#235
Command name validation (#235)

Former-commit-id: d188b59803
2016-10-17 18:21:34 +03:00
Roman Volosovskyi ca914f207f validate command's name (#235)
Former-commit-id: ac199ba2fa
2016-10-17 18:20:29 +03:00
Adrian Tiberius b369e632a0 fixes #298 #303 profile screen
Former-commit-id: 3ea4cff4b9
2016-10-14 15:07:08 +03:00
Roman Volosovskyi 90ace73995 Console chat: password request (fixes #286)
Former-commit-id: 9624bd6d0f
2016-10-07 15:31:12 +03:00
Alexander Pantyuhov 6ea18cd8a3 date indicators in chat (fixes #282)
Former-commit-id: dcd711f5c2
2016-10-05 16:52:59 +03:00
Roman Volosovskyi 150b84fe8f Merge pull request #270 from status-im/bug/group-leaving-bugs
Group chat: stop watching of group's topic & handle new participant

Former-commit-id: caad695d90
2016-09-29 09:29:23 +03:00
Roman Volosovskyi 3e95b85408 Group chat: stop watching of group's topic & handle new participant (fixes #265 #263)
Former-commit-id: 828010849b
2016-09-29 09:28:41 +03:00
Alexander Pantyuhov 6af3a67e9b extended phone number validation (#259)
Former-commit-id: 55849ce68e
2016-09-28 17:10:48 +03:00
alwxndr 7279f2bc19 fixes to make registration work on iOS (#232), other iOS fixes
Former-commit-id: cdebb4c312
2016-09-22 13:55:28 +03:00
Roman Volosovskyi 816281bf7f Cleanup after protocol's refactoring
Former-commit-id: b6977dc0b7
2016-09-18 09:29:35 +03:00
Roman Volosovskyi 3a6f4008f2 protocol rework
Former-commit-id: 27ab637e94
2016-09-16 19:27:58 +03:00
alwxndr a4a05439aa replacing the need in passing platform-specific with status-im.utils.platform (#227)
Former-commit-id: b67417f268
2016-09-15 17:11:59 +03:00
alwxndr 91fdff9429 improved messages delivery (#191)
Former-commit-id: fb06c9161a
2016-08-29 12:51:54 +03:00
Roman Volosovskyi 5940af50ad send-transaction in commands.js
Former-commit-id: 871f803651
2016-08-19 11:52:44 +03:00
alwxndr a598200ace discovery rework
Former-commit-id: 92073f3d67
2016-08-18 19:16:07 +03:00
alwxndr 1b480a1a58 * new my-profile screen
* ability to edit profile data
* ability to update status (we save it internally for now)
* ability to change profile picture (from camera or gallery)
* enhanced way of storing profile-related data in realm and internal state db


Former-commit-id: 91d8ecc4bd
2016-08-06 11:58:04 +03:00
Roman Volosovskyi 6b0d236c42 browser
Former-commit-id: 20ff7b23a5
2016-07-20 17:03:46 +03:00
Adrian Tiberius 68b6be2f31 fix account database separation
Former-commit-id: fac008b087
2016-07-18 19:29:51 +03:00
Roman Volosovskyi 7e13ef0210 comment debug
Former-commit-id: c97fdbe8c5
2016-06-30 17:24:07 +03:00
Roman Volosovskyi 989309aa8c command suggestions design
Former-commit-id: a1556ee335
2016-06-29 16:30:59 +03:00
Roman Volosovskyi bebe03fca9 fix duplication a bit
Former-commit-id: 103b6ba0eb
2016-06-27 14:58:37 +03:00
Roman Volosovskyi f382e543c4 cleanup debug & simplify messages-offset
Former-commit-id: de5eb9bee0
2016-06-27 14:35:33 +03:00
Roman Volosovskyi eedd1c1186 custom register-handler & response icon animation
Former-commit-id: e7b328aa27
2016-06-27 12:07:14 +03:00
Roman Volosovskyi 771f046e96 handle responses from jail
Former-commit-id: 7632de08cf
2016-06-25 16:28:45 +03:00
Roman Volosovskyi e84af2595f (slurp "status.js")
Former-commit-id: 82c6688648
2016-06-24 15:38:51 +03:00
Roman Volosovskyi 9357849916 Merge branch 'develop' into feature/#123
Former-commit-id: bd3eea73fd
2016-06-22 10:53:27 +03:00
Adrian Tiberius 0f0cd22cb2 cleanup
Former-commit-id: 5a409ed6bf
2016-06-21 16:05:46 +03:00
Adrian Tiberius 9ecad449fe added identicons for default profile pictures
Former-commit-id: eab8dd5ca2
2016-06-21 15:23:19 +03:00
virvar c2f81f99c0 Uncomment randomBytes
Former-commit-id: 9d0cd3359c
2016-06-17 10:03:14 +03:00
Roman Volosovskyi f1005daeed Merge branch 'develop' into feature/#123
First attempt.
 Conflicts:
	.re-natal
	android/app/build.gradle
	android/settings.gradle
	src/status_im/chat/handlers.cljs
	src/status_im/chat/views/command.cljs
	src/status_im/chat/views/content_suggestions.cljs
	src/status_im/chat/views/message.cljs
	src/status_im/chat/views/plain_input.cljs


Former-commit-id: 474729f230
2016-06-15 10:47:38 +03:00
virvar 478976f01d Merge remote-tracking branch 'origin/develop' into message-animation
# Conflicts:
#	src/status_im/components/styles.cljs


Former-commit-id: bf4f8521ec
2016-06-13 20:04:39 +03:00
Adrian Tiberius 23a17b2632 merged develop
Former-commit-id: 7f207a3760
2016-06-10 03:21:48 +03:00
Roman Volosovskyi 34f1e2fa17 fetch commands.js init
Former-commit-id: 0f4581476d
2016-06-08 15:14:35 +03:00
virvar f57711aec1 Message appear animation
Former-commit-id: 446e6ade50
2016-06-08 14:39:37 +03:00
Roman Volosovskyi 13d689bb4a println
Former-commit-id: 72b9afce99
2016-06-02 17:40:58 +03:00
Roman Volosovskyi 1d3a91c0ee updated qr flow
Former-commit-id: db46a3a3cb
2016-06-02 17:39:26 +03:00
Roman Volosovskyi 04760cc549 Merge branch 'develop' into appium-setup
Conflicts:
	src/status_im/i18n.cljs


Former-commit-id: bf6d4ef256
2016-06-01 19:11:51 +03:00
Roman Volosovskyi 7fbbf8b4aa remove println
Former-commit-id: 2bfd90cec4
2016-06-01 14:09:43 +03:00
Adrian Tiberius 4870fef74b fix qr code decoding and remove extra data
Former-commit-id: 755e9bf2b3
2016-06-01 14:01:58 +03:00
Adrian Tiberius d094cd286c implemented #119 and #120
Former-commit-id: c81276e3b7
2016-06-01 11:41:50 +03:00
Roman Volosovskyi 3ea8b2cb82 first unit test
Former-commit-id: 1766b1af12
2016-05-30 08:58:38 +03:00
Roman Volosovskyi 17c1c76003 clean js/window first attempt
Former-commit-id: 7694ad9e87
2016-05-30 08:58:38 +03:00
virvar 49a9ae3ba1 Merge remote-tracking branch 'origin/develop' into real-data. Fix contacts synchronization.
# Conflicts:
#	.re-natal
#	android/app/build.gradle
#	android/app/src/main/java/com/statusim/MainActivity.java
#	android/settings.gradle
#	src/status_im/chat/handlers.cljs
#	src/status_im/chat/screen.cljs
#	src/status_im/chats_list/views/chat_list_item.cljs
#	src/status_im/db.cljs
#	src/status_im/group_settings/screen.cljs


Former-commit-id: dcc607022f
2016-05-24 11:08:54 +03:00
Roman Volosovskyi 7d2371afec Merge branch 'develop' into group-chat
Conflicts:
	src/status_im/android/core.cljs
	src/status_im/chat/handlers.cljs
	src/status_im/group_settings/handlers.cljs
	src/status_im/group_settings/screen.cljs
	src/status_im/group_settings/styles/chat_name_edit.cljs
	src/status_im/group_settings/subs.cljs
	src/status_im/group_settings/views/chat_name_edit.cljs
	src/status_im/handlers.cljs
	src/status_im/navigation.cljs
	src/status_im/participants/views/contact.cljs
	src/status_im/participants/views/create.cljs
	src/status_im/participants/views/remove.cljs
	src/syng_im/subs.cljs


Former-commit-id: 277905124d
2016-05-21 16:07:37 +03:00
virvar 585baa9d71 Truncate chat name
Former-commit-id: c3496957ff
2016-05-20 16:36:00 +03:00
virvar 844ff739af Merge 'develop' into 'real-data'
Former-commit-id: ff5898b0a1
2016-05-20 14:20:48 +03:00
Jarrad b5763bb8ad syng to status
Former-commit-id: 6a5250247c
2016-05-19 18:31:56 +02:00