Closed andy1li closed 23 hours ago
The changes involve modifications to the activeCourse
getter and handleClicked
method in the CourseOverviewResumeTrackButtonComponent
class located in app/components/track-page/resume-track-button.ts
. The activeCourse
getter now filters the user's repositories based on course
and language
, ensuring that not all stages are complete. The handleClicked
method is updated to include an options object with queryParams
in the transitionTo
call of the router
service. Additionally, new acceptance tests are introduced for the track page functionality, and properties are added to the page object for enhanced interaction capabilities.
File Path | Change Summary |
---|---|
app/components/track-page/resume-track-button.ts | Updated activeCourse getter logic and modified handleClicked() to include queryParams in transitionTo . |
tests/acceptance/track-page/resume-track-test.js | Introduced new acceptance tests for the "resume track" button based on user authentication and course progress. |
tests/acceptance/track-page/view-track-test.js | Updated module name for acceptance tests from Acceptance | view-track to Acceptance | track-page | view-track . |
tests/pages/track-page.js | Added clickOnResumeTrackButton and hasResumeTrackButton properties to enhance interaction capabilities. |
sequenceDiagram
participant User
participant Component
participant Router
User->>Component: Clicks Resume Track Button
Component->>Router: transitionTo(courseRoute, { queryParams: { track: languageSlug } })
Router-->>Component: Route updated with query parameters
π° "In the meadow, a button was pressed,
With a click, new paths were blessed.
Query params now dance in the air,
A track for the journey, a route to share!
Hops of joy in the code we see,
A better way to roam, so wild and free!" πΌ
CourseOverviewResumeTrackButtonComponent
, relating to user interface and experience.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Changes will increase total bundle size by 1.82kB (0.01%) :arrow_up:. This is within the configured threshold :white_check_mark:
ββ1 filesβ Β±0ββββ1 suitesβ Β±0βββ6m 30s β±οΈ +39s 587 tests +3ββ547 β +3ββ40 π€ Β±0ββ0 β Β±0β 602 runsβ +3ββ562 β +3ββ40 π€ Β±0ββ0 β Β±0β
Results for commit be1965af.βΒ± Comparison against base commit 55acbaff.
:recycle: This comment has been updated with latest results.
Attention: Patch coverage is 66.66667%
with 1 line
in your changes missing coverage. Please review.
:white_check_mark: All tests successful. No failed tests found.
Files with missing lines | Patch % | Lines |
---|---|---|
app/components/track-page/resume-track-button.ts | 66.66% | 0 Missing and 1 partial :warning: |
:loudspeaker: Thoughts on this report? Let us know!
@andy1li let's add a test for this? This is a pretty common user flow, so I think it's worth adding a test to cover this.
Checklist:
[percy]
in the message to trigger)Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Tests