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

Minor updates to report detail page header #4576

Closed
3 tasks
sglangevin opened this issue May 24, 2018 · 24 comments
Closed
3 tasks

Minor updates to report detail page header #4576

sglangevin opened this issue May 24, 2018 · 24 comments
Labels
Priority: 2 - Medium Normal priority Reports Affects the Reports page Type: Improvement Make something better
Projects

Comments

@sglangevin
Copy link

sglangevin commented May 24, 2018

This improvement makes a few tweaks to the header on the report detail page, making it easier to read.

UI changes:

  • remove the detailed date from the report detail page
  • move the relative date to the left hand side, below "Sent by"
  • make sure the relative date shows the detailed date on hover/click

NOTE: No changes are being made to the reports list, only the report detail page, so the reports list should stay exactly as it is.

report header - no hyperlinked sender

@sglangevin sglangevin added Status: 1 - Triaged Reports Affects the Reports page Priority: 2 - Medium Normal priority Type: Improvement Make something better labels May 24, 2018
@sglangevin sglangevin added this to To do in 2.16.0 May 24, 2018
@garethbowen
Copy link
Member

I strongly prefer using relative dates by default and only using absolute dates when there's a specific use case that benefits. This is for several reasons...

  • They answer the most common questions users have (eg: "how long ago was this pregnancy registered?", "when did I last visit this user?", etc). There are some use cases that absolute dates answer better but they're less common in my experience (eg: "did this report come in before this other event?")
  • They are very easy to scan and understand correctly without making a mistake when trying to answer the above use cases.
  • They reduce in specificity as they recede into the past - who cares if a report from three years ago came in at 10.15am?
  • They are timezone agnostic. While we always show absolute dates in the user's timezone, two users in different timezones will see a different absolute date, but they will see the same relative date (eg: "30 minutes ago")
  • They are shorter so they take up less space and are less likely to wrap to the next line.

In our implementation of relative dates we watch for click, touch, and hover events and show the absolute time in a tooltip so if it's important to know the exact time then this is still possible without taking up any additional screen space.

@amandacilek @sglangevin I'm interested in your opinions. What use cases are better served by having absolute dates?

@sglangevin
Copy link
Author

I'm fine with using a relative date if we can see the absolute date in the tooltip, but curious to hear your thoughts @amandacilek.

@amandacilek-zz
Copy link

I don't know much about the history of partner changes and requests that got the page to its current design with both relative and specific dates. I'll leave that to @diannakane and @sglangevin to remind us. My takeaway from a previous conversation with Sharon though was that: someone requested the specific date get added and they use it. I thought it was silly to have both the relative AND the specific date right on top of each other (seems like we should just choose one or the other) and since it sounded like the specific date was preferred, we decided the relative date was redundant on this page.

All the points you make are valid and I generally agree with you. My thinking with this was: users still see the relative date on the main Reports list. On that page, the relative date helps them quickly scan through the list and understand general timing. Once they've reached the point where they are clicking on an individual report to see the detail page, it makes sense that that page gives them more well, details, so I don't mind the more specific date once you get to the detail page.

From a purely aesthetic point of view I have no preference, and would lean towards the relative date because, as you mention, it's shorter. From a UX perspective, I'd need to be reminded of who requested the specific date and why first before speaking further about use cases.

@sglangevin
Copy link
Author

It's true, people do use the detailed date. But I think it's ok that they have to hover over the relative date to see the detailed date on the web app. I realized that this might not work well on mobile - how can you access the detailed date on mobile? With no hover action, I'm concerned that the detailed date won't be discoverable by users.

@garethbowen
Copy link
Member

@sglangevin Touch/click works to show the tooltip on mobile.

@amandacilek-zz
Copy link

But how would they know to touch/click the relative date? Is it styled like something clickable (blue and/or underlined)? I agree with Sharon that it doesn't seem very discoverable. Although if users are already familiar with doing it that way it's less of an issue. Could be something we mention in the in-app tour? @sglangevin @diannakane do you have any idea of what percentage of our users are looking at/using, the detailed date? Any idea if it's "almost all managers" or "managers from this one specific project" ...or we don't know?

@diannakane
Copy link

I think it's mostly our project managers using the detailed date for testing. It helps them differentiate between test reports and real reports. Is that your understanding, @sglangevin ?

@sglangevin
Copy link
Author

I think it's used as a way to scan through and see if the gateway is working. Now that we are showing the exact time for reports coming in today, I think that satisfies that need. If the full date is needed, you can easily hover over the relative date in the list of reports, so having that match the report detail page works for me. Someone will complain if it's not usable! I'm more concerned with the user experience on mobile, but I think that can be handled through training and I'm not sure how much the precise date and time matter for most managers.

