Commit Graph

517 Commits

Author SHA1 Message Date
Dmitry Novotochinov 962c49e345
add keycard installation
Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
2018-12-20 15:43:37 +03:00
Anton Danchenko 67a47fac56
workaround on wrong transition to home instead of chat
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-12-19 13:02:02 +02:00
Roman Volosovskyi c440b7a3a7
[slow sign in] Denorlmalize last message
The last messages of the chats are necessary to properly show the chat
list, which is shown right after signing in. Before this commit, the
last message was retrieved as one of 20 last messages fetched for each
chat.

Implementation:
- `:last-message-content` and `:last-message-type` fields were added to
  `chat` entity
- both fields are updated when messages are received/sent
- loading of the last 20 messages for each chat was removed as
  initialization step
2018-12-17 13:29:10 +02:00
Roman Volosovskyi 07e8f6908d
[#6952] Fix odd app behavior after quick logout
This commit changes the way how/when the node is started/stopped:
1. `node` is not started on the app startup
2. When the user presses "Sign in" button the node is started
   with user specific configs (`InstallationID`, custom bootnodes, etc),
   and only after that `Login` call is performed.
3. When the user creates a new account, at first the node is started
   with default params (the same as would be used when user signs into
   the app after account creation whithout changing any setting), then
   `CreateAccount` call happens, then `Login`.
4. When the user restores their account, the flow is the same as `3`
   but with `RecoverAccount` instead of `CreateAccount`
5. When the user logs out the node is stopped. That's it.
2018-12-17 13:27:17 +02:00
Anton Danchenko 88c06c53d4
urllib upgrade
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-12-14 15:50:49 +02:00
Andrea Maria Piana d760f1696c
Add mailservers confirmations & use peer count for online status
We now check that we are only connected to some `peers` instead of using `NetInfo` from `react-native`.

This is because it has been reported to be quite flaky at times, not reporting online status after sleeping, and for privacy concerns (on ios it pings `apple.com`, on desktop `google.com`).

Adds a new banner `Wallet Offline` and change `Connecting to peers` to  `Chat offline`.

A message will be marked as `Sent` only if it made it to the mailserver you are connected to, which will increase the guarantees that we can make about a message (if you see it as sent, it has reached at least a mailserver), this has the consequence that:

- If you are not connected to any mailserver or the mailserver is non responsive/down, and you send a message, it will be marked as `Not sent`, although it might have been actually made it in the network.

Probably this is something that we would like to communicate to the user through UX (i.e. tick if made it to at least a peer, double tick if it made to a mailserver )

Currently I have only enabled this feature in nightlies & devs, I would give it a run and see how we feel about it.
2018-12-12 19:53:01 +01:00
Anton Danchenko f6777edbdc
migration to latest appium version
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-12-12 17:33:00 +02:00
Rob Culliton 88d3e78454
change 9+ to actual count of unread messages
unread-messages-count fn, based off Maciej's comment on #6749

adding test, some difficulty running the test suite locally via clj

actually use the new functionality for displaying on desktop

first pass at updated styling for unread count chat icons

styling pass 2: finer attention to detail for the purple/blue icons

a bit more padding bloat to accomodate for the number 1, which occurs
frequently :)

