Skip to content

Conversation

@pavish
Copy link
Member

@pavish pavish commented Sep 22, 2025

Fixes #4803

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the develop branch of the repository
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no
    visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@pavish pavish marked this pull request as draft September 22, 2025 13:04
@pavish pavish changed the title Improve filters WIP: Experimenal: Implement nested filtering Sep 22, 2025
@pavish pavish changed the base branch from develop to file_attachment_feature September 22, 2025 13:05
@pavish pavish changed the title WIP: Experimenal: Implement nested filtering WIP: Experimental: Implement nested filtering Sep 22, 2025
@pavish pavish self-assigned this Oct 13, 2025
@pavish pavish changed the base branch from file_attachment_feature to develop October 14, 2025 10:24
@zackkrida zackkrida added this to the v0.8.0 milestone Oct 16, 2025
@pavish
Copy link
Member Author

pavish commented Nov 4, 2025

I finally re-started work on this PR, after it being idle for a long time. It's functional, complete with drag and drop.

2025-11-04.19-02-22.mov

However, I still feel like the UI doesn't quite look good. It might be because of the icons or the colors, or the lack of animation (I'm not sure what's bothering me).

@zackkrida @seancolsen @kgodey Please review the UX, play around with it, and let me know your thoughts.

If the UX looks good, I can cleanup the code and colors, and get the PR ready for code review.

@pavish pavish added the pr-status: review A PR awaiting review label Nov 4, 2025
@pavish pavish assigned seancolsen, kgodey and zackkrida and unassigned pavish Nov 4, 2025
@pavish pavish changed the title WIP: Experimental: Implement nested filtering Experimental: Implement nested filtering Nov 4, 2025
Copy link
Contributor

@seancolsen seancolsen left a comment

Choose a reason for hiding this comment

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

Functionally, this works great, @pavish. Very cool!

Aesthetically, I agree it feels a little rough. And some of the rough nature of the design bleeds into UX challenge too. It wasn't immediately clear to me how to use it. I figured it out though.

Here's a quick stab at a slightly different visual representation:

Current:

image

Proposed:

image

What do you think of this?

(To be clear, I'm not proposing different colors — the colors are just taken from the last time I did some mockups which was before our app color changes.)

@seancolsen
Copy link
Contributor

@pavish, here's another small UX suggestion. This one is less important, but I wanted to mention it because I think it would slightly improve usability, and it's possible it could make some of the UI implementation simpler.

This suggestion relates to the behavior when dragging an item. So it's somewhat difficult to mock up. I'll try to explain via text...

Currently, when dragging:

  • The UI that follows my cursor is the entire thing I'm dragging. This can obscure the underlying tree of filter conditions, making it a little hard for me to see the place that I want to drop as I'm dragging.

  • The filter entry that I'm dragging is removed from the tree. This makes it hard for me to understand where I'm moving it "from". It's a little harder to me to mentally retain my context.

  • The drop target (the dotted outline) occupies space in the tree. This makes the tree layout change as I drag. That layout shift can makes dragging a little cumbersome sometimes. For example, if I drag 10px too far down, then I might need to go 100px back up to correct my mistake before dropping.

None of these issues are hugely problematic. After all, the patterns you're following here are quite prevalent across other apps. But with a complex drag-and-drop feature like this, I have a slight preference for the UI to basically "stay in place" as I drag.

I'd (slightly) rather it work like this:

  • The UI that follows my cursor would be very small — just an icon, or even nothing at all. This way I could see the underlying tree more clearly.

  • The filter entry that I'm dragging would stay in the tree but would get opacity 0.5 or something similar. This way I could see what I'm dragging and where I'm dragging it from.

  • The drop target would be a blue line in between items, similar to the UX when dragging to rearrange columns. This way the layout would not shift around as I drag.

Not a big deal. But I wanted to suggest this. Who knows, perhaps you'd end up re-doing some of the DnD UI if change the layout to suite some revised aesthetic design choices, and perhaps the DnD behavior I'm proposing would be simpler to implement. I'm not sure. I've not looked at any of this code yet.

@pavish
Copy link
Member Author

pavish commented Nov 10, 2025

Thanks @seancolsen. I implemented the most commonly used UX behaviour for drag and drop, and filter groups. I do like your suggestions, however, I'll wait until Zack and Kriti have weighed in, before I make a call.

@seancolsen seancolsen removed their assignment Nov 14, 2025
@zackkrida zackkrida removed their assignment Nov 19, 2025
@zackkrida zackkrida changed the title Experimental: Implement nested filtering Implement nested filtering Nov 25, 2025
@zackkrida zackkrida added the pr-status: revision A PR awaiting follow-up work from its author after review label Nov 25, 2025
@zackkrida zackkrida assigned pavish and unassigned kgodey Nov 25, 2025
@zackkrida zackkrida removed the pr-status: review A PR awaiting review label Nov 25, 2025
@pavish pavish marked this pull request as ready for review December 3, 2025 06:17
@pavish pavish marked this pull request as draft December 3, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-status: revision A PR awaiting follow-up work from its author after review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a nested filtering UI

5 participants