Commit Graph

1292 Commits

Author SHA1 Message Date
Alexandra Betouni 0eb40287fa refactor: removed dynamic scoping from shared module
Properties and functions moved to Global:
- toastMessage
- openProfilePopup()
- getProfileImage()
- popupOpened

Closes #4248
2022-02-01 11:46:39 +01:00
Jonathan Rainville 710236f51a refactor(chat): refactor send messages to work 2022-02-01 11:46:36 +01:00
Sale Djenic 807039ad61 refactor(@desktop/chat-community): `ChatContextMenuView` component updated
- admin flag exposed to qml for chat/channel
- `CreateChannelPopup` updated
- `createPopup` function added to the `Global` singleton
- `PinnedMessagesPopup` component moved to `AppMain` and shared
among components beneath
2022-02-01 11:46:24 +01:00
Sale Djenic 179b0f5a36 refactor(@desktop/chat-messages): add/remove reactions 2022-02-01 11:46:11 +01:00
Jonathan Rainville b2546fa709 refactor(ProfilePopup): hook ProfilePopup to backend properties 2022-02-01 11:45:50 +01:00
Sale Djenic df5a5a627d refactor(@desktop/chat-messages): pin/unpin messages and pinned messages list updated 2022-02-01 11:45:50 +01:00
Sale Djenic b6b6d6b6c7 refactor(@desktop/chat-messages): `MessageContextMenuView` component updated 2022-02-01 11:45:50 +01:00
Jonathan Rainville 42504ad4eb fix(chat): fix contact banner showing wrongly 2022-02-01 11:45:50 +01:00
Sale Djenic 6e1438d241 refactor(@desktop/general): `globalUtils` instance added (changed old `utilsModel`) 2022-02-01 11:44:56 +01:00
Jonathan Rainville 0388688e9e refactor(community): add join community functionnality 2022-02-01 11:44:38 +01:00
Jonathan Rainville 129266497d refactor(communities): add communities module to show comm list 2022-02-01 11:43:40 +01:00
Jonathan Rainville 45fddc55ba refactor(act-center): refactor activity center to the new arch 2022-02-01 11:42:55 +01:00
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 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
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
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
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
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 792397987c refactor(chat): move stickers to the new architecture
Fixes #4060
2022-02-01 11:36:44 +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 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 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 d67278b23e refactor(app-search): app search module added 2022-02-01 11:32:42 +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 6e3b065d34 refactor(@desktop/general): app sections handled within main module 2022-02-01 11:32:28 +01:00
Sale Djenic 9e567b8fdc refactor(@desktop/general): qml updated according to the new `userProfile` instance 2022-02-01 11:27:25 +01:00
Richard Ramos d713c6fe9f fix: display loading indicator depending on mailserver request status 2022-01-25 13:59:41 -04:00
B.Melnik 8d27d784c1 feat(ProfilePopup): Add avatar change fucntionality
Closes: #3734
2022-01-25 10:25:03 +03:00
Noelia Santos b5f4e3783c feat(Chat/BlockedContacts) Add a Blocked bar for blocked user profile
Use new UI StatusBanner with Danger variant.
Modify StatusQ external to new master commit.
2022-01-17 12:37:48 +01:00
Noelia 6d2d36650c fix(@desktop/chat): Group members list must show only 5
Enable ListView clip and modified ColumnLayout heigh to bound its painting to the needed content.
Adjust ListView spacing to allow the visualization of 5 members.

Closes #4386
2022-01-14 20:16:33 +01:00
Pascal Precht 18518607c7 fix: fix access to root store property for user online status
There seems to have been a confusion in how the store is named.
2021-12-15 11:01:29 +01:00
Pascal Precht b92ac455c9 fix: ensure last active community is reset when leaving community
There's a bug where the last active community will be set in local settings
and not removed when a user leaves a community.

This causes the app to start on an invalid screen/state as it still tries to
render the community view for a community that the user has just left.

This commit ensure we're resetting the last active community in the local settings
when a users leaves the community.

Fixes: #4094
2021-12-07 09:55:16 +01:00
Richard Ramos cae7184d3f fix: RPC method invocation as soon as Import Community popup was opened 2021-12-06 13:18:08 -05:00
Alexandra Betouni 5e88a9a91b refactor(desktop): Removed all timeline related code
Removed all timeline associated code from base_bc.
This feature is deprecated and shall be removed

Closes #4064
2021-12-03 19:55:45 +02:00
Anthony Laibe 0b1538c805 fix(@desktop/communities): Close popup when edit is successful
fixes #4126

