-
Notifications
You must be signed in to change notification settings - Fork 114
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
Add UI features and algorithm to support label inference #762
Conversation
GabrielKS
commented
Jun 28, 2021
- Phone now receives and processes label inference data structure from the server to determine what inferences to show the user
- Makes labels red if they have no value, yellow if they are inferred, and green if they are user input
- Adds a "verify" button that turns yellow labels green
+ Adds basic client-side processing of label inference data structure - Minor restructuring of infinite_scroll_list.js to facilitate this - Still need to write full client-side inference algorithm + Displays inferred labels in yellow and blank labels in red
+ Moves the "more" button on trip cards to the top right corner + Adds a verify button beneath it that turns yellow labels green + Fixes a bug that mis-positioned trip start and end icons if labels were blank + Like the previous commit, does not affect the Diary page
+ This algorithm takes the list of label tuples and probabilities from the server and chooses which yellow labels to show the user, taking into account what the user has already begun to enter. + Extensively documented in the comments. Testing done: Tested various cases using the more extensive server-side placeholder label inference "algorithm" recently committed.
@GabrielKS can you add some screenshots or animated gifs here to make it easier to review without pulling the changes and running them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty straightforward; I will merge after you upload some screenshots/animated gifs
</div> | ||
</div> | ||
<div ng-click="verifyTrip($event, trip)" class="col-10 diary-checkmark-container center-vert center-horiz"> | ||
<i ng-class="trip.verifiability" class="ion-checkmark-round"></i> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, please continue using properties instead of functions here. Using functions to retrieve the ng-class
, although it works, plays havoc with the caching and the performance really suffers.
Please submit the PR to fix the confirmation check for Trip 1 after I merge this. |