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

Hosting screen: respect the reset state for filters #93815

Closed
oandregal opened this issue Aug 22, 2024 · 7 comments
Closed

Hosting screen: respect the reset state for filters #93815

oandregal opened this issue Aug 22, 2024 · 7 comments
Assignees
Labels
[Feature] Pricing Feedback related to the pricing structure of WordPress.com's plans and services. Needs triage Ticket needs to be triaged [Pri] Normal Schedule for the next available opportuinity. [Type] Bug

Comments

@oandregal
Copy link
Contributor

Quick summary

After the user has reset the filter states, changing the view sets "All sites" again.

Steps to reproduce

I provide a video to reproduce:

Gravacao.do.ecra.2024-08-22.as.13.28.44.mov

What you expected to happen

The filters should be reset.

What actually happened

The filters were set again.

Impact

All

Available workarounds?

There is no user impact

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

@oandregal oandregal added [Type] Bug Needs triage Ticket needs to be triaged labels Aug 22, 2024
@github-actions github-actions bot added the [Pri] Normal Schedule for the next available opportuinity. label Aug 22, 2024
@ianstewart ianstewart added the [Feature] Pricing Feedback related to the pricing structure of WordPress.com's plans and services. label Aug 23, 2024
@davemart-in davemart-in moved this from Needs Triage to Ready for Development in Automattic Prioritization: The One Board ™ Aug 26, 2024
@davemart-in
Copy link
Contributor

Thanks for reporting this @oandregal! This seems straightforward. I moved it to "Ready for Dev"

@Addison-Stavlo
Copy link
Contributor

Addison-Stavlo commented Aug 27, 2024

I think having "All sites" listed as the filter by default is by design here. cc @lucasmendes-design

There is currently no indication on the status column header that it can be filtered (I think the original had a dropdown/popover for choosing the filter setting, that design iterations ended up having us remove?), unlike other columns where we do show indications (like sorting for example):

Screenshot 2024-08-27 at 11 51 20 AM

Having the default filter of "all sites" set makes the filters easily discoverable. As this icon by itself is not something our users would easily identify as where to filter by status:

Screenshot 2024-08-27 at 11 52 46 AM

I think if we want to remove the default filter for "All sites" that shows up, we should apply some other design (such as to the column header) to better indicate the availability of (and even apply) filtering.

@lsl lsl moved this from Ready for Development to Triaged in Automattic Prioritization: The One Board ™ Aug 29, 2024
@mmtr
Copy link
Member

mmtr commented Sep 4, 2024

I think having "All sites" listed as the filter by default is by design here

Can we then make these changes?

  • If filters are in their default state, "Reset filters" and "Reset status" should be disabled/greyed out
Screenshot 2024-09-04 at 13 13 08
  • If filters are in their default state, and a site is selected, the filters icon in the left sidebar shouldn't have any number:
Expected Wrong
Screenshot 2024-09-04 at 13 17 21 Screenshot 2024-09-04 at 13 17 12
  • If filters are NOT in their default state, when clicking on "Reset filters", the label next to the filters icon should say "Status is All sites":
Expected Wrong
Screenshot 2024-09-04 at 13 15 02 Screenshot 2024-09-04 at 13 15 09

@oandregal
Copy link
Contributor Author

Just noting that there's this PR to update the DataViews version in use #93503 It looks like it may be merged this afternoon or tomorrow morning. 🤞

This is a bit unusual for me, but I'd perhaps suggest fixing this issue after 93503 is merged if this is a big change. 93503 is a difficult PR that has been 3 weeks in the works, and it'd be good to avoid conflicts, complex rebases, etc.

@Addison-Stavlo
Copy link
Contributor

Addison-Stavlo commented Sep 4, 2024

Can we then make these changes?

These are logical and seem like an option we could move forward with.

I think the alternative approach would be:

  • Make the filters reset as they should (default state = no filters, not 'all sites')
  • We go back to having the dropdown/popover that appears from the "status" header. Whether it is the core one, or with slightly different styles to better match here.

Noting for context on that second note. In core DataViews, when a column allows filtering, there is/was a dropdown on the column header to select the filter you want for that column. Our designers didn't like the design for this and we sort of overrode it by hacking. The visible "status" columns is not set up for filtering, and in place we added an invisible status column that enables the filters to show up in the other filtering UI. IIRC this was all done to avoid having the dropdown from the column header, and I think why we make filters more discoverable by the "all sites" default state.

So the other option is to re-think that design conflict, and show the dropdown from the header as core does or in a similar way. In which case we could just make the default state no filters at all, as it probably should be.

I'd perhaps suggest fixing this issue after 93503 is merged

👍 Thanks for mentioning that.

@Addison-Stavlo Addison-Stavlo self-assigned this Sep 5, 2024
@Addison-Stavlo
Copy link
Contributor

Given the dataViews refactor has re-added the popovers anyways:

Screenshot 2024-09-05 at 10 54 44 AM

We may as well fix the hack hiding the filtering from here, and just default the filter to none.

@Addison-Stavlo
Copy link
Contributor

#94253 should resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Pricing Feedback related to the pricing structure of WordPress.com's plans and services. Needs triage Ticket needs to be triaged [Pri] Normal Schedule for the next available opportuinity. [Type] Bug
Development

No branches or pull requests

5 participants