ineed this done if you can doit for me i tryed using ai agent and nohelp and i tried manually and either no way i can make it happin am having some issue with this is it possible you could help me out AIRBNB-STYLE CATEGORY + SUBCATEGORY DISCOVERY SLIDERS
Goal:
Implement a two-level discovery system on Home similar to Airbnb categories.
The user should first browse parent categories horizontally.
When a parent category is selected, a second horizontal slider containing only matching subcategories appears directly below it.
This must feel smooth, premium and mobile-first.
LEVEL 1 — MAIN CATEGORY SLIDER
Create a horizontally scrollable category carousel.
Examples:
Stay
Property
Vacation & Experiences
Water & Adventure
Transport & Mobility
Food & Dining
Wellness
Family & Leisure
Requirements:
- horizontal scrolling enabled
- swipe gestures enabled
- category chips fully tappable
- no touch interception
- premium pill design
- soft shadow
- rounded corners
- smooth scrolling
When a category chip is pressed:
Set:
selected_category_
on:
Group State Holder
Value:
Current HorizontalListItem’s listing_category option value
NOT: - ElementParent
- get_group_data
- text values
Then: - clear selected_subcategory_
- refresh listings
- show subcategory slider
SELECTED CATEGORY VISUAL STATE
Selected category should visually change:
- slightly smaller scale
- darker background
- stronger shadow
- selected border or highlight
- premium active state
Example:
Before:
Stay | Water | Transport
After selecting Stay:
[STAY ACTIVE]
Water
Transport
LEVEL 2 — SUBCATEGORY SLIDER
Subcategory slider is hidden by default.
Show only when:
selected_category_ is not empty
Position:
Directly below category slider.
Data source:
listing_subcategory
Filter:
listing_subcategory.parent_category =
selected_category_
Examples:
If selected category:
Stay
Show:
Hotels
Resorts
Villas
Apartments
Holiday Homes
Unique Stays
If selected category:
Water & Adventure
Show:
Jet Skis
Boats
Boat Tours
Fishing Trips
Water Sports
If selected category:
Transport & Mobility
Show:
Car Rentals
Motorbikes
RV & Campers
Bicycles
E-Bikes
SUBCATEGORY INTERACTION
When a subcategory chip is pressed:
Set:
selected_subcategory_
on:
Group State Holder
Value:
Current HorizontalListItem’s listing_subcategory option value
Then:
refresh listings.
Selected subcategory visual state:
- darker style
- active shadow
- selected border
LISTING FILTERING
Listings VerticalList should filter using:
selected_category_
AND
selected_subcategory_
No duplicate states.
Use existing State Holder only.
CRITICAL TECHNICAL REQUIREMENT
The following elements MUST be direct children of Home root:
- Search Entry Pill
- Category Slider
- Subcategory Slider
- State Holder
- Guest Popup
- Date Popup
They MUST NOT be children of:
VerticalList Listings Vertical List
Reason:
The VerticalList scroll container captures gestures and causes: - frozen category slider
- category taps not firing
- subcategory slider not appearing
- horizontal scrolling not working
VerticalList should contain only: - Listing Item Template
KNOWN ISSUE TO RESOLVE
Current behaviour:
- category slider appears
- category slider does not scroll
- category chips cannot be pressed
- selected_category_ does not update
- subcategory slider never appears
- search feels frozen
Expected behaviour:
User swipes categories.
User taps:
Stay
Result:
Stay becomes active.
Subcategory slider appears:
Hotels
Resorts
Villas
Apartments
User taps:
Villas
Listings refresh automatically.
DO NOT MODIFY
Do not modify:
- bookings
- payments
- Stripe
- commissions
- provider system
- listing database
- listing fields
- search ranking
Only modify: - category carousel
- subcategory carousel
- states
- filters
- hierarchy
- workflows required for category selection