- Notifications
You must be signed in to change notification settings - Fork 26
refactor: remove step switcher component and references #3231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Bundle ReportChanges will decrease total bundle size by 239.23kB (-0.61%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: client-array-pushAssets Changed:
|
Test Results674 tests - 3 623 ✅ - 3 9m 5s ⏱️ -7s Results for commit e847fcf. ± Comparison against base commit 3d17865. This pull request removes 3 tests.♻️ This comment has been updated with latest results. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Remove the StepSwitcherContainer component and its logic from the codebase due to redesign or simplification of navigation controls. Also remove its use from the navigation controls template to clean up the UI and improve code maintainability.
Rename component NavigationControls to TopRightSection to better reflect its purpose within the course page header. Update all references, including template invocation, class name, test selectors, and type registrations to maintain consistency. This improves code clarity and aligns naming with component functionality.
Remove the StepProgressIndicator banner for steps that are neither complete nor in progress, as users should not focus on this area during such steps. This simplifies the UI and avoids unnecessary distraction.
Move the mobile sidebar toggle button to the main header section for better accessibility and visual hierarchy. Remove redundant mobile sidebar button from the top-right section and adjust flex layouts for cleaner alignment and spacing. Update padding in course template for consistent vertical spacing. Remove unused onMobileSidebarButtonClick arg from top-right section component. These changes enhance usability and streamline the header UI.
813b835 to 79ef162 Compare Remove unused clickable and text selectors from course-page header component to simplify the test code. Delete deprecated acceptance tests covering beta and free course labels that are no longer relevant, reducing test maintenance overhead and improving suite focus.
Clean up the view-course-stages-test by removing the unused import of FakeDateService. This reduces clutter and improves code maintainability without affecting test functionality.
| <span class="font-mono text-base sm:text-lg xl:text-xl"> | ||
| <span class="text-gray-300 dark:text-gray-700">#</span><span | ||
| class="font-mono text-gray-400 dark:text-gray-600 uppercase" | ||
| >{{this.currentStepAsCourseStageStep.courseStage.slug}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Template Accesses Undefined Getter
The main-section.hbs template references this.currentStepAsCourseStageStep, but the main-section component doesn't have a backing TypeScript file defining this getter. This logic was moved to TopRightSection.ts during the refactor, which will cause runtime errors when the template tries to access its properties.
Remove the StepSwitcherContainer component and its logic from the codebase
due to redesign or simplification of navigation controls. Also remove its use
from the navigation controls template to clean up the UI and improve code maintainability.
Note
Replaces header navigation controls with a new TopRightSection, removes the step switcher component, updates header layout/spacings, and adjusts tests accordingly.
CoursePage::Header::TopRightSection(.hbs,.ts) with dark mode toggle, billing badge, and close button; updates registry to'CoursePage::Header::TopRightSection'.CoursePage::Header::NavigationControlsandCoursePage::StepSwitcherContainer(and related args likeonMobileSidebarButtonClickfrom the header controls component).CoursePage::Header::MainSection): restructures layout, adds mobile menu button, showsCoursePage::StepStatusPillon large screens only, and slots inTopRightSection(addsclass="flex-shrink-0").app/templates/course.hbs): adjusts header padding (pb-6→pb-2).tests/pages/components/course-page/header.jsto drop selectors for next/previous step and progress text; retains billing badges and close button.Written by Cursor Bugbot for commit e847fcf. This will update automatically on new commits. Configure here.