Class: Www::InfraredHeatingPanelsFiltersComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/www/infrared_heating_panels_filters_component.rb

Overview

Www::InfraredHeatingPanelsFiltersComponent

Client-side filter bar for the infrared heating panel product grid.
Filtering is handled entirely in the browser via a Stimulus controller
that shows/hides product cards and collection groups.

See Also:

  • - Stimulus controller

Constant Summary collapse

FINISH_OPTIONS =

Available finish options.

[
  ['All Finishes', ''],
  ['White (Flat)', 'FLX-WHT'],
  ['White (Glass)', 'GLS-WHT'],
  ['Black (Glass)', 'GLS-BLK'],
  ['Mirror', 'GLS-MIR']
].freeze
COLLECTION_OPTIONS =

Available collection options.

[
  ['All Collections', ''],
  ['Ember Flex', 'FLX'],
  ['Ember Glass', 'GLS'],
  ['Ember Mirror', 'MIR']
].freeze
ROOM_SIZE_OPTIONS =

Available room size options.

[
  ['All Room Sizes', ''],
  ['300W — Small Bathroom / Powder Room', '300'],
  ['500W — Bedroom / Home Office', '500'],
  ['600W — Living Room / Large Bedroom', '600'],
  ['700W — Open Kitchen / Studio', '700'],
  ['800W — Large Room / Open Space', '800']
].freeze
SORT_OPTIONS =

Available sort options.

[
  ['Collection', ''],
  ['Price: Low to High', 'price-asc'],
  ['Price: High to Low', 'price-desc'],
  ['Name A-Z', 'name-asc']
].freeze

Method Summary

Methods inherited from ApplicationComponent

#cms_link, #fetch_or_fallback, #image_asset_tag, #image_tag, #number_to_currency, #number_with_delimiter, #post_path, #post_url, #strip_tags