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

Case Dashboard: fix labels on my/all radio buttons, and simplify label text #20958

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

mlutfy
Copy link
Member

@mlutfy mlutfy commented Jul 26, 2021

Overview

The Case dashboard has a radio button to toggle between "My Cases" and "All Case".

Except they are not named that way, nor do they behave like most radio buttons. What you might read below might surprise you. Or not. (/clickbait)

Before

civicase-before-2021-07-26_15-14

  • The toggle does indeed toggle the filters on the lists of "Upcoming Activities", but it's very verbose, and I think most people can figure it out. Not to mention that the listings do have a title that says "My Cases with Upcoming Activities" (or "All Cases with upcoming activities). Most users do not read text unless they really to, so shorter is usually better.
  • When we click the text of the radio, it does not select the option. One must precisely click on the round thing.

After

civicase-after-2021-07-26_15-14

  • text is clickable
  • label is shorter

Comments

cc @demeritcowboy

@civibot
Copy link

civibot bot commented Jul 26, 2021

(Standard links)

@civibot civibot bot added the master label Jul 26, 2021
@demeritcowboy
Copy link
Contributor

Ahh you made me click. Back at ya:
[clickbait] These words are making people furious: https://github.com/civicrm/civicrm-core/blob/31efa0d6fa9c27f2d86186d78ca5e8e1f4e73689/templates/CRM/Dashlet/Page/CaseDashboard.tpl#L26-42 [/clickbait]

If changing here, then those dashlet version ones should probably be made consistent, but it wouldn't have to be part of this PR. The third one is actually a link to Find Cases not the dashboard.

None of the labels before and after are 100% accurate (it's actually something like cases that have an activity in the next 14 days with status=Scheduled). So maybe the text should say "Surprise me". (grin)

@eileenmcnaughton
Copy link
Contributor

I vote for 'some random cases you may be interested in' or 'people who read your last case also read....'

@demeritcowboy
Copy link
Contributor

demeritcowboy commented Jul 27, 2021

I'm conflicted on this. There's no technical issues, it's just whether it's clearer or not. I understand the current is verbose, but the proposed wording might be misleading, e.g. The case dashboard is broken because I clicked "My Cases" but it's missing a lot of them.

Just tossing an idea: something like My Cases (learn more...) where the link goes somewhere TBD. Or maybe a help bubble beside My Cases?

@mlutfy
Copy link
Member Author

mlutfy commented Jul 28, 2021

@demeritcowboy Sorry about that, I didn't expect to go down a rabbit hole on this one!

I have to admit I did not understand the $myCases variable. I feel like it is being assigned only to avoid setting a default value for the HTML element?

From CRM/Case/Page/DashBoard.php:

    if (!$allCases) {
      $this->assign('myCases', TRUE);
    }
    else {
      $this->assign('myCases', FALSE);
    }

and then the smarty does if/else to set the right default option?

I understand the current is verbose, but the proposed wording might be misleading, e.g. The case dashboard is broken because I clicked "My Cases" but it's missing a lot of them.

I have to admit that my users rarely see the "Upcoming Activities" lists, because they only use the summary (click on all open cases, etc). They do not use scheduled activities much.

If we look at the summary table (number of open cases), the toggle is misleading, because the summary always lists all/my cases, regardless of whether there are upcoming activities.

And then for the lists of upcoming activities, I do feel like the labels of those lists are pretty clear (and I'm not proposing to change them). Just my opinion, of course, and I completely defer to you.

I didn't understand about the dashlets. I had a look at they do not display a my/all filter?

civicase-dashlets-2021-07-28_13-37

(I am very sleep deprived, apologies if I am missing anything obvious, or if I am not making sense)

@demeritcowboy
Copy link
Contributor

Yes I think one of many problems with the dashboard is that the toggle applies to both the summary section and the sections below, but they don't show the same things, so it's difficult to get wording that describes both accurately. But yeah I can see that because it's at the top, having wording that matches that one maybe should have priority.

So thinking of it that way, it seems fine.

For the dashlets, it's not those dashlets - there's another one called Case Dashboard Dashlet.

Historical note: The dashboard was a draft suggestion of what could go in it, but then got shipped and became THE dashboard. I usually replace it with a custom page or something.

For $mycases, you might be right. I haven't looked. There might be lots of awkward code in there.

@demeritcowboy demeritcowboy added the merge ready PR will be merged after a few days if there are no objections label Jul 28, 2021
@mlutfy
Copy link
Member Author

mlutfy commented Jul 28, 2021

Oh ok, I had misread the link you had posted, for the dashlet.

case-dashlet-2021-07-28_14-51

I am going to 🙈 for now, because the translations here made my head hurt. It still kind of seems OK, because the links point to search results? (well, ignoring the translation errors)

Thanks for reviewing! :)

@demeritcowboy demeritcowboy merged commit 658e3b5 into civicrm:master Aug 2, 2021
@eileenmcnaughton eileenmcnaughton deleted the myCaseLabels branch August 2, 2021 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master merge ready PR will be merged after a few days if there are no objections
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants