Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide Create Community button #14545

Merged
merged 2 commits into from Apr 30, 2024

Conversation

jrainville
Copy link
Member

Fixes #14530

(includes a revert of the previous hide that wasn't exactly what we wanted)

community-creation.webm

Known issue: if you disable the setting, the Loader doesn't lose its width. It,s not a huge deal, as it's not a common use case, but if the UI team has an easy fix, might as well.

Global.createCommunityPopupRequested(true /*isDiscordImport*/)
Loader {
Layout.preferredHeight: active ? 38 : 0
active: communitiesStore.createCommunityEnabled || communitiesStore.testEnvironment
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Showing it on testEnvironment: true is important, otherwise a lot of tests would fail.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe write this in the code as comment as well?

@status-im-auto
Copy link
Member

status-im-auto commented Apr 29, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ cc12b63 #1 2024-04-29 18:45:28 ~6 min macos/aarch64 🍎dmg
✔️ cc12b63 #1 2024-04-29 18:46:03 ~7 min tests/nim 📄log
✔️ cc12b63 #1 2024-04-29 18:49:36 ~10 min macos/x86_64 🍎dmg
✔️ cc12b63 #1 2024-04-29 18:50:51 ~11 min tests/ui 📄log
✔️ cc12b63 #1 2024-04-29 18:56:55 ~17 min linux/x86_64 📦tgz
✔️ cc12b63 #1 2024-04-29 19:12:36 ~33 min windows/x86_64 💿exe
✔️ 21be41a #2 2024-04-30 15:33:58 ~4 min macos/aarch64 🍎dmg
✔️ 21be41a #2 2024-04-30 15:35:23 ~6 min tests/nim 📄log
✔️ 21be41a #2 2024-04-30 15:41:34 ~12 min macos/x86_64 🍎dmg
✔️ 21be41a #2 2024-04-30 15:44:30 ~15 min linux/x86_64 📦tgz
✔️ 21be41a #2 2024-04-30 15:45:06 ~15 min tests/ui 📄log
✔️ 21be41a #2 2024-04-30 16:00:51 ~31 min windows/x86_64 💿exe

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good otherwise

Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The e2e failure looks unrelated

Fixes #14530

(includes a revert of the previous hide that wasn't exactly what we wanted)
@jrainville jrainville force-pushed the chore/hide-create-comm-button-for-real branch from cc12b63 to 21be41a Compare April 30, 2024 15:29
@jrainville jrainville changed the title Chore/hide create comm button for real Hide Create Community button Apr 30, 2024
Global.createCommunityPopupRequested(true /*isDiscordImport*/)
Loader {
Layout.preferredHeight: active ? 38 : 0
active: communitiesStore.createCommunityEnabled || communitiesStore.testEnvironment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe write this in the code as comment as well?

objectName: "createCommunityButton"
Layout.preferredHeight: 38
verticalPadding: 0
text: qsTr("Import existing community from Discord")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we maybe the import from discord button commented here? so that it's easier to bring it back later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's actually from the revert. This button doesn't exist on master.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ok. I'd rather leave it in master ,but it's too late 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, this button never existed. In the original commit I did to hide the Create community, I thought we still wanted the Import Community button, but turns out we didn't so I reverted.
You can check the different commits to see

@jrainville jrainville merged commit e463590 into release/2.28.x Apr 30, 2024
7 of 8 checks passed
@jrainville jrainville deleted the chore/hide-create-comm-button-for-real branch April 30, 2024 17:18
@jrainville jrainville linked an issue May 1, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hide Create community and Import Community from Discord buttons
4 participants