Caseflow: Documents List | Comments filter

Created on 5 Jun 2017  路  23Comments  路  Source: department-of-veterans-affairs/caseflow

When viewing the documents list, I want to quickly filter to show/expand only those documents with comments, so I can read through all my comments at once.

AC

  • Add new toggle feature that allows users to toggle between all documents and all comments

    • Documents: Should show everything within filtered view.

    • Comments: Should show all comments expanded and filtered only.

  • The ToggleButton component should be used, as listed in the Style Guide
  • The length of each toggle button should be the same
  • There should be 20px of space between Show all: and toggle
  • Toggling between documents and comments works as a filter. It works as an AND with the categories and issue tags filters.

    • Filters should apply to both views

    • Search should apply to both views

    • When toggling back to all documents after have been on comments view, we should collapse the comments.

  • When comments = empty state, filtering by message should mention comments. Related: https://github.com/department-of-veterans-affairs/caseflow/issues/2496
    Example:
    image

Mockups

image

image

Related

  • Style guide ticket for new toggle button #2478
  • #2496
caseflow-reader Whiskey

All 23 comments

@gnakm it seems like we should combine the expand all with comment filtering, rather than having them disjointed; I don't see a use case for using one but not the other (and i think the expand all will be more useful if it's limiting the view) - thoughts?

this also gives us an opportunity to clarify the label of the button, since i think there's some confusion

@abbyraskin I totally agree with this. The button is too detached and missing a function. I think we should decide on design end of this week as we synthesize findings and define our product more this week.

@abbyraskin For our discussion later

  1. View all comments tab

image

image

image

I added a header (no ticket for it yet but if things start getting very gnarly at the top, how about we use the accordion as header? I'm going to discuss this with Lara right before our meeting because I know she wants to add a global Veteran name and ID button at the top.

We also need to talk about how search will work for both filters. I'm inclined to say might be different for each section after this pilot. Would love to know your thoughts.

  1. Expand all button turns into a filter-esque button

image

image

Note for both:
We talked about maybe calling comments notes instead. I added it in the mocks but we can talk about this. Also, added back # of comments and the word notes to bring a little more visibility to the feature to expand individual comments.

@abbyraskin This is combo of what we played with a little before and your suggestions:

  • Moved search to top right corner
  • Put process # of documents where search used to be
  • Put show all buttons on top

Question for us -- do we want to give users the option to expand all AND filter in any order? The invision link has it so that you can only expand all when you filter comments only.

Invision Link to help visualize this interaction

Mockups

No filter
image

With notes filter on
image

With note filters on and expanded
image

In Nick's Voice, "meEeegaa filter."

Abby/ Gina convo:

With the filter alert coming up each time, we thought it was jarring and redundant. It gave us a space to explore what a mega filter would look like.

  • allows the combination of seeing all filter-able options including
  • It might be a better alternative to the filter + expand all situation
  • It helps separate from the search box yet easily show users the relationship between what's being searched and what was filtered.

image

@gnakm we should probably call out in the AC how the filters and search interact with the toggle. The "note" toggle essentially acts as an additional filter. If a user is on the documents view and selects a category filter, then toggles to notes view, they are viewing docs that contain notes _and_ the selected category filter?

(Do we want the filters to apply to both toggles, or do they live in their own little independent worlds?)

We also probably need an empty state if there are no documents with notes (or no documents with note AND ___ if we go with above implementation)

@abbyraskin Agreed on explicitly calling it out.

Toggling between documents and notes works as a filter. It works as an AND with the categories and issue tags filters.

  • Filters should apply to both toggle views

    • ex. The common super user use case we saw was those who filtered categories first and then clicked the expand all buttons.

  • If you search, it should be applicable to both toggle views
  • Empty state issue here: #2490

need a story that accounts for changing everywhere we say "comment", unless we change this toggle to comments for now

^ For anybody reading this thread, we've decided to stick to comment because it's a bigger scrub to change everything and wasn't hi-priority or urgent enough to change on UX side.

@gnakm I'm confused about last AC: "When comments = empty state, show all documents and make sure that filtering by text mentions comments."

@abbyraskin I updated the AC. Basically even if there aren't any comments, we should still have in the filtered text message that it is being filtered by comments.

image

@gnakm when you're in the Comments view, should the user still be able to click on the comments indicator (the 4 v in this screenshot) to expand / collapse comments for an individual document?

If a user has comments expanded for a doc when in the Documents view, and then they switch to the Comments view, then back to the Documents view, do we want the comments for that doc to still be expanded?

If #2496 is not done by the time I'm ready to merge this, then that ticket can include updating the filtered-by message based on whether the user is on Documents or Comments.

There should be 20px of space between Show all: and toggle

For some reason, 18px is very easy to make look good, but 20px will require more effort. Can I just make it 18px? :smile:

When comments = empty state

I am not sure what this means.

@NickHeiner

  1. 18px is fine.
  2. When there are 0 comments but the toggle is on comments, the little filter message below the search bar should still list comments.

I don't see the "{count} documents" message in the mocks. Is that going away?

image

@NickHeiner

  1. The count message is being moved to the top on the right side of h1
    The format has also changed so that it shows x out of y documents viewed (currently being worked on here: https://github.com/department-of-veterans-affairs/caseflow/issues/2498)
    image

  2. If a user has comments expanded for a doc when in the Documents view, and then they switch to the Comments view, then back to the Documents view, do we want the comments for that doc to still be expanded?

When toggling back to all documents after have been on comments view, we should collapse the comments.

PASSED I don't know if this has made it passed @gnakm 's eyes for the UI but tagging her in here as reference

Env: UAT
Browsers: FF and Chrome

Steps to Validate:

  1. Access Reader for a test veteran
  2. Toggle the "Documents | Comments" button
  3. Verify that the results filter out based on comments or shows all documents if "Documents" is toggled on.

Screenshots:
readerheading

@astewarttistatech yup! I've been checking and looks good!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pkarman picture pkarman  路  5Comments

hschallhorn picture hschallhorn  路  4Comments

hschallhorn picture hschallhorn  路  5Comments

lomaxap picture lomaxap  路  3Comments

lomky picture lomky  路  3Comments