Migration/groups.coffee #431
Open
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.
Description
This PR migrates the student Groups List state from legacy CoffeeScript/AngularJS to TypeScript/Angular. This move completes the transition of the student-facing group management interface to the modern Angular framework.
The state has been updated to sit under the
projects2parent state, inheriting the project data via the standardproject$observable pattern used across the repository. This resolved initialTypeErrorissues by ensuring that the component only renders once the unit data has been successfully resolved.Key Changes:
projects/states/groups/groups.coffeeandgroups.tpl.html.projects/groupsstate indoubtfire.states.tsas a child ofprojects2.ProjectGroupsComponentand its template to handle theproject$observable resolve, matching the architecture of theProjectDashboardComponent.doubtfire.projects.states.groupsmodule from the AngularJS bootstrap process.Fixes # (migration)
Type of change
How Has This Been Tested?
The migration was verified by testing the end-to-end workflow between Staff and Student roles:
#/projects2/:id/groups.Screenshots
Before Migration (AngularJS)
After Migration (Angular) - Groups Enabled
After Migration (Angular) - No Groups
Testing Checklist:
Checklist: