As proven with a review there are some problems with the UI of the More like this blocks and essentially the generic Solr Search block

This label is really hard to scan, what does this mean? In addition to that, why is this in a fieldset? Is it really not important?
This information is kinda useless. This should be a table, informing where the block is, and a link to edit it.

More like this admin

Comments

nick_vh’s picture

StatusFileSize
new31.13 KB
new82.1 KB

And some results of the re-factoring!
This opens also the path for more generic apache solr blocks

Apache Solr search | Smartphone compare-6.jpg

nick_vh’s picture

StatusFileSize
new35.03 KB

Improved patch, also handles the delete link in the block listing + a renderable array for the block itself

nick_vh’s picture

StatusFileSize
new41.26 KB

And the blocks are also working now

Moved everything over to apachesolr_search module since this is a search part and not a core apachesolr function.

pwolanin’s picture

Minor, but I'd take out 'Search' before "More Like This", and I'm not sure we need the quotes?

nick_vh’s picture

StatusFileSize
new41.25 KB

The quotes are imho needed to avoid confusion between the interface text and the type.
If you remove the quotes you also have to remove the camelcasing, and that would not be UI friendly.

The best way, but that is for the future is to remove the more like this from the UI and just add a link to Add Search Block. This link should take you to a page where you select the type of your block, similar to the search pages configuration.

nick_vh’s picture

StatusFileSize
new46.42 KB

And now all the tests are also running

nick_vh’s picture

And pushed it up to the repo. Have fun with renewed More like this blocks!

nick_vh’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.