@garethbowen
Copy link
Member

It would be nice to style it - perhaps not a blue underline, but maybe with a tooltip icon or dotted underline? I'm always too afraid to click links because they'll take me to a new page...

@diannakane We strongly recommend users use the provided testing instances for testing/training reports, so I hope nobody is using the date for differentiation between the two.

@diannakane
Copy link

Got it, @garethbowen. My information may have been based on the way training used to work.

@amandacilek-zz
Copy link

Ok so... if we leave the relative date exactly as-is in the upper right, and remove the long detailed date altogether, I think this ticket is no longer necessary.

Could create another little ticket if we want to make some sort of update to the styling of the relative date...you're probably right, Gareth, blue might not be the way to go. I was thinking maybe a little info icon or something? I can try out a few ideas and see what we think.

@sglangevin
Copy link
Author

Could you also see if keeping the date in the same place but changing the detailed date to a relative date would work? I think that might be better for small screens. Looking at your mockup at the top of this issue, I'm not sure how we'd fit a relative date on the right.

@amandacilek-zz
Copy link

Here are a few options for where the relative date could live:

  1. Upper right where it currently is
  2. Bottom of left side, underneath sender name
  3. Right after the sender info, on the same line

screen shot 2018-06-04 at 2 55 38 pm

@sglangevin
Copy link
Author

I like it on its own line, but am fine with it on the same line as the sender. I like leaving the right side for the status dot.

@amandacilek-zz
Copy link

The problem I was trying to solve with this ticket was the very long detailed date on the right side causing all sorts of weird wrapping. Getting rid of the detailed date solves that issue for me, so I don't have much of a preference between these three.

1 is more consistent with the short view we see on the LHS, 2 is friendliest when viewing on very small devices, 3 keeps the overall height of the header down... If you think about us having longer sender names than the example of "Janet Mwangi" then it might make sense to give the date it's own line (option 2).

@amandacilek-zz
Copy link

Ok is this what we all want? UI changes:

  • remove the long, detailed date from the report detail page
  • move the relative date to the left side, below "Sent by"
  • touch/click on the relative date reveals screen tip with detailed date information (same functionality as seen on LHS)

I'm not sure if this is already implemented, but didn't we also discuss:

  • sender name is styled blue and hyperlinked to their profile page

@sglangevin
Copy link
Author

I'm fine with those first 3. The other one might have been discussed but it's not in the spec. Would be useful though. @garethbowen how much effort would it be to hyperlink the patient name to their profile? I'm inclined to do that now if it's really easy, but if not, then let's hold off as we need to make sure that this release gets out the door on time. I'd like to update the top comment in this issue - can you send me the updated mockup so that I can paste it up there?

@garethbowen
Copy link
Member

It's fairly easy to add. There's a minor risk in doing it because that code is used in a lot of places to render the sender's name so we'd have to check all the other places.

@sglangevin
Copy link
Author

Ok - if it's a risk then I'd leave it out for now, as I want to avoid regressions as much as possible and if we are changing code that's used in a lot of places, that expands our need for testing quite a bit.

@dianabarsan
Copy link
Member

Please review, @SCdF . Thanks!

@SCdF
Copy link
Contributor

SCdF commented Jun 7, 2018

@dianabarsan reviewed, back to you!

dianabarsan added a commit that referenced this issue Jun 7, 2018
Replaces full date with relative date, moves it under sender, aligned
to the left.
Full date is displayed as a tooltip on hover/click.

#4576
@dianabarsan dianabarsan removed their assignment Jun 7, 2018
@dianabarsan dianabarsan moved this from In progress to In AT in 2.16.0 Jun 7, 2018
dianabarsan added a commit that referenced this issue Jun 7, 2018
Replaces full date with relative date, moves it under sender, aligned
to the left.
Full date is displayed as a tooltip on hover/click.

#4576
@sglangevin
Copy link
Author

LGTM. Moving to ready.

2.16.0 automation moved this from In AT to Done Jun 7, 2018
@sglangevin
Copy link
Author

I realized I shouldn't be testing this on alpha (master) and should wait for a 2.16.0 beta. Re-opening!

@sglangevin sglangevin reopened this Jun 7, 2018
2.16.0 automation moved this from Done to In progress Jun 7, 2018
@sglangevin sglangevin moved this from In progress to In AT in 2.16.0 Jun 7, 2018
@sglangevin
Copy link
Author

LGTM on 2.16.0-beta.2. Moving to ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 2 - Medium Normal priority Reports Affects the Reports page Type: Improvement Make something better
Projects
No open projects
2.16.0
  
Done
Development

No branches or pull requests

6 participants