3479 Commits

Author SHA1 Message Date
Sale Djenic
45d93649b6 refactor(chat-section): new chat/community model applied on the qml side
Changes done on the backend side related to the new chat/channel/categories model
are applied here. Necessary changes done on the `statusq` may be seen in PR-486.

Parts of the code which are not refactored yet are commented out.

Displayed chats/categories/channels since now are using refactored backend.
2022-02-01 11:37:15 +01:00
Alexandra Betouni
c4bb7c7cf2 fix(contacts) fixed bug in add contacts function 2022-02-01 11:36:59 +01:00
Khushboo Mehta
7643c6228c fix(@desktop/profile): Application nav bar settings button is incorrect
Updated the settings icon in the config file.

fixes #4172
2022-02-01 11:36:59 +01:00
Sale Djenic
f44926b7aa refactor(app-search): You used in case a message in the search result was sent by logged in user 2022-02-01 11:36:59 +01:00
Sale Djenic
64c0148bbf refactor(general): new convenient methods added to chat and contact services
- `getOneToOneChatNameAndImage` method added to the chat service, we should
use where ever in the app we need to display one to one chat image and name
- `getContactNameAndImage` method added to the contacts service, we should use
when we want to display pretty contact name and correct image/identicon depends
what user set
2022-02-01 11:36:59 +01:00
Sale Djenic
4c42809a68 refactor(general): modules' structure aligned
There were a lot of modules with an empty concept which are useless that way,
doesn't do the purpose. Also some modules were not informing parent module about
their states even order of operation within module itself was missed. Now we have
all those things aligned and this commit should stop propagating such concepts
caused by copying a module.
2022-02-01 11:36:59 +01:00
Jonathan Rainville
22595f5032 refactor(chat): move stickers to the new architecture
Fixes #4060
2022-02-01 11:36:59 +01:00
Jonathan Rainville
3f12796b45 Revert "refactor(chat): move stickers to the new architecture"
This reverts commit 47aa079e0df7d6effe686fb038c630194a56f356.
2022-02-01 11:36:59 +01:00
Jonathan Rainville
15378c4e4e Revert "refactor(general): modules' structure aligned"
This reverts commit 6154a89cf6bf9f539204ad987decc1c372a95769.
2022-02-01 11:36:59 +01:00
Sale Djenic
10268ec3c4 refactor(general): modules' structure aligned
There were a lot of modules with an empty concept which are useless that way,
doesn't do the purpose. Also some modules were not informing parent module about
their states even order of operation within module itself was missed. Now we have
all those things aligned and this commit should stop propagating such concepts
caused by copying a module.
2022-02-01 11:36:56 +01:00
Jonathan Rainville
792397987c refactor(chat): move stickers to the new architecture
Fixes #4060
2022-02-01 11:36:44 +01:00
Khushboo Mehta
63b6b01b68 fix(@desktop/profile): Users profile image/identicon not shown in application navbar
fixes #4170
2022-02-01 11:36:44 +01:00
Sale Djenic
0a8a5c4795 refactor(node-configuration-service): node configuration added added as a new service 2022-02-01 11:36:43 +01:00
Sale Djenic
bf651c093e refactor(fleet-configuration): fleet configuration added to StatusFoundation 2022-02-01 11:36:40 +01:00
Sale Djenic
7a9784b854 refactor(settings-service): settings improved
Since we had 2 services dealing with the same `status-go` settings, this
commit merges them into a single one. Also we have new public methods
exposed what minimizes a possibility for error since a key for each setting
is kept in the service.
2022-02-01 11:36:23 +01:00
Sale Djenic
7c36e98cf3 chore(general): necessary changes applied after rebasing 2022-02-01 11:35:51 +01:00
Sale Djenic
caf7fd2072 refactor(contacts-service): general improvement
- Signal's arguments updated
- Sent payload optimized
- Local nickname added to profile section contacts model
- Rest updated accordingly to above changes
2022-02-01 11:35:37 +01:00
Khushboo Mehta
1e30872a96 fix(@desktop/profile): Confirmation of contact added not shown on Add Contact Modal
fixes #4072
2022-02-01 11:35:24 +01:00
Jonathan Rainville
eee096dda7 chore: remove old contacts code 2022-02-01 11:35:24 +01:00
Jonathan Rainville
e8eefd8f87 refactor: move all old usages of contacts to the new code 2022-02-01 11:35:24 +01:00
Jonathan Rainville
cb7865bd9e refactor: move contact requests to new architecture
Fixes #4061

Most of the contact request code was already moved, but it wasn't hooked to the QML yet and also there were missing events and some code to improve.
2022-02-01 11:35:24 +01:00
Sale Djenic
80b94d6519 refactor(general): nim_status_client.nim file cleaned
Parts which are not refactored yet are moved to `AppController` and
marked there (a comment is added for a sake of clarification) that those
parts will be removed once we complete refactor phase.
2022-02-01 11:35:20 +01:00
Sale Djenic
1ccc98af98 refactor(general): old AppService is renamed to StatusFoundation
`AppService` is renamed to `StatusFoundation` cause it doesn't contain
any more anything related to services. And it is moved to other location
`/src/app/core`. It contains a foundation for the app.