When saving the communities all the popup are closed
2021-12-03 09:36:23 +01:00
Pascal Precht 868c675f6e refactor(@desktop/chat): use StatusQ components for chat user list
This replaces the self-built components for the user list with StatusQ's
list item component and also addresses some of the quirks that existed in the UI
related to that original component.

The user list is now responsive and properly aligned.

**This depends on StatusQ v0.18.0**
2021-12-02 11:27:43 +01:00
Alexandra Betouni b4b28d2f98 feat(desktop/contacts) Improvements in contacts
Contacts updates currently in base_bc

Closes #4100
2021-12-01 20:51:06 +02:00
Khushboo Mehta 0fbdbdbd15 fix(@desktop/Chat): Group chat popup member list doesn't have proper visuals
fixes #4176
2021-12-01 16:11:34 +01:00
Jonathan Rainville 33c3f2278b fix(notifs): fix linux notifications not appearing 2021-12-01 09:34:46 -05:00
Sale Djenic 484748314f fix(general): online/offline selector updated
Fixes: #4049
2021-11-24 13:15:15 +01:00
Alexandra Betouni c0450f0580 refactoring (desktop/chat) Message component
Moved Message component & dependencies  to shared
for usage import shared.views.chat 1.0 and accordingly
import shared.controls/panels.chat 1.0

Closes #3927
2021-11-24 13:15:15 +01:00
Sale Djenic cc5ccbc951 refactor(@desktop/general): qml updated according to the new `userProfile` instance 2021-11-24 13:15:15 +01:00
Richard Ramos a9a5469f72 fix
- missing account color and balance
- revoking permission on account change
- UI errors on message signing modal
2021-11-19 10:19:11 -04:00
Richard Ramos c06c9dbc6d fix: missing expired/timeout attributes in Resend button 2021-11-19 09:37:59 -04:00
Pascal Precht 23b72a9e8d feat(ActivityCenter): allow users to mark notifications as unread
As raised in #3665, users aren't able to mark activity center notifications as unread.
The APIs for that didn't exist yet so they have been added in:

