rubyvideo icon indicating copy to clipboard operation
rubyvideo copied to clipboard

feat: Responsive Filtering Implementation

Open Cephaz opened this issue 7 months ago • 5 comments

Related to https://github.com/adrienpoly/rubyvideo/issues/3

Target :

  • [x] Filter by year
  • [ ] Filter by keynotes (How is it represented in a database?)
  • [ ] Filter by conference name (using event_id for the moment)

Commits :

  • Updated Meilisearch to consider event_id and year
  • Integrated Stimulus and form for responsive filtering with Tailwind
  • Added filter parameters [years] [event_ids]
  • update 0.10.2 meilisearch-rails
  • sort by date
  • click out side filter
  • add search endpoint and turbo_frame

To fix in progress:

  • [x] when the app is in mobile dimension when using the filter it updates but a z-index bug appears
  • [x] Disappearance [filter] of check_box and searchbar when using pagy
  • [x] Change the position of the funnel icon [UI]
  • [x] Sync icons mobile-web screen
  • [x] https://github.com/stimulus-use/stimulus-use/blob/main/docs/use-click-outside.md or other solution

Some problems on the dev : the reindex! doesn't seem to update the model Talk

Talk.index.settings // verify settings
client = MeiliSearch::Client.new('http://localhost:7700', <KEY>)
client.index('Talk').update_settings({
  searchable_attributes: ["title", "description", "speaker_names", "year", "event_name"],
  sortable_attributes: ["title", "date"],
  filterable_attributes: ["year", "event_id"],
})

Please do not hesitate to send us your feedback.

Cephaz avatar Jan 05 '24 13:01 Cephaz