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

Improve filters - add secondary filter - within filter search functionality #4790

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

tomas-stefano
Copy link
Contributor

Context

This PR adds the "Search" within the filter.

After talking with the tech lead we decide to add Stimulus only for this component and gradually switch over Stimulus.

Changes proposed in this pull request

Screenshot 2024-12-23 at 18 02 05

Guidance to review

  1. If you are local make sure your config/settings/development.local.yml has:
features:
  v2_results: true
  1. Visit /v2/results
  2. Test the "Search" within the secondary filter
  3. Also check the designs from the Trello ticket.

@tomas-stefano tomas-stefano added the deploy A Review App will be created for PRs with this label label Dec 23, 2024
@tomas-stefano tomas-stefano requested a review from a team as a code owner December 23, 2024 18:05
@tomas-stefano
Copy link
Contributor Author

Trello: https://trello.com/c/hnmuEiq8/53-improve-filters-add-secondary-filter

(the Github integration is not working)

@github-actions github-actions bot temporarily deployed to review-4790 December 23, 2024 18:09 Destroyed
@tomas-stefano tomas-stefano changed the title Td/53 improve filters add secondary filter part 2 Improve filters - add secondary filter - within filter search functionality Dec 23, 2024
@github-actions github-actions bot temporarily deployed to review-4790 December 23, 2024 18:17 Destroyed
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from d5587b5 to 06a0685 Compare December 24, 2024 01:20
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 01:24 Destroyed
Added the test for the secondary filters
Within the secondary filters we will allow the option search
so if someone searches within the filter for "Bio" they will see
only "Biology" option.

Add the js and the stimulus and a start to switch to stimulus bit by
bit.
Enabling in QA.

The reason of the change is because Selenium doesn't play well
with basic authentication

Fix standard js errors
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 06a0685 to 9eb9d6f Compare December 24, 2024 10:38
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 10:41 Destroyed
<%= form.govuk_check_box :subjects,
subject.subject_code,
label: { text: subject.subject_name } %>
<% end %>
Copy link
Contributor Author

@tomas-stefano tomas-stefano Dec 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The govuk_collection_check_boxes with fieldset creates two classses govuk-checkboxes and create more divs and form groups which makes the JS not work as expected. (i would have to call children many times in the JS controller). So I changed to loop through the secondary subjets.

@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 9eb9d6f to 65d212e Compare December 24, 2024 10:44
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 10:47 Destroyed
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 10:56 Destroyed
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 70c1b80 to 97bf609 Compare December 24, 2024 10:58
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 11:02 Destroyed
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 11:15 Destroyed
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 11:31 Destroyed
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 12:48 Destroyed
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 7e4ea6e to 48a1dde Compare December 24, 2024 12:55
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 12:58 Destroyed
And add logs for the sake of investigating
Chromium requires a virtual display in headless environments.
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 48a1dde to 21e9dbc Compare December 24, 2024 13:30
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 13:34 Destroyed
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 21e9dbc to e8435ef Compare December 24, 2024 13:38
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from e8435ef to c793a13 Compare December 24, 2024 13:48
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 13:51 Destroyed
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 14:18 Destroyed
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 15:01 Destroyed
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 8e7dcea to 3b94be5 Compare December 24, 2024 15:30
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 15:33 Destroyed
@github-actions github-actions bot temporarily deployed to review-4790 December 24, 2024 23:05 Destroyed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy A Review App will be created for PRs with this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant