Commit Graph

676 Commits

Author SHA1 Message Date
Pascal Precht 9e69e24379 ui: introduce identicons in channel/contacts list 2020-05-27 15:02:49 -04:00
Iuri Matias 12bbea8d77 re-add sendMessage method 2020-05-26 18:15:15 -04:00
Iuri Matias dda6b3c76d add support to leave a chat
add support to leave a chat

add support to leave a chat

fix

add leave chat methods to model
2020-05-26 18:06:48 -04:00
Iuri Matias f4439fcb6f default views for when there is no chat opened + chat links
default views for when there is no chat opened + chat links

add channel component

update other layouts

fix problem with alias

add test channels

fix merge conflict
2020-05-26 17:07:24 -04:00
Jonathan Rainville 1ef8db3c44 feat: hook top bar to channel name and colors 2020-05-26 15:11:48 -04:00
Jonathan Rainville b8431c776d fix: fix addFilter to not have topic for now 2020-05-25 18:28:29 -04:00
Jonathan Rainville 594b3974c9 move addPeer to the setupAccount function 2020-05-25 18:28:29 -04:00
Jonathan Rainville f7d99c4bb4 feat: get last 20 messages of a channel when joining the chat 2020-05-25 18:28:29 -04:00
Richard Ramos 20766d2dae Add whisper.added.filter signal handler 2020-05-25 15:54:01 -04:00
emizzle e5bed448ed fix: remove `onSignal` not overridden warnings
Uninherited `ProfileController` and `OnboardingController` from `SignalSubscriber` as they were not listening for signals from the node.

