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

CRM-21113: find case - search by id, subject #10911

Merged
merged 3 commits into from
Sep 7, 2017

Conversation

lcdservices
Copy link
Contributor

@lcdservices lcdservices commented Aug 28, 2017

Overview

Include Case ID and Case Subject in Find Cases tool

Technical Details

This PR also cleans up the Find Case layout. It is built on a table structure but had an inconsistent number of columns in certain rows depending on what fields were potentially displayed. This implements a consistent three column layout. It also removes some duplicate label tags.


@monishdeb
Copy link
Member

The added new columns ID and subject are working on new 'Find Case' search form. Here's the layout after applying patch:
screen shot 2017-09-06 at 5 35 12 pm

However, there are few changes I'd like to add:

  1. The Case subject field is too wide, as result of which the tag field is cornered below.
  2. Although it's not relevant to the issue but what if we replace the case_tags form element with colored Tag tree select2 that is already used in various places.
  3. Add unit test (ref - https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/CRM/Contact/BAO/QueryTest.php)

For 1 and 2 I have prepared a patch - https://gist.github.com/monishdeb/bee2ebc02267061bb847bf6d989f8640
And screenshot after the change:
screen shot 2017-09-06 at 5 32 07 pm

@lcdservices
Copy link
Contributor Author

I agree we should use the select2 widget -- that's a good improvement. Re: subject line -- I think it's more usable when wider. I merged table cells so that it can remain wide without squeezing the tag field. PR has been updated.

@monishdeb
Copy link
Member

Looks great, also checked the underlying query, all working great. Will add unit-test for necessary filters on 'Find Case' search form. Merging now.

screen shot 2017-09-07 at 6 33 32 pm

@monishdeb monishdeb merged commit 918ccfa into civicrm:master Sep 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants