Additional solr updates - #189
Conversation
|
UPDATE: what I write in the comment below is not needed any more. To try this out, you manually have to switch It is unknown if this can be done in a better way with uv. The way I did it is I checked out the branch somewhere, then manually added this to [project]
...
dependencies = [
...
"kitconcept.solr @ /Users/ree/work/kitconcept/solr/kitconcept.solr/backend",
] |
|
@reekitconcept I get an error when I run "make" after doing the amendments you specified: I had to add this to pyproject.toml: |
Update, I found a way to do this from the config, so you don't need any of the above any more. It won't give you a checkout that you can develop locally though, so if you need local development on the dependent package (in this case kitconcept.solr) you still need to check it out manually and add the dependency override I described above. However for running the app locally or on servers, this isn't needed now. |
Sorry, I forgot to mention this. On the bright side, I figured out how to do this without the need to any edit, and added that as a new commit. It also contains the hatch change. |
604ebd1 to
f5c1f30
Compare
459c7d8 to
815f594
Compare
- update kitconcept.solr to 2.0.0-a2, 2.0.0-alpha.2 - search result style changes - hide builtin search input - keep search term after being submitted - make search result page full width - highlight searchbox on hover and focus - necessary updates on solrSearchAutosuggest - wire the search widget in the header - make search keep current state (ie. sorting by, etc.) Also: - fix test that checks restapi version, now 9.15.2
815f594 to
4f3715d
Compare
|
@ericof can we merge this PR now or is anything holding us back? |
|
Yes, we can. |
| "dependencies": { | ||
| "@kitconcept/core": "workspace:*", | ||
| "@kitconcept/volto-solr": "2.0.0-alpha.1", | ||
| "@kitconcept/volto-solr": "2.0.0-alpha.2", |
There was a problem hiding this comment.
@ericof this commit made all a11y tests fail. I have no clue why this happens.
There was a problem hiding this comment.
@tisto This is the rule that is failing: "Ensures every ARIA input field has an accessible name (aria-input-field-name)"
I guess it is something wrong with the autocomplete livesearch input from kitconcept/kitconcept.solr#43 since that appears in the header of every page
There was a problem hiding this comment.
@ericof this commit made all a11y tests fail. I have no clue why this happens.
This is the latest released version of @kitconcept/volto-solr. We need to fix the issue there :-(
There was a problem hiding this comment.
@davisagli right. Good catch. The good thing is that it means we fetch the correct code and functionality. Then someone needs to look at how we can fix these a11y regressions.
There was a problem hiding this comment.
kitconcept.intranet is passing an aria-label here:
but it is not used by the SolrSearchAutosuggestWidget in kitconcept-solr (https://github.com/kitconcept/kitconcept.solr/blob/main/frontend/packages/volto-solr/src/components/theme/SolrSearchWidget/SolrSearchWidget.jsx)
There was a problem hiding this comment.
@tisto @ericof I fixed a conditional (4bb41fb) so that it won't try to use the autosuggest search widget when solr is not active. That should be enough to make the a11y tests pass. We still need to follow up in kitconcept.solr and fix the issue so that the aria-label is there when it is enabled. But at least this way we won't cause a regression for sites that aren't using solr.
There was a problem hiding this comment.
I also added an issue: kitconcept/kitconcept.solr#47
| @@ -1,4 +1,5 @@ | |||
| import type { ConfigType } from '@plone/registry'; | |||
| import './theme/custom.scss'; | |||

Uh oh!
There was an error while loading. Please reload this page.