remove counter from "home" icon on desktop

Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2018-12-12 15:55:13 +02:00
Lukasz Fryc 45aa302637
Add group chats appium tests
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-12-11 12:55:25 +02:00
Igor Mandrigin afc368b1b0
Upgrade status-go to 0.17.6-beta (Constantinople).
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-12-10 12:59:44 +01:00
yevh-berdnyk d299713037
Added new desktop e2e tests
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-12-10 00:54:51 +01:00
Corey 9e75b89d58
Upgrade requests for vuln report 2018-12-05 16:42:08 +02:00
Roman Volosovskyi b6e515618b
[#6956] upgradable `message-id`
Implementation:
1. `transport.utils/message-id` function is called only in three places now
   and accepts `from` and  `raw_payload` as parameters.
   ID is calculated as `sha3(from + raw_payload)`.
2. This means that for wrapped private group chat message
   the raw payload of `GroupMembershipUpdate` is used.
2018-12-05 11:22:43 +02:00
Oleksii Lymarenko e80200f260
tests added: check wallet modal in 1*1/group chats
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-12-04 13:39:02 +02:00
Andrea Maria Piana dfbc27c5d7
Allow admin to leave chat
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-12-04 10:17:50 +01:00
Anton Danchenko 73cbfd4cd9
new separator in public usernames and medium priority for test_user_can_interact_with_public_chat
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-12-03 11:44:32 +01:00
Vitaliy Vlasov dc4841f041
Add react-native-desktop-menu native module
Signed-off-by: Vitaliy Vlasov <siphiuel@gmail.com>
2018-12-01 02:03:06 +02:00
Anton Danchenko c91e51459f
fix pytest internal error if no response from saucelabs
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-11-30 21:37:35 +02:00
Andrea Maria Piana 5795ca8d1a
Enable group chats
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-11-30 11:12:34 +01:00
Julien Eluard e3e75e0498
[Fixes #6874] Added transaction-receipt, schedule and balance events
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-11-29 23:09:45 +01:00
Andrea Maria Piana 08291a8396
Keep username/photo-path synced across devices
We add syncing of account fields in pairing messages (only photo-path &
name for now). Also a sync message is sent each time we send a
contact-update, to keep other devices in sync. The change is compatible
with previous clients as it's just an accretion of transit.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-11-29 11:37:14 +01:00
Oleksii Lymarenko 6cf9e6136b
fix for key dict; skip mark removed
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-29 12:04:30 +02:00
Oleksii Lymarenko 79e542e1d5
new test added: redirect to public chat upon tap on the #tag in message
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-28 16:04:30 +02:00
Lukasz Fryc 5b95872a28
Do not save device stats in InfluxDB if database not provided 2018-11-28 10:57:18 +01:00
Oleksii Lymarenko 602a33fdaa
added tests: not enough eth for gas validation from DApp/wallet/chat
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-28 10:03:33 +02:00
yevh-berdnyk 1d0c00d4bc
Fixed test_user_can_interact_with_public_chat
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-11-26 20:17:06 +01:00
tbenr 2d5c4e3892
fixes #6601
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-11-25 21:02:58 +01:00
Roman Volosovskyi 5d5847e4b9
[slow sign in] Add unviewed messages counter to chat entity.
Before we fetched ALL user-statuses with `status=received` (which means that
a message hasn't been seen), iterated them, grouped by chat and then stored
`message-ids` of these `user-statuses` in chat's `:unviewed-messages` key.

This commit introduces :unviewed-messages-count field in chat entity.
That means that there is no need to iterate `user-statuses` in order to count
a total number of unviewed messages, it is always stored along with chat.
In the rest of it, the difference is only that chat's db record should be
updated each time when unviewed messages are seen.
2018-11-23 17:08:48 +02:00
Andrey Shovkoplyas 5dd345fe49
[#6643] Allow chat command suggestions to select parameter
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-11-22 15:57:39 +01:00
Oleksii Lymarenko f1b457677c
new test added: user can send/read messages in public chat
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-22 15:28:37 +02:00
Oleksii Lymarenko ad922f4c60
new test added: check currency fiat value is correct
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-22 15:26:12 +02:00
Bruce Hauman a5c5e1831f
better protect transaction history polling from errors
Go blocks parse try catch blocks and turn them into event
dispatches. This captures the original intent of the code to catch
errors and terminate the current async worker execution.

Signed-off-by: yenda <eric@status.im>
2018-11-21 17:25:36 +01:00
Julien Eluard ee4cafbbe3
[Fixes #6784] Fixed some ABI codec issues
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
2018-11-21 11:12:19 +01:00
Bruce Hauman d5dde69af9
[#6718] restyle wallet onboarding flow
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-11-20 17:21:26 +01:00
Goran Jovic 72e7ae2fff
feature #6509 - validating token config against their contracts; moved token info from compile time list to app-db; fixed any discrepancies in existing info
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-11-20 17:18:08 +01:00
Oleksii Lymarenko 58dc06267c
fix faq element locator on help view
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-20 17:26:52 +02:00
Anton Danchenko 1e241b5a90
removed sign in after the network switch
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-11-20 14:48:08 +02:00
Oleksii Lymarenko 9b198e4352
new test added: user can see own assets after account recovering
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-20 09:11:47 +02:00
Oleksii Lymarenko bc44df32cb
new test added: check that system replaces capital letters when typing passphrase
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-19 19:02:00 +02:00
Anton Danchenko cf15789e2a
skip tests in order not to false fail in PR
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-11-19 16:45:03 +02:00
yenda 1ba7feb439
[refactor] move contact.subs and utils.contacts to contact.db
functions defined in subs need to be reusable and testable independently
from re-frame framework. they are moved into db namespace for that purpose

Signed-off-by: yenda <eric@status.im>
2018-11-19 14:30:25 +01:00
Lukasz Fryc eed610c46e
Allow to measure battery and network consumption on real device 2018-11-19 14:16:10 +01:00
yenda 77e9aea755
[refactor] move chat.subs fns to chat.db
Signed-off-by: yenda <eric@status.im>
2018-11-19 12:30:58 +01:00
Anton Danchenko 4ad021691f
added runner and testrail report
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-11-16 11:53:40 +02:00
Bruce Hauman 1716643c46
[#5749] transaction history fixes
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
2018-11-16 10:03:54 +01:00
yevh-berdnyk e08b496c38
Fixed transactions history test
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-11-15 18:11:58 +01:00
Anton Danchenko 510961e333
swipe to delete fix
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
2018-11-15 12:22:28 +02:00
Oleksii Lymarenko 89e0ea0bd2
new test added: check fiat value is correct for token transactions
Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
2018-11-14 22:43:50 +02:00
yevh-berdnyk 68d6255d44
Fixed chat element locator
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
2018-11-14 18:17:16 +01:00
Andrea Maria Piana 1104becfba
Enable syncing of contacts & style pairing section
Everytime a contact request is sent/confirmed a sync message is also
sent to other devices so the contact is kept in sync.

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
2018-11-14 13:21:14 +01:00