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

refactor(communities): allow removing items from import file list #8165

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

0x-r4bbit
Copy link
Member

@0x-r4bbit 0x-r4bbit commented Nov 8, 2022

There was a requested design change where no longer wanted to have checkboxes to decide which files will be included for a discord import, but rather have an "X" button that enables users to remove items.

This commit implements this refactor.

In addition, it ensures that the already loaded discord categories and channels that have been extracted from validation, are kept in sync as well.

Meaning, if a user removes a file from the file list, the corresponding channel will be removed as well.

If there's not channel in a given category, the category will be removed as well.

Closes: #8125
Closes: #8126

@0x-r4bbit
Copy link
Member Author

Screenshot from 2022-11-08 15-14-33

@status-im-auto
Copy link
Member

status-im-auto commented Nov 8, 2022

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 16bb88d #1 2022-11-08 14:17:06 ~5 min linux-cpp 📦pkg
⁉️ 16bb88d #1 2022-11-08 14:17:26 ~5 min imports 📄log
✔️ 16bb88d #1 2022-11-08 14:22:08 ~10 min macos 📦dmg
✔️ 16bb88d #1 2022-11-08 14:24:13 ~12 min linux 📦tgz
✔️ 16bb88d #1 2022-11-08 14:35:03 ~22 min windows 📦exe
⁉️ 16bb88d #1 2022-11-08 14:42:00 ~29 min e2e 📄log
✔️ 6976adc #2 2022-11-09 08:31:52 ~4 min linux-cpp 📦pkg
⁉️ 6976adc #2 2022-11-09 08:32:04 ~4 min imports 📄log
✔️ 6976adc #2 2022-11-09 08:41:13 ~14 min linux 📦tgz
✔️ 6976adc #2 2022-11-09 08:49:34 ~22 min windows 📦exe
⁉️ 6976adc #2 2022-11-09 08:53:27 ~26 min e2e 📄log
✔️ 6976adc #3 2022-11-10 13:17:56 ~8 min linux-cpp 📦pkg
⁉️ 6976adc #3 2022-11-10 13:19:09 ~9 min imports 📄log
✔️ 6976adc #3 2022-11-10 13:27:08 ~17 min macos 📦dmg
⁉️ 6976adc #3 2022-11-10 14:13:57 ~23 min e2e 📄log
✔️ 6976adc #5 2022-11-10 14:22:56 ~10 min linux 📦tgz
✔️ 6976adc #4 2022-11-10 14:53:35 ~16 min windows 📦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.

LGTM modulo a minor QML issue

StatusFlatRoundButton {
id: removeButton
width: 32
height: 32
Copy link
Member

Choose a reason for hiding this comment

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

This explicit width/height is not gonna work inside a RowLayout; need to use Layout.preferredWidth/height

There was a requested design change where no longer wanted to have
checkboxes to decide which files will be included for a discord import,
but rather have an "X" button that enables users to remove items.

This commit implements this refactor.

In addition, it ensures that the already loaded discord categories and
channels that have been extracted from validation, are kept in sync as
well.

Meaning, if a user removes a file from the file list, the corresponding
channel will be removed as well.

If there's not channel in a given category, the category will be removed
as well.

Closes #8125 #8126
@0x-r4bbit 0x-r4bbit force-pushed the fix/import-community-image branch 2 times, most recently from a4bf6f7 to a628e32 Compare November 9, 2022 08:36
Base automatically changed from fix/import-community-image to master November 10, 2022 13:09
@0x-r4bbit 0x-r4bbit merged commit 8d90204 into master Nov 10, 2022
@0x-r4bbit 0x-r4bbit deleted the refactor/import-file-list branch November 10, 2022 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants