-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show activity center notification if user must reveal addressed…
… to join/rejoin the communit
- Loading branch information
Showing
8 changed files
with
127 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
ui/app/mainui/activitycenter/views/ActivityNotificationCommunityShareAddresses.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import QtQuick 2.14 | ||
import QtQuick.Layouts 1.14 | ||
|
||
import StatusQ.Controls 0.1 | ||
import StatusQ.Core 0.1 | ||
import StatusQ.Core.Theme 0.1 | ||
import StatusQ.Components 0.1 | ||
|
||
import shared 1.0 | ||
import shared.panels 1.0 | ||
import utils 1.0 | ||
|
||
import "../panels" | ||
import "../popups" | ||
import "../stores" | ||
|
||
ActivityNotificationBase { | ||
id: root | ||
|
||
required property string communityName | ||
required property string communityColor | ||
required property string communityImage | ||
|
||
signal openCommunityClicked | ||
signal openShareAccountsClicked | ||
|
||
bodyComponent: RowLayout { | ||
spacing: 8 | ||
|
||
StatusSmartIdenticon { | ||
name: root.communityName | ||
Layout.preferredWidth: 40 | ||
Layout.preferredHeight: 40 | ||
Layout.alignment: Qt.AlignTop | ||
Layout.leftMargin: Style.current.padding | ||
Layout.topMargin: 2 | ||
|
||
asset { | ||
width: 24 | ||
height: width | ||
name: root.communityImage | ||
color: root.communityColor | ||
bgWidth: 40 | ||
bgHeight: 40 | ||
} | ||
} | ||
|
||
ColumnLayout { | ||
spacing: 2 | ||
Layout.alignment: Qt.AlignTop | ||
Layout.fillWidth: true | ||
|
||
StatusMessageHeader { | ||
displayNameLabel.text: qsTr("%1 requires you to share your Accounts").arg(root.communityName) | ||
timestamp: root.notification.timestamp | ||
} | ||
|
||
RowLayout { | ||
spacing: Style.current.padding | ||
|
||
StatusBaseText { | ||
Layout.fillWidth: true | ||
text: qsTr("To continue to be a member of %1, you need to share your accounts").arg(root.communityName) | ||
font.italic: true | ||
wrapMode: Text.WordWrap | ||
color: Theme.palette.baseColor1 | ||
} | ||
|
||
StatusFlatButton { | ||
size: StatusBaseButton.Size.Small | ||
text: qsTr("Share") | ||
onClicked: { | ||
root.openShareAccountsClicked() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
ctaComponent: undefined | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
ActivityNotificationCommunityMembershipRequest 1.0 ActivityNotificationCommunityMembershipRequest.qml | ||
ActivityNotificationTransferOwnership 1.0 ActivityNotificationTransferOwnership.qml | ||
ActivityNotificationCommunityShareAddresses 1.0 ActivityNotificationCommunityShareAddresses.qml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule status-go
updated
17 files
+0 −1 | api/defaults.go | |
+25 −1 | appdatabase/migrations/bindata.go | |
+1 −0 | appdatabase/migrations/sql/1700741911_clusterID.up.sql | |
+1 −0 | config/cli/fleet-shards.test.json | |
+7 −1 | mobile/status.go | |
+1 −0 | node/status_node_services.go | |
+11 −1 | nodecfg/node_config.go | |
+3 −0 | params/config.go | |
+1 −0 | protocol/activity_center.go | |
+2 −0 | protocol/communities/errors.go | |
+30 −27 | protocol/communities/manager.go | |
+53 −0 | protocol/communities/persistence_test.go | |
+100 −0 | protocol/communities_messenger_signers_test.go | |
+58 −5 | protocol/messenger_communities.go | |
+24 −24 | static/bindata.go | |
+1 −0 | wakuv2/config.go | |
+1 −0 | wakuv2/waku.go |