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

Merged
merged 9 commits into from
Dec 30, 2024

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)

@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
@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
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
<%= 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 8 times, most recently from 80f9b4d to 2b9da08 Compare December 27, 2024 10:29
Gemfile Outdated Show resolved Hide resolved
Revert "Add playwright instead of selenium"

This reverts commit 4a51dd3.

Remove system specs from the build (for now)

We are struggling with chromium and alpine
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 2b9da08 to 829ca1d Compare December 30, 2024 11:36
@tomas-stefano tomas-stefano force-pushed the td/53-improve-filters-add-secondary-filter-part-2 branch from 67ca68e to 8351bb2 Compare December 30, 2024 13:49
@tomas-stefano tomas-stefano merged commit 9fcfef4 into main Dec 30, 2024
19 checks passed
@tomas-stefano tomas-stefano deleted the td/53-improve-filters-add-secondary-filter-part-2 branch December 30, 2024 14:15
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.

2 participants