Commit Graph

3450 Commits

Author SHA1 Message Date
Sale Djenic b3f8af8e06 refactor(@desktop/general): qml code referring to the old code base commented out
Qml code referring to the old code base commented out, but not deleted,
due to easier refactoring the rest of the app.
2022-02-01 11:42:42 +01:00
Sale Djenic 43a67472d1 refactor(@desktop/general): old code disconnected
The old code placed in `src/app` is still not deleted, due to easier refactoring
the rest of the app, but non of the part of the app refers to it. Also corresponding
directories are renamed, to spot them easier, and at the end of the refactor we
will just simply delete them in a single commit.

Renamed:
- `src/chat` to `src/REMOVE-chat`
- `src/keycard` to `src/REMOVE-keycard`
- `src/node` to `src/REMOVE-node`
- `src/profile` to `src/REMOVE-profile`
- `src/utilsView` to `src/REMOVE-utilsView`
- `src/wallet` to `src/REMOVE-wallet`
2022-02-01 11:41:59 +01:00
Sale Djenic bfaf1b5250 refactor(@desktop/chat-communities): `ChannelIdentifierView` component updated 2022-02-01 11:41:56 +01:00
Sale Djenic 7f40ae0f57 refactor(@desktop/chat-communities): unused component removed
- `NormalMessageView` component is removed since we work with `CompactMessageView`
and it's the only and default message component in the app.
- `useCompactMode` property removed from local settings since it's not in use as
well and corresponding code is updated accordingly
2022-02-01 11:41:38 +01:00
Sale Djenic 6ae88cf1cc refactor(@desktop/chat-communities): a list of users who reacted with an emoji updated
A list of users who reacted with an emoji now displays names instead of users'
public key
2022-02-01 11:41:26 +01:00
Anthony Laibe 6c76974985 refactor(@chat): clear chat history 2022-02-01 11:41:26 +01:00
Anthony Laibe 8ddda242d8 refactor(@chat): mark messages as read 2022-02-01 11:41:26 +01:00
Sale Djenic e5a414a927 refactor(@desktop/chat-communities): qml part handles messages from refactored backend
- `chatType` added to `Constants` to group chat type related values
- `messageContentType` added to `Constants` to group message content type related
values
- `MessageStore` maintained per message list now
- added new `ChatContentView` component used to display chat/channel content
- components updated to display messages from the new backend
- `StatusChatToolBar` appropriately updated
- mute/unmute feature added to chat/channel list as well as to `StatusChatToolBar`
2022-02-01 11:41:22 +01:00
Sale Djenic bd2efb4a1e refactor(@desktop/chat-communities): backend part for mute/unmute feature added
- `chat service` is not `QtObject` inherited class
- mute/unmute methods added to `chat service`
- `type` added to sub items of model used in `chat section` module
- shared message item and model updated with set of new fields
2022-02-01 11:39:51 +01:00
Khushboo Mehta 83d4aaa0e8 refactor: remove dynamic scoping from browser module
closes #4246
2022-02-01 11:39:45 +01:00
Jonathan Rainville a9c968b984 refactor(chat): refactor 1-1 chat to new architecture
Fixes #4225
2022-02-01 11:39:08 +01:00
Alexandra Betouni f0b39ce4f6 Refactor: Moved openPopup function to Global
The openPopup function was declared in AppMain
and used via dynamic scoping in many places in the
application. Moved function to Global component
and updated all places to call it via Global instead.

Closes #4267
2022-02-01 11:38:46 +01:00
Alexandra Betouni 336f90a60f feat(desktop/wallet) Removed dynamic scoping from wallet
Removed all dynamic scoping parts in wallet section plus

- Renamed Config to Global and added more functions there
- Moved changeAppSectionBySectionType function to Global
  and updated all places where is used to call it from
  Global instead
- Moved openLink function to Global and updated all places
  where is used to call it from Global instead
- Moved errorSound to Global, introduced playErrorSound
  function  and updated all places where is used to call
  this function from Global instead

Closes #4245
2022-02-01 11:38:27 +01:00
Sale Djenic f138fecdd2 refactor(online-users): adding online users for chat/channel 2022-02-01 11:38:07 +01:00
Sale Djenic afe6d34735 refactor: issues after rebase onto `master` fixed 2022-02-01 11:38:04 +01:00
Jonathan Rainville 0d3a8e4d11 refactor(stickers): remove one import from old status-lib code
Only two imports remain. They will be removed once the chat is refactored
2022-02-01 11:37:32 +01:00
Jonathan Rainville d8a90eda6c fix(stickers): fix stickers appearing as loading when on a new account 2022-02-01 11:37:32 +01:00
Jonathan Rainville 05eb8abf04 fix(stickers): fix getting installed and recent stickers 2022-02-01 11:37:32 +01:00
Jonathan Rainville 206e0e5504 refactor(stickers): remove dep on dto in view and use Item instead 2022-02-01 11:37:32 +01:00
Sale Djenic 80fcb95245 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:32 +01:00
Sale Djenic c8b429388f refactor(user-profile): `name`, `icon` and `isIdenticon` properties added to global instance `userProfile`
Apart of all properties we have, now we have 3 new added props which will be used
almost always when we need the following details about logged in user:
- `name` - this will return an ens name in a pretty form or an alias if ens name
was not set (verified). Apart of this there are still `username` and `ensName`
properties for fetching them when it's needed.
- `icon` - this will return a thumbnail image if it's set, otherwise it will
return identicon. Apart of this there are still `identicon` and `thumbnailImage`
properties for fetching them when it's needed.
- `isIdenticon` - this will return `false` if a thumbnail image is set, otherwise
it will return `true`
2022-02-01 11:37:29 +01:00
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 47aa079e0d.
2022-02-01 11:36:59 +01:00
Jonathan Rainville 15378c4e4e Revert "refactor(general): modules' structure aligned"
This reverts commit 6154a89cf6.
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