Skip to content

Conversation

@ishika021
Copy link

This pull request refactors the Task Definition view in the OnTrack frontend to improve separation of concerns while maintaining existing UI behaviour.

Previously, the task definition state directly reused the inbox template without a clear boundary between inbox logic and definition-based task exploration. This update introduces a dedicated controller and template for the task definition state, while continuing to reuse the inbox UI to avoid duplication.

The task data source has been switched to a definition-specific query, allowing tasks to be explored and filtered by task definition rather than individual student submissions. Safe initialisation has been added to prevent undefined state issues when unit data loads asynchronously.

Key Changes

  • Introduced a dedicated units/tasks/definition state controller
  • Reused inbox.tpl.html via a definition-owned template
  • Switched task loading to queryTasksForTaskExplorer
  • Enabled task definition mode using a scoped flag
  • Safely initialised task definition filters
  • No backend changes required
Screenshot (169) Screenshot (171)

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.

1 participant