Added an `onSignal` dummy method in `WalletController` to make the compiler happy. The main app is assuming this is a `SignalSubscriber` but it is unclear if it being used (maybe it's a WIP).
2020-05-25 11:41:43 -04:00
emizzle e1d1880aca fix: change onboarding account to whisper key
Previously, the displayed key for generated accounts was displaying the public key of the account, and not the whisper account. This has been fixed.

Futher work has gone in to strongly-typing a lot of the responses from status-go and removed a lot of the manual string parsing.

Simplified types and type-conversions by using the `nim-serialization` library.
2020-05-25 11:31:18 -04:00
Iuri Matias c3ddec43fa remove file accidentaly added by mistake 2020-05-25 10:56:54 -04:00
Pascal Precht 729fa1f31c cleanup: remove unused imports in modules 2020-05-25 09:56:29 -04:00
Iuri Matias 0d7cb1b401 add contact list 2020-05-25 09:50:35 -04:00
Iuri Matias e6199fede6 Add node model; simplify more; simplify callRPC
Add node model; simplify more; simplify callRPC

refactor wallet to use asset model

move some of wallet logic away from the controller

move ChatMessage to model

move chatItem model

organize models folder

simplify chat message and chat item

rename messageList to message_list

simply addresses in the controller

rename mailservers list

refactor how profile is set

refactor/simplify profile view

refactor/simplify adding mailservers

rename wallet view

simplify wallet assets

rename nodeView to view

extract channel list view

extract channel list view

refactor channel list / chats view

move signals out of app folder

simplify callRPC

add raw rpc method and make node section use it

add node model

move accounts model inside onboard controller (for now)

make events usage consistent among models and controllers; separate model events from app events
2020-05-25 09:44:33 -04:00
Iuri Matias 6e14749904 simplify controllers and views, make everything more consistent
simplify controllers and views, make everything more consistent

refactor wallet to use asset model

move some of wallet logic away from the controller

move ChatMessage to model

move chatItem model

organize models folder

simplify chat message and chat item

rename messageList to message_list

simply addresses in the controller

rename mailservers list

refactor how profile is set

refactor/simplify profile view

refactor/simplify adding mailservers

rename wallet view

simplify wallet assets

rename nodeView to view

extract channel list view

extract channel list view

refactor channel list / chats view

move signals out of app folder

address code reviews
2020-05-25 09:22:11 -04:00
Richard Ramos e6a1e5a8bb Error message when onSignal is not implemented 2020-05-22 19:18:05 -04:00
Richard Ramos 2eee8c7a2d feat: show last message and unread message count 2020-05-22 19:18:05 -04:00
Iuri Matias ac5c6389d3 revert change to rowCount and Data methods 2020-05-22 19:02:04 -04:00
Iuri Matias 9947bae85a fix issue with rebase 2020-05-22 17:09:40 -04:00
Jonathan Rainville e371d2fe4b chore: fix a couple of warnings 2020-05-22 17:09:40 -04:00
Pascal Precht 10b51956f2 ui: render mailservers list 2020-05-22 16:56:51 -04:00
Iuri Matias 1d371d5054 simplify some objects that don't need qt references 2020-05-22 16:54:42 -04:00
emizzle a1109ca52b feat: Pass login account data in account event
The "accountsReady" event now passes the account information for the account that was logged in, which helps pass the correct account info to Profile and is available for other modules that may need it.

This will become particularly useful once the login functionality is implemented.
2020-05-22 16:11:12 -04:00
Iuri Matias 68b48a7082 move sendMessage to the chats model 2020-05-22 15:55:07 -04:00
Richard Ramos f29191bc59 fix: random crash due to no messages availables in signal 2020-05-22 10:59:46 -04:00
Iuri Matias 6344beee9f remove old file 2020-05-21 19:50:58 -04:00
Pascal Precht 985b5d93d0 fix(ui/wallet): don't require password to be entered as hashed hex 2020-05-21 19:50:58 -04:00
Richard Ramos ec46dd13f1 refactor: join public chats 2020-05-21 19:43:02 -04:00
Richard Ramos 0e2131d499 feat: support multiple channels on the UI 2020-05-21 19:36:36 -04:00
Iuri Matias 50fc70adfb address code review 2020-05-21 19:33:14 -04:00
Iuri Matias c1f6a0d06d address code review 2020-05-21 19:33:14 -04:00
Iuri Matias f59401a80a clean up 2020-05-21 19:33:14 -04:00
Iuri Matias 13bfc56337 cleanup 2020-05-21 19:33:14 -04:00
Iuri Matias 4c9a370fc3 pass generated account to profile 2020-05-21 19:33:14 -04:00
Iuri Matias 656e553a32 cleanup 2020-05-21 19:33:14 -04:00
Iuri Matias 27c1b4b9b0 remove random account from status model 2020-05-21 19:33:14 -04:00
Iuri Matias bab04fac6f refactor account setup 2020-05-21 19:33:14 -04:00
Iuri Matias de5428cc0a simplify method 2020-05-21 19:33:14 -04:00
Iuri Matias e65449b8de refactor/extract getAccountData method 2020-05-21 19:33:14 -04:00
Iuri Matias b50d9f71f3 refactor/extract accountsSettings method 2020-05-21 19:33:14 -04:00
Iuri Matias a69609a254 use default node config 2020-05-21 19:33:14 -04:00
Iuri Matias a5f5f6f016 use constant for default networks 2020-05-21 19:33:14 -04:00
Iuri Matias 61b5d6e311 refactor/extract generateMultiAccounts method 2020-05-21 19:33:14 -04:00
Iuri Matias 6c03369ca2 refactor/extract saveAccountAndLogin method 2020-05-21 19:33:14 -04:00
Iuri Matias f5a1c8a065 cleanup 2020-05-21 19:33:14 -04:00
Iuri Matias 8b5ec19fec remove old test.nim; move relevant methods to accounts 2020-05-21 19:33:14 -04:00
Iuri Matias 8a0a5a2e60 separate model events from app events 2020-05-21 19:33:14 -04:00
Iuri Matias d434af40e1 move generate addresses action to qml state machine enter state event 2020-05-21 19:33:14 -04:00
Iuri Matias 15b32ddd5a remove lib file 2020-05-21 19:33:14 -04:00
Iuri Matias ce236fbc82 cleanup 2020-05-21 19:33:14 -04:00
Iuri Matias ff25fc818a move logic to model 2020-05-21 19:33:14 -04:00
Iuri Matias 81a478d797 remove unsused method 2020-05-21 19:33:14 -04:00
Iuri Matias 7cd9ceac28 refactor: move onboarding logic out of the view 2020-05-21 19:33:14 -04:00
Iuri Matias 6e2f61b08e add todos 2020-05-21 19:33:14 -04:00
Iuri Matias 23f72c77bc move generateRandomAccountAndLogin out of view 2020-05-21 19:33:14 -04:00
Iuri Matias 2cf1541115 move storeAccount logic out of the view 2020-05-21 19:33:14 -04:00
Iuri Matias 033cd3bd06 rename onboarding view; cleanup 2020-05-21 19:33:14 -04:00
Iuri Matias e08c4b75a4 rename onboarding view 2020-05-21 19:33:14 -04:00
Iuri Matias 6ef7c9008e add controller for onboarding 2020-05-21 19:33:14 -04:00
Iuri Matias 40fcc1538a move onboarding to onboarding module 2020-05-21 19:33:14 -04:00
Iuri Matias 48b600f3fd move init node to status_accounts 2020-05-21 19:33:14 -04:00
Iuri Matias 0a2c8bc86c fix rebase conflict 2020-05-21 19:33:14 -04:00
emizzle dafd11fbc0 feat: onboarding generate new account
Generates 5 random accounts with identicons, allows user to enter password, then stores the account and logs in to the statusgo node.

Add EventEmitter that notifies nim_status_client.nim once node has started and is logged in (likely needs some refactoring to include the eventemitter in the base controller class).

Add QML StateMachine for the onboarding view.

Add nimcrytpo, uuids, eventemitter, isaac dependencies via submodules.

Add button to Intro view to randomly gen account.
2020-05-21 19:33:14 -04:00
Richard Ramos ed683fd2f0
fix: support multiple subscribers per signal 2020-05-21 16:13:26 -04:00
Richard Ramos 1a92cda0d9 feat: add nim-chronicles 2020-05-21 15:16:24 -04:00
Iuri Matias 51ced8bc2d display users identicon in the profile instead of an hardcoded one 2020-05-19 22:04:03 -04:00
Iuri Matias 24bb268934 add profile module; display username from one of the accounts instead of hardcoded one 2020-05-19 22:04:03 -04:00
Iuri Matias 5cc31ae28d display identicons; display correct details for the user own messages 2020-05-19 19:40:40 -04:00
Iuri Matias 6a4c50fe9c subscribe node module to notifications 2020-05-19 17:00:29 -04:00
Iuri Matias 755fd6056b move block notification to node management tab 2020-05-19 17:00:29 -04:00
Jonathan Rainville 26d7cacaea feat: add easy to use get function for chat channels 2020-05-19 16:29:39 -04:00
Iuri Matias 8341dd36c0 address code review changes 2020-05-19 15:29:57 -04:00
Iuri Matias cd1e6780be remove unused file 2020-05-19 15:29:57 -04:00
Iuri Matias 175c3a57f4 remove logic message model from view and replace it with view representation 2020-05-19 15:29:57 -04:00
Iuri Matias 1883a4bc1f display users own message 2020-05-19 15:29:57 -04:00
Jonathan Rainville 33011385af feat: enable to send private messages after doing add chat
Fixes #50
2020-05-19 15:16:31 -04:00
Pascal Precht 76a0b55d47 feat(ui/wallet): add basic form to send transaction
Closes #49
2020-05-19 11:48:41 -04:00
Pascal Precht 407577c247 feat(status/wallet): add APIs to retreive accounts 2020-05-19 11:48:41 -04:00
Pascal Precht a09f694d23 feat(core/libstatus): expose status-go `sendTransaction` binding 2020-05-19 11:48:41 -04:00
Richard Ramos 87e31105e3 Code cleanup 2020-05-19 06:30:30 -04:00
Richard Ramos 03f48c5a25 fix: rename files 2020-05-18 16:41:16 -04:00
Richard Ramos a4deb4b7a9 Display chat messages 2020-05-18 16:41:16 -04:00
Richard Ramos df1199060d Apply polymorphism to signals, instead of using json strings 2020-05-18 16:41:16 -04:00
Richard Ramos 110bd25c06 Register signals for chat messages 2020-05-18 16:41:16 -04:00
Zahary Karadjov 390322dc6a Clarify the required use of globals 2020-05-18 16:25:57 -04:00
Richard Ramos 9411aa61e7 feat: display message in wallet 2020-05-18 11:42:50 -04:00
Richard Ramos beb5f1520f feat: signal handling 2020-05-18 11:42:50 -04:00
Richard Ramos a80a6c623b fix: signal handler integration with status-go 2020-05-18 11:42:50 -04:00
Iuri Matias 0b278a9208 move app specific folders into the app folder 2020-05-15 18:43:32 -04:00
Iuri Matias f6528ee476 rename assetsView to walletView 2020-05-15 18:43:32 -04:00
Iuri Matias 5bff1f49a4 rename assetsView to walletView 2020-05-15 18:43:32 -04:00
Iuri Matias bc6d1f1623 move views & logic into their respective folders; add initial tab for node management 2020-05-15 18:43:32 -04:00
Iuri Matias c38d7e2af6 restruicture wallet module 2020-05-15 18:03:55 -04:00
Richard Ramos c1d1b60f46 Adding nimbus-build-system 2020-05-15 17:18:20 -04:00
Jonathan Rainville 491718a0bd feat: add wallet asset icon 2020-05-15 06:46:21 -04:00
Jonathan Rainville a962069b73 feat: hook wallet assets to nim model 2020-05-15 06:46:21 -04:00
Iuri Matias bb1190cbba use status abstraction instead of libstatus directly 2020-05-13 19:22:18 -04:00
Iuri Matias 18db5dc145 add various methods needed for wallet: get price, balance, convert hex wei to eth 2020-05-13 19:22:18 -04:00
Richard Ramos ed0059d48f Adding missing signals 2020-05-13 19:05:59 -04:00
Richard Ramos ba2fc5eb73 Signal management 2020-05-13 19:05:59 -04:00
Iuri Matias 9e24821c33 move chat sending json-rpc into status chat module 2020-05-13 15:21:45 -04:00
Iuri Matias a9e84c685d send message instead of rpc request 2020-05-13 15:21:45 -04:00
Richard Ramos 79638f6214 feat: Join chats on demand 2020-05-13 14:01:12 -04:00
Richard Ramos f16863ab2d reorg status integration 2020-05-13 13:32:52 -04:00
Richard Ramos 0459dd06e5 fix: extract signals to separate file 2020-05-13 13:32:52 -04:00
Iuri Matias abb0c4cee6 attempting to call different proc inside signal handler 2020-05-13 13:32:52 -04:00
emizzle 4769f578a6 feat: Onboarding carousel
Onboarding carousel completed

Redo folder restructuring

NOTES:
1. nim_status_client binary is output to `./bin/nim_status_client`, so you'll need to update your workflow to run this file. README has been updated to reflect this. Also, if you're running VSCode, instructions for code reload were added.
2. All `ui` files now live in `ui/`
3. All lib files (ie `libstatus`) now live in `lib/`
4. Removed the Qt Creater user project file as this is unique to each user
5. Moved the project file to `ui/`, so just open up the `ui` folder in Qt creator and it should locate the project file
6. `-d:release` removed from compilation as it wasn't needed
7. Broke up main.qml in to the main app and onboarding components, however this should be broken down further into more reusable components
8. Click "Get started" to show chat

Format some files using nimpretty
2020-05-12 18:52:51 -04:00
Iuri Matias 01182c8aee move signalcallback to status module 2020-05-11 17:52:06 -04:00
Iuri Matias 87c7abe687 rename applicationLogic to applicationView to better reflect purpose 2020-05-11 14:22:01 -04:00
Iuri Matias b8563b25a3 abstract message sending from the view 2020-05-11 14:01:03 -04:00
Iuri Matias 03b6209f6b move status specific logic of the application view 2020-05-11 13:31:07 -04:00
Iuri Matias 3b9be01cc5 move subscriber logic to level above the view 2020-05-11 07:30:59 -04:00
Iuri Matias 41dd96e9c9 display values from a list, and support changing that list from nim 2020-05-11 07:30:59 -04:00
Iuri Matias a0580893c4 basic application state; basic subscriber and dispatcher 2020-05-11 07:29:48 -04:00
Richard Ramos f5eed607bd some comments 2020-05-10 19:24:06 -04:00
Iuri Matias 8a8e60cd29 display main account 2020-05-08 13:47:34 -04:00
Iuri Matias aba191841b display account 2020-05-08 11:59:49 -04:00
Iuri Matias 5a174f260a add missing flag 2020-05-08 11:44:07 -04:00
Richard Ramos a5d2f25b01
Getting messages from #test 2020-05-08 11:14:34 -04:00
Richard Ramos d5d4c03003
test 2020-05-08 11:14:34 -04:00
Richard Ramos c95e7db187
feat: subscribing to signals 2020-05-08 11:14:06 -04:00
emizzle dc99dfb99d
feat: Connect to peer and call private RPC 2020-05-08 21:07:50 +10:00
Richard Ramos 9a93298508
feat: makefile 2020-05-06 17:26:32 -04:00
Richard Ramos f628630ea5
fix - project name 2020-05-06 13:51:37 -04:00
Richard Ramos 54454ebbc2
Initial commit 2020-05-06 13:40:00 -04:00