feat: Update Community Overview header based on the new design
[Design](https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba⎜Desktop?type=design&node-id=31229-627216&mode=design&t=KoQOW7vmoNc7f41m-0) 1. Update header layout and size 2. Add OverviewSettingsPanel in storybook feat: Update Community Overview Header based on the new design Removing squish tests related to the community identicon in the Overview page. The identicon is removed in the new designs
This commit is contained in:
parent
d550b01e65
commit
9629a145da
|
@ -177,6 +177,10 @@ ListModel {
|
||||||
title: "PrivilegedTokenArtworkPanel"
|
title: "PrivilegedTokenArtworkPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
}
|
}
|
||||||
|
ListElement {
|
||||||
|
title: "OverviewSettingsPanel"
|
||||||
|
section: "Panels"
|
||||||
|
}
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "EditSettingsPanel"
|
title: "EditSettingsPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
|
@ -373,10 +377,6 @@ ListModel {
|
||||||
title: "LanguageCurrencySettings"
|
title: "LanguageCurrencySettings"
|
||||||
section: "Settings"
|
section: "Settings"
|
||||||
}
|
}
|
||||||
ListElement {
|
|
||||||
title: "ProfileSocialLinksPanel"
|
|
||||||
section: "Panels"
|
|
||||||
}
|
|
||||||
ListElement {
|
ListElement {
|
||||||
title: "IntroPanel"
|
title: "IntroPanel"
|
||||||
section: "Panels"
|
section: "Panels"
|
||||||
|
|
|
@ -230,5 +230,8 @@
|
||||||
],
|
],
|
||||||
"OverviewSettingsFooter": [
|
"OverviewSettingsFooter": [
|
||||||
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba⎜Desktop?type=design&node-id=31171-629792&mode=design&t=IAlt2Frp5gx0yPAn-0"
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba⎜Desktop?type=design&node-id=31171-629792&mode=design&t=IAlt2Frp5gx0yPAn-0"
|
||||||
|
],
|
||||||
|
"OverviewSettingsPanel": [
|
||||||
|
"https://www.figma.com/file/17fc13UBFvInrLgNUKJJg5/Kuba⎜Desktop?type=design&node-id=31229-627216&mode=design&t=KoQOW7vmoNc7f41m-0"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
import QtQuick 2.14
|
||||||
|
import QtQuick.Controls 2.15
|
||||||
|
import QtQuick.Layouts 1.15
|
||||||
|
|
||||||
|
import AppLayouts.Communities.panels 1.0
|
||||||
|
|
||||||
|
SplitView {
|
||||||
|
id: root
|
||||||
|
SplitView.fillWidth: true
|
||||||
|
|
||||||
|
OverviewSettingsPanel {
|
||||||
|
SplitView.fillWidth: true
|
||||||
|
SplitView.fillHeight: true
|
||||||
|
|
||||||
|
name: communityEditor.name
|
||||||
|
description: communityEditor.description
|
||||||
|
logoImageData: communityEditor.image
|
||||||
|
color: communityEditor.color
|
||||||
|
|
||||||
|
editable: communityEditor.isCommunityEditable
|
||||||
|
owned: communityEditor.amISectionAdmin
|
||||||
|
}
|
||||||
|
|
||||||
|
Pane {
|
||||||
|
SplitView.minimumWidth: 300
|
||||||
|
SplitView.preferredWidth: 300
|
||||||
|
|
||||||
|
CommunityInfoEditor{
|
||||||
|
id: communityEditor
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -67,7 +67,6 @@ class CommunitySettingsComponents(Enum):
|
||||||
BACK_TO_COMMUNITY_BUTTON = "communitySettings_BackToCommunity_Button"
|
BACK_TO_COMMUNITY_BUTTON = "communitySettings_BackToCommunity_Button"
|
||||||
COMMUNITY_NAME_TEXT = "communitySettings_CommunityName_Text"
|
COMMUNITY_NAME_TEXT = "communitySettings_CommunityName_Text"
|
||||||
COMMUNITY_DESCRIPTION_TEXT = "communitySettings_CommunityDescription_Text"
|
COMMUNITY_DESCRIPTION_TEXT = "communitySettings_CommunityDescription_Text"
|
||||||
COMMUNITY_LETTER_IDENTICON = "communitySettings_Community_LetterIdenticon"
|
|
||||||
OVERVIEW_BUTTON = "communitySettingsView_NavigationListItem_Overview"
|
OVERVIEW_BUTTON = "communitySettingsView_NavigationListItem_Overview"
|
||||||
MEMBERS_BUTTON = "communitySettings_Members_NavigationListItem"
|
MEMBERS_BUTTON = "communitySettings_Members_NavigationListItem"
|
||||||
PERMISSIONS_BUTTON = "communitySettings_Permissions_NavigationListItem"
|
PERMISSIONS_BUTTON = "communitySettings_Permissions_NavigationListItem"
|
||||||
|
@ -189,11 +188,7 @@ class StatusCommunityScreen:
|
||||||
verify_text_matching(CommunitySettingsComponents.COMMUNITY_NAME_TEXT.value, communityName)
|
verify_text_matching(CommunitySettingsComponents.COMMUNITY_NAME_TEXT.value, communityName)
|
||||||
|
|
||||||
def verify_community_overview_description(self, communityDescription: str):
|
def verify_community_overview_description(self, communityDescription: str):
|
||||||
verify_text_matching(CommunitySettingsComponents.COMMUNITY_DESCRIPTION_TEXT.value, communityDescription)
|
verify_text_matching(CommunitySettingsComponents.COMMUNITY_DESCRIPTION_TEXT.value, communityDescription)
|
||||||
|
|
||||||
def verify_community_overview_color(self, communityColor: str):
|
|
||||||
obj = get_obj(CommunitySettingsComponents.COMMUNITY_LETTER_IDENTICON.value)
|
|
||||||
expect_true(obj.color.name == communityColor, "Community color was not changed correctly")
|
|
||||||
|
|
||||||
def create_community_channel(self, communityChannelName: str, communityChannelDescription: str, method: str):
|
def create_community_channel(self, communityChannelName: str, communityChannelDescription: str, method: str):
|
||||||
if (method == CommunityCreateMethods.BOTTOM_MENU.value):
|
if (method == CommunityCreateMethods.BOTTOM_MENU.value):
|
||||||
|
@ -289,6 +284,7 @@ class StatusCommunityScreen:
|
||||||
|
|
||||||
def open_edit_community_by_community_header(self):
|
def open_edit_community_by_community_header(self):
|
||||||
click_obj_by_name(CommunityScreenComponents.COMMUNITY_HEADER_BUTTON.value)
|
click_obj_by_name(CommunityScreenComponents.COMMUNITY_HEADER_BUTTON.value)
|
||||||
|
verify(is_loaded_visible_and_enabled(CommunitySettingsComponents.EDIT_COMMUNITY_BUTTON.value), "Edit community button is visible and enabled")
|
||||||
click_obj_by_name(CommunitySettingsComponents.EDIT_COMMUNITY_BUTTON.value)
|
click_obj_by_name(CommunitySettingsComponents.EDIT_COMMUNITY_BUTTON.value)
|
||||||
|
|
||||||
def change_community_name(self, new_community_name: str):
|
def change_community_name(self, new_community_name: str):
|
||||||
|
|
|
@ -73,7 +73,6 @@ communitySettings_BackToCommunity_Button = {"container": statusDesktop_mainWindo
|
||||||
communitySettings_CommunityName_Text = {"container": statusDesktop_mainWindow, "objectName": "communityOverviewSettingsCommunityName", "type": "StatusBaseText", "visible": True}
|
communitySettings_CommunityName_Text = {"container": statusDesktop_mainWindow, "objectName": "communityOverviewSettingsCommunityName", "type": "StatusBaseText", "visible": True}
|
||||||
communitySettings_CommunityDescription_Text = {"container": statusDesktop_mainWindow, "objectName": "communityOverviewSettingsCommunityDescription", "type": "StatusBaseText", "visible": True}
|
communitySettings_CommunityDescription_Text = {"container": statusDesktop_mainWindow, "objectName": "communityOverviewSettingsCommunityDescription", "type": "StatusBaseText", "visible": True}
|
||||||
communitySettings_Community_Identicon = {"container": statusDesktop_mainWindow, "objectName": "communityOverviewSettingsPanelIdenticon", "type": "StatusSmartIdenticon", "visible": True}
|
communitySettings_Community_Identicon = {"container": statusDesktop_mainWindow, "objectName": "communityOverviewSettingsPanelIdenticon", "type": "StatusSmartIdenticon", "visible": True}
|
||||||
communitySettings_Community_LetterIdenticon = {"container": communitySettings_Community_Identicon, "objectName": "statusSmartIdenticonLetter", "type": "StatusLetterIdenticon", "visible": True}
|
|
||||||
|
|
||||||
# Community Edit:
|
# Community Edit:
|
||||||
communitySettings_EditCommunity_ScrollView = {"container": statusDesktop_mainWindow, "objectName": "communityEditPanelScrollView", "type": "StatusScrollView", "visible": True}
|
communitySettings_EditCommunity_ScrollView = {"container": statusDesktop_mainWindow, "objectName": "communityEditPanelScrollView", "type": "StatusScrollView", "visible": True}
|
||||||
|
|
|
@ -82,8 +82,6 @@ Feature: Status Desktop community
|
||||||
And the admin changes the community description to "<new_community_description>"
|
And the admin changes the community description to "<new_community_description>"
|
||||||
Then the community overview description is "<new_community_description>"
|
Then the community overview description is "<new_community_description>"
|
||||||
When the admin goes back to the community
|
When the admin goes back to the community
|
||||||
And the admin changes the community color to "<new_community_color>"
|
|
||||||
Then the community overview color is "<new_community_color>"
|
|
||||||
Examples:
|
Examples:
|
||||||
| new_community_name | new_community_description | new_community_color |
|
| new_community_name | new_community_description | new_community_color |
|
||||||
| myCommunityNamedChanged | Cool new description 123 | #ff0000 |
|
| myCommunityNamedChanged | Cool new description 123 | #ff0000 |
|
||||||
|
|
|
@ -17,7 +17,6 @@ Feature: Community -> Manage Community -> Overview page
|
||||||
When the admin renames the community to "<new_community_name>" and description to "<new_community_description>" and color to "<new_community_color>"
|
When the admin renames the community to "<new_community_name>" and description to "<new_community_description>" and color to "<new_community_color>"
|
||||||
Then the community overview name is "<new_community_name>"
|
Then the community overview name is "<new_community_name>"
|
||||||
And the community overview description is "<new_community_description>"
|
And the community overview description is "<new_community_description>"
|
||||||
And the community overview color is "<new_community_color>"
|
|
||||||
When the admin goes back to the community
|
When the admin goes back to the community
|
||||||
Then the user lands on the community named "<new_community_name>"
|
Then the user lands on the community named "<new_community_name>"
|
||||||
Examples:
|
Examples:
|
||||||
|
|
|
@ -53,38 +53,29 @@ StackLayout {
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
SettingsPage {
|
SettingsPage {
|
||||||
title: qsTr("Overview")
|
|
||||||
|
|
||||||
rightPadding: 64
|
rightPadding: 64
|
||||||
bottomPadding: 64
|
bottomPadding: 64
|
||||||
|
topPadding: 0
|
||||||
|
header: null
|
||||||
contentItem: ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
spacing: 16
|
spacing: 16
|
||||||
|
|
||||||
StatusSmartIdenticon {
|
|
||||||
objectName: "communityOverviewSettingsPanelIdenticon"
|
|
||||||
name: root.name
|
|
||||||
asset.width: 80
|
|
||||||
asset.height: 80
|
|
||||||
asset.color: root.color
|
|
||||||
asset.letterSize: width / 2.4
|
|
||||||
asset.name: root.logoImageData
|
|
||||||
asset.isImage: true
|
|
||||||
}
|
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: 747
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
id: nameText
|
id: nameText
|
||||||
objectName: "communityOverviewSettingsCommunityName"
|
objectName: "communityOverviewSettingsCommunityName"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
font.pixelSize: 24
|
font.pixelSize: 28
|
||||||
|
font.bold: true
|
||||||
|
font.letterSpacing: -0.4
|
||||||
color: Theme.palette.directColor1
|
color: Theme.palette.directColor1
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
text: root.name
|
text: root.name
|
||||||
|
@ -101,11 +92,16 @@ StackLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Item { Layout.fillWidth: true }
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
|
Layout.preferredHeight: 38
|
||||||
|
Layout.alignment: Qt.AlignTop
|
||||||
objectName: "communityOverviewSettingsEditCommunityButton"
|
objectName: "communityOverviewSettingsEditCommunityButton"
|
||||||
visible: root.editable
|
visible: root.editable
|
||||||
text: qsTr("Edit Community")
|
text: qsTr("Edit Community")
|
||||||
onClicked: root.currentIndex = 1
|
onClicked: root.currentIndex = 1
|
||||||
|
size: StatusBaseButton.Size.Small
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue