Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically set max value for UI scene number selector #1167

Open
sidharth-sundar opened this issue Aug 17, 2022 · 0 comments
Open

Dynamically set max value for UI scene number selector #1167

sidharth-sundar opened this issue Aug 17, 2022 · 0 comments

Comments

@sidharth-sundar
Copy link
Collaborator

Currently, our UI has a box for accepting scene number within a curriculum, and is configured to accept any integer input and return either the associated situation information, or pass an error if no such information is available. However, the arrow buttons on the right side of the box only correctly increment and decrement the value to a minimum of 1 and a maximum of 100.

image

If manually entered into the box, the UI can accept scene numbers greater than 100 and serve the associated data. However, we would like for the range the arrows cover to match the number of available situations to display for any given curriculum. The task here is two-fold:

  1. Configure the maximum scene number value to match the number of available situations for any specific train/test configuration
  2. When we generate new data and the front end polls for changes, update the scene number span to match the newly available data

To get started, the specific UI element to fix can be found at angular_viewer/adam_angular_demo/src/app/components/selector-parent/selector-parent.component.html:

  <div class="outline box">
    <div class="number">
      Select Scene Number
      <input
        type="number"
        name="num"
        min="1"
        max="100"
        class="form-control input"
        aria-labelledby="inputSceneNum"
        name="selectSceneNumber"
        [(ngModel)]="selectedSceneNum"
      />
    </div>
  </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant