-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
SearchKit - Use a search display to display searches #21270
Conversation
(Standard links)
|
CRM/Contact/DAO/SavedSearch.php
Outdated
@@ -189,7 +189,7 @@ public static function &fields() { | |||
'name' => [ | |||
'name' => 'name', | |||
'type' => CRM_Utils_Type::T_STRING, | |||
'title' => ts('Saved Search Name'), | |||
'title' => ts('Name'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought where we landed was that the title would assume low-context and <html<label>
would assume high context - so instead of reducing the information in the title we would add a html label tag
This passed r-run - I'm just not sure the schema changes is what we agreed on? |
@colemanw this is stale - I'm assuming the dao change is now otherwise merged |
4424f22
to
d102f83
Compare
Looks like my concern has been addressed - MOP |
Thanks @eileenmcnaughton - while re-testing this I found another bug: #21333 |
Overview
This updates SearchKit to use a search display to display the list of searches.
Before
The table of saved searches was just an ad-hoc thing I wrote in Angular. It doesn't have a pager so wouldn't scale past a few hundred.
After
Now it uses a search display, which reduces code while adding a few nice features like a pager and in-place edit:
Technical Details
Most of it I was able to do with vanilla searchDisplay code. In order to render the fancy custom-coded columns like the list of Afforms, I added a new column type which lets you supply your own angular template: