feat(ai_eff): AI Effort Prediction web changes#480
Open
SteveDala wants to merge 12 commits into
Open
Conversation
officialid130-13e13
approved these changes
May 1, 2026
officialid130-13e13
left a comment
There was a problem hiding this comment.
Thanks for wiring the FE to the new FastAPI/Sidekiq flow. I walked through the changes and the integration points look clean.
add allow effort prediction toggle to unit details
adds polling on prediction run with UI progress notification
Development
feat(ai_eff): change burndown to use predicted effort
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background and Context
Currently, the task definition object contained a
weightingfield which, when populated, assisted students in understanding how much of their unit they had completed by finishing the task. This measure is implemented in a visualisation called the Progress Burndown Chart:Unfortunately, weighting is not always filled out accurately or at all by tutors when creating task definitions. This leads to the chart feeling bad for students by way of inconsistency; sometimes submitting a Pass task reduces this Burndown chart by the same amount that a Distinction task does, even if much more effort was put into the distinction task.
The AI effort prediction feature aims to solve this task effort evaluation with an intelligent regressor trained on data from previous Task Definitions in OnTrack.
Description
This pull request introduces the necessary front-end changes to introduce intelligent effort prediction of tasks to OnTrack.
weightingfield throughout the repo toestimated_hoursto give meaning to the integer value in the task definitionTaskDefinitionEffortComponentcomponent to the Task Definition editor along with the required Typescript logic to run a prediction, get the value from the Task Definition object, and allow manual setting of the fieldpredicted_effortvalue stored in the Rails app and the API URL for sending prediction job requests to Sidekiqsrc/app/api/models/project.ts) topredicted_effortfromweightingDependencies
Depends on the changes to the API in doubtfire-api PR95. Successful testing depends on the ML Service defined in doubtfire-deploy PR37.
Type of change
How Has This Been Tested?
TODOTesting Checklist:
Checklist:
I have requested a review from @macite and @jakerenzella on the Pull Request