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

Add seach component to all other pages #105

Merged
merged 6 commits into from Sep 7, 2023

Conversation

lucianghinda
Copy link
Member

@lucianghinda lucianghinda commented Sep 7, 2023

What

This will replace the HTML search from all pages with the SearchComponent

Why

The SearchComponent encapsulates the search form logic, making the code more readable and easier to change. It also takes care of HTML escaping the search_term, improving security.

The form is now rendered inside a <div> instead of a <span> to follow HTML best practices.

How

Replaced the HTML form in indexes pages with rendering the SearchComponent

PR checklist

  • This Pull Request is related to a single change. Unrelated changes should be opened in separate PRs.
  • Commit messages have a detailed description of what changed and why.
  • Tests are added or updated if you fix a bug or add a feature
  • PR has a description that includes what, why and how

This commit replaces the search form in `app/views/tags/index.html.erb` with the SearchComponent. The SearchComponent encapsulates the search form logic, making the code more readable and easier to change. It also takes care of HTML escaping the search_term, improving security. The form is now rendered inside a `<div>` instead of a `<span>` to follow HTML best practices.
Description:
This commit replaces the search form in `app/views/courses/index.html.erb`  with the SearchComponent. The SearchComponent encapsulates the search form logic, making the code more readable and easier to change. It also takes care of HTML escaping the search_term, improving security. The form is now rendered inside a <div> instead of a <span> to follow HTML best practices.
@lucianghinda lucianghinda self-assigned this Sep 7, 2023
Description:
This commit replaces the search form in app/views/youtubes/index.html.erb with the SearchComponent. The SearchComponent encapsulates the search form logic, making the code more readable and easier to change. It also takes care of HTML escaping the search_term, improving security. The form is now rendered inside a <div> instead of a <span> to follow HTML best practices.
Description:
This commit replaces the search form in app/views/screencasts/index.html.erb with the SearchComponent. The SearchComponent encapsulates the search form logic, making the code more readable and easier to change. It also takes care of HTML escaping the search_term, improving security. The form is now rendered inside a <div> instead of a <span> to follow HTML best practices.
Description:
This commit replaces the search form in app/views/newsletters/index.html.erb with the SearchComponent. The SearchComponent encapsulates the search form logic, making the code more readable and easier to change. It also takes care of HTML escaping the search_term, improving security. The form is now rendered inside a <div> instead of a <span> to follow HTML best practices.
@lucianghinda lucianghinda changed the title Lg/add seach form to other pages Add seach component to all other pages Sep 7, 2023
@lucianghinda lucianghinda merged commit d8aa8a5 into main Sep 7, 2023
5 checks passed
@lucianghinda lucianghinda deleted the lg/add-seach-form-to-other-pages branch September 7, 2023 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant