Skip to content

Comments

New collection filters#5389

Merged
poulch merged 16 commits intomainfrom
BCK-1441-filters-collection-list
Feb 12, 2025
Merged

New collection filters#5389
poulch merged 16 commits intomainfrom
BCK-1441-filters-collection-list

Conversation

@Cloud11PL
Copy link
Contributor

@Cloud11PL Cloud11PL commented Feb 4, 2025

Scope of the change

image

@changeset-bot
Copy link

changeset-bot bot commented Feb 4, 2025

🦋 Changeset detected

Latest commit: a2cbf3e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot temporarily deployed to pr-5389 February 4, 2025 11:38 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5389 February 4, 2025 15:44 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5389 February 6, 2025 10:09 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5389 February 6, 2025 12:18 Destroyed
@Cloud11PL Cloud11PL added the run pw-e2e Run e2e (basic suite from PR automation) label Feb 6, 2025
@github-actions github-actions bot temporarily deployed to pr-5389 February 6, 2025 12:40 Destroyed
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2025

merge-reports: Run #4360

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
235 235 0 0 0 0 0 4m44s

🎉 All tests passed!

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

@Cloud11PL Cloud11PL marked this pull request as ready for review February 6, 2025 12:52
@Cloud11PL Cloud11PL requested a review from a team February 6, 2025 12:52
@Cloud11PL Cloud11PL changed the title Collection filters New collection filters Feb 6, 2025
@github-actions github-actions bot temporarily deployed to pr-5389 February 6, 2025 12:55 Destroyed
witoszekdev
witoszekdev previously approved these changes Feb 6, 2025
? mapNodeToChoice(availableChannels, channel => channel.slug)
: null;
const selectedChannel = availableChannels.find(channel => channel.slug === params.channel);
// const selectedChannel = availableChannels.find(channel => channel.slug === params.channel);
Copy link
Member

Choose a reason for hiding this comment

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

leftover comment

Suggested change
// const selectedChannel = availableChannels.find(channel => channel.slug === params.channel);

Comment on lines 30 to 32
if (rowType === "ids") {
return new NoopValuesHandler([]);
}
Copy link
Member

Choose a reason for hiding this comment

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

question: Isn't this the same as next condition?

Suggested change
if (rowType === "ids") {
return new NoopValuesHandler([]);
}

@github-actions github-actions bot temporarily deployed to pr-5389 February 6, 2025 18:00 Destroyed
@github-actions github-actions bot temporarily deployed to pr-5389 February 12, 2025 11:41 Destroyed
"string": "General information"
},
"ThUvIL": {
"string": "Hidden"
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: Let's add context for these strings, e.g.:

Suggested change
"string": "Hidden"
"context": "Collection filter condition",
"string": "Hidden"

"string": "No channels selected"
},
"w7tf2z": {
"string": "Published"
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: maybe we should use yes/no label values for this? When you look at the condition as a filter, then it looks incorrect:

CleanShot 2025-02-12 at 16 43 49@2x

Published is Published 😅

Copy link
Member

Choose a reason for hiding this comment

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

or maybe we can change the field name to Visibility, so that it becomes:

Visibility is Published
Visibility is Hidden

@github-actions
Copy link
Contributor

merge-reports: Run #4366

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
235 235 0 0 0 0 0 4m40s

🎉 All tests passed!

Github Test Reporter by CTRF 💚

@andrzejewsky andrzejewsky self-requested a review February 12, 2025 15:48
@poulch poulch merged commit c3417d0 into main Feb 12, 2025
15 checks passed
@poulch poulch deleted the BCK-1441-filters-collection-list branch February 12, 2025 15:50
witoszekdev pushed a commit that referenced this pull request Feb 18, 2025
* Collection filters

* channel fix

* published labels

* ids and slugs

* collection filters

* update test

* json messages

* remove ids and slugs filters

* Refactor

* Update flag

* Restore collection list

* Refactor statics

---------

Co-authored-by: Paweł Chyła <pawel.chyla@saleor.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run pw-e2e Run e2e (basic suite from PR automation)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants