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

[front] feat: replace criteria sliders by buttons on mobile #1940

Open
GresilleSiffle opened this issue Mar 28, 2024 · 0 comments
Open

[front] feat: replace criteria sliders by buttons on mobile #1940

GresilleSiffle opened this issue Mar 28, 2024 · 0 comments
Assignees
Labels
Frontend Front-end code of Tournesol

Comments

@GresilleSiffle
Copy link
Collaborator

GresilleSiffle commented Mar 28, 2024

This is a draft specification of the new comparison interface for mobile.

The sliders should be replaced by buttons, and the navigation between criteria should be possible by swiping up or down.

Some questions are still pending like:

  • what happens when the last criterion is submitted?
  • should we have a way to display all criteria at the same time?
  • can the main criterion be skipped?

specifications (draft)

When a new comparison is loaded

(a) Display the main criterion of the poll.

  • The main criterion cannot be skipped by swiping up or swiping down

On one hand it eases the development and allows to not submit comparisons that don't include the main criterion. On the other hand, it forces the contributor to evaluate the main criterion before all others.

  • 5 buttons are displayed on a single row: (++), (+), (=), (+) and (++), see the capture 1 in Layout

(b) A click on a button triggers the slide animation and display the next criterion.

  • the selected value is sent to the API
  • the scale of possible scores is sent to the API

(c) A swipe up triggers the slide animation and display the next criterion

  • if no value has been selected, the API is not called

(d) A swipe down triggers the slide animation and display the previous criterion

  • if no value has been selected, the API is not called
  • if the previously displayed criterion was the main criterion nothing happens (for now)

(e) (question?) A swipe up or a click on the last non-optional criterion displays the "continue or change video" UI?

This may not be useful if the UI always displays buttons to load new videos. In this case, the transition from optional criteria to non-optional criteria will be seamless. This distinction between non-optional and optional doesn't look very appropriate on mobile.

  • 3 buttons are displayed on a single row: (reload left), (continue), (reload right)
  • a click on the continue button display the next criterion
  • a click on a reload button should suggest a new video in the related entity selector

(f) For the last criterion a click on a button should

  • automatically suggest a new comparison? how?
  • display the "reload left or summary or reload right" UI
  • display a summary of the comparison?
  • something else?

Layout

Capture 1 (the button should be more visible, with a coloured background)

capture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Front-end code of Tournesol
Projects
Status: Under review
Development

No branches or pull requests

1 participant