feat(courses): implement course archiving feature with tabbed interfa…#533
Open
MaxTekpa494 wants to merge 2 commits into
Open
feat(courses): implement course archiving feature with tabbed interfa…#533MaxTekpa494 wants to merge 2 commits into
MaxTekpa494 wants to merge 2 commits into
Conversation
…ce and update related components #268
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.
This pull request introduces a comprehensive course archiving feature, allowing users to archive and unarchive their own course memberships. The changes span both frontend and backend, adding UI controls for archiving, updating data models and APIs, and ensuring the archived state is respected throughout the course listing and management experience.
Frontend: Course Archiving UI and Logic
courses.page.htmlfor switching between current and archived courses, with logic to load the appropriate list based on the selected tab. [1] F11e9fb0L90R90, [2]CourseListComponentandCourseItemComponentto support an archive/unarchive button, emitting events to trigger archiving actions. [1] [2] [3] [4]CoursesPagewith new methods for tab switching and archiving, and a refactoredloadCoursesmethod to respect the archived filter. [1] [2]Backend: API and Model Enhancements
CourseMember,CourseFilters, DTOs, and entities) to include anarchivedboolean field, and updated filters and endpoints to support querying and updating this state. [1] [2] [3] [4] [5]PATCH /courses/:courseId/members/me) to allow users to archive/unarchive their own membership, with corresponding service and provider logic. [1] [2] [3] [4] [5]Other Improvements
courses.page.ts. [1] [2]Frontend: Archiving UI & Logic
courses.page.htmlandcourses.page.ts. [1] F11e9fb0L90R90, [2]CourseItemComponent, propagating events throughCourseListComponentto parent page. [1] [2] [3] [4]Backend: API and Model Enhancements
CourseMember,CourseFilters, DTOs, and entities) to support thearchivedproperty and filtering. [1] [2] [3] [4] [5]Other
courses.page.ts. [1] [2]