- status-go (https://github.com/status-im/status-go/pull/2383)
- status-lib (https://github.com/status-im/status-lib/pull/53)

respectively.

Closes #3665
2021-11-18 11:04:49 +01:00
B.Melnik defefa1bfe fix: Fix missing setup url for new opeed tab
Closes: #4107
2021-11-17 15:40:50 +01:00
Richard Ramos 44e91df428 feat: add toggle for switching status-go DEBUG log level 2021-11-16 09:42:28 -04:00
Pascal Precht ecbdc6fda0 fix(TransferOwnershipPopup): ensure community key is exported properly
There was a bug in our store where an API wouldn't return a value.
This commit fixes this and also replaces the legacy `Input` component
with StatusInput

Fixes: #4082
2021-11-15 12:32:56 +01:00
Khushboo Mehta 26b577824a fix(@desktop/communities): Fix for can't import community
fixes #4073
2021-11-10 14:37:27 -05:00
Khushboo Mehta edb103ee01 fix(@desktop/chat): Modal on the Pinned Messages Popup isnt seen
fixes #4002
2021-11-10 13:39:59 -05:00
Jonathan Rainville 499d99a185 fix(settings): fix whitelist setting that starts null 2021-11-05 15:38:36 -04:00
Alexandra Betouni 36f1ea8832 fix: make user profile images work again 2021-11-05 15:00:50 -04:00
Alexandra Betouni 1e8f51fff6 refactor(desktop/chat) fixed sticker disappears when replying
Closes #4023
2021-11-05 14:49:14 -04:00
Jonathan Rainville 894e57fbdb fix: context menu losing data and group info being empty sometimes 2021-11-05 14:42:44 -04:00
Alexandra Betouni de867f9218 fix(desktop/chat) image was not displayed in message
Closes #3976
2021-11-05 11:55:58 -04:00
Jonathan Rainville ffac03aa26 fix: fix undefined error while deleting community channel 2021-11-05 11:02:45 -04:00
B.Melnik a4ea767ab6 fix(GroupInfoPopup): check if channel exists
This happens because sometimes channel property in GroupInfoPopup is null.
This commit avoid crashes.

Closes: #3993
2021-11-05 11:02:45 -04:00
Jonathan Rainville 816f737d55 fix: fix edit community channel missing store
Fixes #4000
2021-11-05 11:02:45 -04:00
Jonathan Rainville a5954d3bf3 fix: fix community edit, popup opens and banners
Fixes #3960
2021-11-05 11:02:45 -04:00
Khushboo Mehta b7bc528552 fix(@desktop/communities): Can't copy to clipboard the link to community
Also fixed some minor bugs in the community popups.

fixes #3959
2021-11-05 11:02:45 -04:00
Pascal Precht fdc8fea88e fix(ChooseBrowserPopup): ensure popup is always centered
Fixes #3979
2021-11-05 11:02:45 -04:00
Pascal Precht b6d41b67d8 fix(@desktop/appearance): ensure placeholder message doesn't render context menu
Fixes #3983
2021-11-05 11:02:45 -04:00
Alexandra Betouni aa5d6e0ce3 Fix setting user as offline doesn’t show user offline in the client 2021-11-05 11:02:45 -04:00
Pascal Precht 2536610938 fix(GroupInfoPopup): properly update groupchat popup title when name was changed 2021-11-05 11:02:45 -04:00
Sale Djenic cdecd82e3f rebase issue fixed 2021-11-05 11:02:45 -04:00
Sale Djenic 05cf431339 fixed issues after rebase 2021-11-05 11:02:45 -04:00
Jonathan Rainville 1d0b20b156 refactor: refactor contacts sub-section to the new architecture 2021-11-05 11:02:45 -04:00
Sale Djenic 3f6bb66536 refactor(@desktop/general): `globalSettings` moved to Nim 2021-11-05 11:02:45 -04:00
Sale Djenic f0b2ed6cca refactor(@desktop/general): `appSettings` moved to Nim 2021-11-05 11:02:45 -04:00
Sale Djenic 4f3ca4eb78 login process refactored 2021-11-05 11:02:45 -04:00
Sale Djenic 9f4eeffdea A base structure for new architecture added
Initial structure for MainModule containing ChatSectionModule and
CommunitySectionModule is added, as well as initial structure for
StartupModule containing OnboardingModule and LoginModule.

Order of execution is updated and adapted to the current app state.
Main module gets loaded once a user is successfully logged in.
2021-11-05 11:02:45 -04:00
Alexandra Betouni 426c116bac refactor(desktop) Made shared a QML module
Use it as import shared 1.0, import shared.controls 1.0
etc instead of import "../../../shared"

Closes #3934
2021-10-27 18:05:45 -04:00
Pascal Precht ac365ce139 fix(GroupChatPopup): supply popup with missing store 2021-10-27 11:50:35 -04:00
Pascal Precht 5fd317a6e1 fix(GroupChatPopup): fix ui elements
This corrects the call to action button in the modal footer
as well as the "no friends" rectangle, which was wrongly rendered.
2021-10-27 11:50:26 -04:00
Pascal Precht 8617c70742 refactor: remove AccountSelector and replace with StatusAccountSelector 2021-10-27 11:48:43 -04:00
Pascal Precht 72b46c3b94 refactor: remove/replace StatusContextMenuButton with StatusQ components 2021-10-27 09:52:40 -04:00
Alexandra Betouni 056f84c301 refactor(desktop/chat) Cleaning up popups 2021-10-26 16:22:49 -04:00
Alexandra Betouni 23811dc7e4 refactor(desktop/chat) Cleaning up views 2021-10-26 16:20:31 -04:00
Alexandra Betouni 22429689e3 refactor(desktop/chat) Cleaning up panels 2021-10-26 16:16:37 -04:00
Khushboo Mehta be7a56cc27 refactor: replace all the StatusImageIdenticon with StatusQ's StatusSmartIdenticon
closes  #3848
2021-10-26 19:23:33 +02:00
Khushboo Mehta 7114240e72 refactor: Replace and remove StatusRoundButton under ui/shared/status
closes #3898
2021-10-26 18:58:16 +02:00
Pascal Precht 2db77fa31c refactor: replace StatusIcon and StatusLoadingIndicator with StatusQ components 2021-10-26 10:47:47 -04:00
Pascal Precht cbbbedcc79 cleanup: remove legacy `StatusCheckbox` 2021-10-26 10:47:16 -04:00
Pascal Precht f3f5826c51 refactor(ui/shared): replace legacy StatusButton with StatusQ button 2021-10-26 16:07:56 +02:00
Khushboo Mehta 173943f1be refactor: replace StatusIdenticon with StatusSmartIdenticon
closes #3882
2021-10-26 09:30:18 -04:00
Khushboo Mehta ef4934cee4 refactor: Replace usage of StatusRadioButton under ui/shared to its corresponding StatusQ component
closes #3897
2021-10-26 14:37:15 +02:00
Pascal Precht 7037df9da0 fix(ChatContextMenu): ensure popup types exist
Fixes #3906
2021-10-26 14:35:38 +02:00