Skip to content

feat(ai_eff): AI Effort Prediction web changes#480

Open
SteveDala wants to merge 12 commits into
thoth-tech:Feature/AI-Suggestionfrom
SteveDala:Feature/AI-Suggestion
Open

feat(ai_eff): AI Effort Prediction web changes#480
SteveDala wants to merge 12 commits into
thoth-tech:Feature/AI-Suggestionfrom
SteveDala:Feature/AI-Suggestion

Conversation

@SteveDala
Copy link
Copy Markdown
Collaborator

@SteveDala SteveDala commented Apr 30, 2026

Background and Context

Currently, the task definition object contained a weighting field 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:

image

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.

  • changes the weighting field throughout the repo to estimated_hours to give meaning to the integer value in the task definition
  • introduces the TaskDefinitionEffortComponent component 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 field
image
  • adds references to the predicted_effort value stored in the Rails app and the API URL for sending prediction job requests to Sidekiq
  • changes the reference variable used by the Task Burndown Chart logic (src/app/api/models/project.ts) to predicted_effort from weighting
  • adds a (currently unfunctioning) toggle to the Unit Details page to allow predictions at the unit level

Dependencies

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

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

TODO

Testing Checklist:

  • Tested in latest Chrome
  • Tested in latest Safari
  • Tested in latest Firefox

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have requested a review from @macite and @jakerenzella on the Pull Request

Copy link
Copy Markdown

@jtalev jtalev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, good start!

Copy link
Copy Markdown

@officialid130-13e13 officialid130-13e13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for wiring the FE to the new FastAPI/Sidekiq flow. I walked through the changes and the integration points look clean.

@SteveDala SteveDala changed the title feat(ai_eff): web changes feat(ai_eff): AI Effort Prediction web changes May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants