Comparisons

Objective:

Enable users to add listings to a comparison list by clicking on the scale icon from the list of listings.


Requirements:

  1. Icon Implementation:

    • Add a scale icon to each listing card in the list view.

    • Place the icon prominently in the top-right corner of each card.

  2. Functionality:

    • Default State: The scale icon appears grayed out when the listing is not added to the comparison list.

    • Active State: Highlight the scale icon (e.g., change to blue or green) when the listing is added to the comparison list.

  3. Hover/Tooltip:

    • Show a tooltip on hover:

      • Default: "Add to Comparison"

      • Active: "Remove from Comparison"

  4. Click Interaction:

    • Clicking the scale icon toggles the listing's inclusion in the comparison list:

      • Add the listing to the comparison list and update the icon to the active state.

      • Remove the listing from the comparison list if already added and revert the icon to the default state.

  5. Comparison Limit:

    • Restrict the comparison to 6 listings maximum.

    • If the user tries to add more than 6 listings, display a toast or modal: "You can only compare up to 6 listings."

  6. UI Integration:

    • Update the floating comparison bar to reflect the count of selected listings dynamically as users add or remove listings.

  7. Visual Feedback:

    • Provide a quick animation (e.g., a scale icon bounce or color fade) when adding/removing a listing to/from the comparison list.

  8. Data Handling:

    • Maintain a local/session storage mechanism to track the selected listings.

    • Sync with the comparison page so users can proceed to view the selected listings.

  9. Testing:

    • Ensure the feature works across all devices, screen sizes, and browsers.

    • Verify that the comparison count updates correctly in the floating bar.

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
💡

Feature Request

ETA
Dec 23, 2024
Date

Almost 2 years ago

Author

Kirill Gorokhov

Subscribe to request

Get notified by email when there are changes.