OneBusAway / onebusaway-deep-links

A web app with a URL pattern designed for deep linking in native apps
9 stars 5 forks source link

Surveys: Improve UX for survey visibility options #217

Closed amrhossamdev closed 1 month ago

amrhossamdev commented 1 month ago

Fixes: #177 and #216

Description

This PR introduces enhanced logic for the visibility of surveys based on their configuration options.

Changes Made

Visibility Logic:

Conditional checks were added for the visibility of the stop and route lists based on the show_on_stops property of the survey.

The following visibility states have been implemented:

Updated UI Components:

Disabled route and stops list

  1. Implemented functionality to disable the route and stops lists based on the show_on_stops property of the survey.
  2. When the show_on_stops checkbox is unchecked, both the route and stops lists are disabled and visually indicated as such.
amrhossamdev commented 1 month ago

nice work! And good work with Stimulus.js

Thank u!