This part will rarely change
2022-02-01 11:35:07 +01:00
Sale Djenic
e72b2d1007 refactor(general): managing signals from status-go added
Signals which were part of the `status-lib` are now part of the desktop app.
New class `SignalsManager` is introduced which is a main point for receiving
signals from `status-go`.
2022-02-01 11:34:42 +01:00
Sale Djenic
4b882be8bd refactor(osnotification): os notification service updated
- os notification doesn't belong to core features so it's moved from there
- os notification service updated and read to be used as other service
- leftovers moved from `status-lib` that's its version is updated
- using os notification service is commented out in the old code
2022-02-01 11:34:38 +01:00
Sale Djenic
a99422a00a refactor(general): core things moved to core section of the app 2022-02-01 11:34:23 +01:00
Sale Djenic
786c0b4041 refactor(general): global things moved to global section of the app 2022-02-01 11:34:00 +01:00
Sale Djenic
5c0bb9b0b9 refactor(wallet2): the old way of fetching crypto services asynchronous is removed 2022-02-01 11:34:00 +01:00
Sale Djenic
141b664a0c refactor(wallet2): async job for fetching crypto services moved to buy/sell controller
Async task for fetching crypto services is temporary moved because of other
changes we need to apply during the refactor phase. It will be moved to
appropriate service at the end.
2022-02-01 11:34:00 +01:00
Sale Djenic
dafb457a49 refactor(chat-communities): items and model for users list added 2022-02-01 11:34:00 +01:00
Sale Djenic
0def67e783 refactor(contacts-service): added local name for a contact
Within this commit local name for a contact is added to `ContactsDto` which will
be used across the app.
- backend part for changing contact's username is added
- new signal under `SIGNAL_CONTACT_UPDATED` is introduced for the contacts service
- `saveContact` method of the contacts service updated so it saves contact
for a real now
- in order to be consistent across the app `userNameOrAlias` method is updated
so it includes locally set username for a contact
2022-02-01 11:33:56 +01:00
Sale Djenic
97fa526c5e refactor(messages-service): methods for mark all and mark certain messages as read added 2022-02-01 11:33:38 +01:00
Sale Djenic
5b58bbcc7a refactor(app-search): warnings "use {.base.} for base methods" are fixed 2022-02-01 11:33:38 +01:00
Sale Djenic
c6820c9369 refactor(app-search): unused app search related code removed 2022-02-01 11:33:38 +01:00
Sale Djenic
ff7aa01f90 refactor(app-search): app search chats/users names and images updated, search condition improved 2022-02-01 11:33:38 +01:00
Sale Djenic
ab38614b08 refactor(contact-service): ContactsDto is object type instead ref object 2022-02-01 11:33:38 +01:00
Sale Djenic
3f50ab26b8 refactor(general): qml cleaning
- Selecting `currentIndex` based on the children placed in the `StackLayout`
component with id `appView` is sorted out since we were referring to the wrong
indexes there in case of walletv2, node and community sections.
- Places which call `Utils.getAppSectionIndex` are updated since we don't have
that method any more.
- Some parts which are not refactored yet are commented.
2022-02-01 11:33:06 +01:00
Sale Djenic
4b6469c373 refactor(chat-communities): position field and isCommunity added to the chat section module
Position field added to a model/submodle of the chat section module.
`isCommunity` method is exposed to qml from the view of the section module.
2022-02-01 11:32:46 +01:00
Sale Djenic
ed09f82305 refactor(app-search): app search moved to a new component on the qml side 2022-02-01 11:32:46 +01:00
Sale Djenic
9e60b4ecfe refactor(chat-communities): chat naming follows alias/ens naming 2022-02-01 11:32:46 +01:00
Sale Djenic
813f6d0062 refactor(chat-communities): hidden chats of Profile chat type are excluded from the model 2022-02-01 11:32:46 +01:00
Sale Djenic
d67278b23e refactor(app-search): app search module added 2022-02-01 11:32:42 +01:00
Sale Djenic
9045b0bbc4 refactor(general): chat section modules notified about the section change 2022-02-01 11:32:32 +01:00
Sale Djenic
fd3303a4e8 refactor(@desktop/chat-communities): pinned messages added
Option to pin/unpin message added on the backend side.
Pinned model added to the chat content module.
Message service updated accordingly.
2022-02-01 11:32:32 +01:00
Sale Djenic
9777191501 refactor(@desktop/chat-communities): messages added
Messages model added, not completely done.
Also convenient methods for add/remove reactions are added.
2022-02-01 11:32:32 +01:00
Sale Djenic
12f9282a59 refactor(@desktop/general): added modules InputArea, Messages, Users
Each `ChatSection` module contains as many `ChatContent` submodules as many chats
the section contains (a chat maybe either from the Chat section or Community section or
from the category of the Community section).

`ChatContent` consists of 3 submodules `InputArea`, `Messages`, `Users`, so far.
2022-02-01 11:32:32 +01:00
Sale Djenic
0fa88be513 refactor(@desktop/general): qml ChatLayout component added for the Chat section and for each community 2022-02-01 11:32:32 +01:00
Sale Djenic
eca74532ac refactor(@desktop/chat-communities): asynchronous fetching messages 2022-02-01 11:32:32 +01:00
Sale Djenic
d8dea2dc58 refactor(@desktop/chat-communities): initial model for the chat/community sections
Model used for list of chats in case of Chat section and used for
channels/categories/category channels is initially added. With an option for
setting active chat/channel/category (which are an Item type) and setting active
channel within a category (which is a SubItem type).
2022-02-01 11:32:31 +01:00
Sale Djenic
b15c348931 refactor(@desktop/general): notifications set for certain app sections 2022-02-01 11:32:31 +01:00