community-platform icon indicating copy to clipboard operation
community-platform copied to clipboard

Questions: Show keywords in question search results

Open benfurber opened this issue 11 months ago • 0 comments

Screenshot 2024-03-20 at 17 40 40

Once #3349 is merged in, we've have a lovely filtering/search of questions which will include question description searches.

This means the UI needs to change like the above so that users can see what and why the content in the search results is present.

  • Refactor the items from QuestionListing into it's own component
  • Use the params to find if a search param is present
  • if param present, show description (maybe not all of it somehow as they can be 1000 chars long)
  • Highlight the right terms in the title and description with 30% of the primary colour (the platform this is themed so that automatically a green for PK and a yellow for PP)
  • New unit tests! Some unit tests to check the showing/not showing of descriptions a minium.
  • Update feature tests! There will be a little to do in src/integration/questions/read.spec.ts (assuming #3375 is merged in)

benfurber avatar Mar 20 '24 18:03 benfurber