-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add extensions dark mode styles #2045
Conversation
WalkthroughThe recent changes significantly enhance the visual styling and usability of various application components, with a strong focus on improving dark mode support. Key updates involve refining text and border colors for better contrast and readability, alongside the introduction of TypeScript files for controllers and routes to enhance type safety. Collectively, these modifications foster a more cohesive user experience while preserving existing functionalities. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CoursePage
participant BaseStagesCompletedController
participant BaseStagesCompletedRoute
User->>CoursePage: Request to view course stages
CoursePage->>BaseStagesCompletedRoute: Navigate to stages completion
BaseStagesCompletedRoute->>BaseStagesCompletedController: Load model data
BaseStagesCompletedController-->>CoursePage: Return model data
CoursePage->>User: Display stages completion page
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (11)
- app/components/comment-form/tab-header.hbs (1 hunks)
- app/components/course-card.hbs (2 hunks)
- app/components/course-page/base-stages-completed-card.hbs (1 hunks)
- app/components/course-page/configure-extensions-modal.hbs (2 hunks)
- app/components/course-page/configure-extensions-modal/extension-card.hbs (1 hunks)
- app/components/course-page/step-list-item.hbs (1 hunks)
- app/components/tracks-page/track-card.hbs (1 hunks)
- app/components/vote-page/submit-course-extension-idea-card.hbs (1 hunks)
- app/controllers/course/base-stages-completed.ts (1 hunks)
- app/routes/course/base-stages-completed.ts (1 hunks)
- app/templates/course/base-stages-completed.hbs (1 hunks)
Files skipped from review due to trivial changes (6)
- app/components/comment-form/tab-header.hbs
- app/components/course-card.hbs
- app/components/course-page/configure-extensions-modal.hbs
- app/components/course-page/step-list-item.hbs
- app/components/tracks-page/track-card.hbs
- app/templates/course/base-stages-completed.hbs
Additional comments not posted (10)
app/controllers/course/base-stages-completed.ts (2)
1-2
: Imports look good.The import statements are necessary and correctly imported.
4-6
: Class declaration looks good.The class
BaseStagesCompletedController
is well-defined and follows TypeScript conventions.app/routes/course/base-stages-completed.ts (2)
1-2
: Imports look good.The import statements are necessary and correctly imported.
4-6
: Class declaration looks good.The class
BaseStagesCompletedRoute
is well-defined and follows TypeScript conventions.app/components/vote-page/submit-course-extension-idea-card.hbs (1)
2-2
: Dark mode styling looks good.The updated class attributes enhance the styling for dark mode, improving visual accessibility and user experience.
app/components/course-page/configure-extensions-modal/extension-card.hbs (2)
2-3
: LGTM! The dark mode support is well-implemented.The conditional classes for dark mode styling are correctly applied to the outer
<div>
.
11-11
: LGTM! The dark mode support is well-implemented.The conditional classes for dark mode styling are correctly applied to the inner
<div>
.app/components/course-page/base-stages-completed-card.hbs (3)
3-3
: LGTM! The dark mode support is well-implemented.The conditional class for dark mode border styling is correctly applied to the header
<div>
.
5-5
: LGTM! The dark mode support is well-implemented.The conditional class for dark mode text styling is correctly applied to the header title
<span>
.
10-10
: LGTM! The dark mode support is well-implemented.The conditional class for dark mode styling is correctly applied to the content
<div>
.
Bundle ReportChanges will decrease total bundle size by 213 bytes ⬇️
|
The commit message could be: "Refactor extension-card.hbs: fix formatting issue"
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- app/components/course-page/configure-extensions-modal/extension-card.hbs (1 hunks)
- app/components/course-page/course-completed-card.hbs (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- app/components/course-page/configure-extensions-modal/extension-card.hbs
Additional comments not posted (3)
app/components/course-page/course-completed-card.hbs (3)
3-3
: LGTM! Dark mode border color update.The addition of
dark:border-gray-800/60
improves the border color for dark mode.
5-5
: LGTM! Dark mode text color update.The addition of
dark:text-gray-50
improves the text color for dark mode.
9-9
: LGTM! Dark mode prose styling update.The addition of
dark:prose-invert
improves the prose styling for dark mode.
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
Additional details and impacted files📢 Thoughts on this report? Let us know! |
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (1)
public/images/social-icons/twitter-white.svg
is excluded by!**/*.svg
Files selected for processing (6)
- app/components/course-page/configure-github-integration-modal.hbs (1 hunks)
- app/components/course-page/configure-github-integration-modal/fix-github-app-installation-prompt.hbs (1 hunks)
- app/components/course-page/configure-github-integration-modal/step.hbs (1 hunks)
- app/components/course-page/share-progress-modal.hbs (1 hunks)
- app/components/course-page/share-progress-modal.ts (1 hunks)
- app/components/course-page/share-progress-modal/icon.ts (3 hunks)
Files skipped from review due to trivial changes (2)
- app/components/course-page/configure-github-integration-modal.hbs
- app/components/course-page/share-progress-modal.ts
Additional comments not posted (9)
app/components/course-page/configure-github-integration-modal/step.hbs (1)
3-3
: LGTM! Dark mode class added.The addition of the
dark:text-teal-500
class enhances the visual appearance of the title in dark mode.app/components/course-page/share-progress-modal.hbs (2)
2-2
: LGTM! Dark mode class added to the header.The addition of the
dark:text-gray-50
class improves the readability of the header text in dark mode.
9-9
: LGTM! Dark mode classes added to the Textarea component.The updates to the Textarea component, including the
dark:border-gray-800/60
,dark:placeholder-gray-700
,dark:bg-gray-950
, anddark:text-gray-50
classes, enhance the visual consistency and readability in dark mode.app/components/course-page/configure-github-integration-modal/fix-github-app-installation-prompt.hbs (2)
1-1
: LGTM! Dark mode classes added to the outer<div>
.The addition of the
dark:border-red-700/40
anddark:bg-red-950/40
classes improves the visibility of the warning message in dark mode.
4-4
: LGTM! Dark mode class added to the inner<div>
.The addition of the
dark:text-red-300
class enhances the readability of the warning message text in dark mode.app/components/course-page/share-progress-modal/icon.ts (4)
2-2
: Import statement for DarkModeService added.The import statement for
DarkModeService
has been correctly added.
7-7
: Import statement for twitterWhiteLogoImage added.The import statement for
twitterWhiteLogoImage
has been correctly added.
24-24
: New service declaration for DarkModeService.The
darkMode
service is correctly declared using the@service
decorator.
35-40
: Refactored method for selecting platform logos.The method for selecting platform logos has been refactored to use an object mapping approach. This improves readability and maintainability. Additionally, the method now conditionally selects the Twitter logo based on the dark mode status.
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- app/components/course-page/configure-github-integration-modal/fix-github-app-installation-prompt.hbs (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- app/components/course-page/configure-github-integration-modal/fix-github-app-installation-prompt.hbs
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- app/components/course-page/share-progress-modal.ts (1 hunks)
- tests/acceptance/course-page/share-progress-test.js (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- app/components/course-page/share-progress-modal.ts
Additional comments not posted (3)
tests/acceptance/course-page/share-progress-test.js (3)
71-73
: LGTM! The change toassert.contains
improves readability.The updated assertion method enhances readability and clarity.
77-79
: LGTM! The change toassert.contains
improves readability.The updated assertion method enhances readability and clarity.
85-87
: LGTM! The change toassert.contains
improves readability.The updated assertion method enhances readability and clarity.
Summary by CodeRabbit
New Features
Bug Fixes
Style