-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Fix part of #18384: Reusable carousel component for learner dashboard redesign #20306
Fix part of #18384: Reusable carousel component for learner dashboard redesign #20306
Conversation
Assigning @Nik-09 for the first pass review of this PR. Thanks! |
Hi @amyyeung17, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 4 days, it will be automatically closed so that others can take up the issue. |
Sorry @amyyeung17 for the delay. I will take a look tomorrow morning. Thank you |
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.
Thank you @amyyeung17 for the PR, I have added a few comments, PTAL.
Also sorry for the delayed review.
Thanks
@@ -41,6 +41,7 @@ export class LearnerTopicSummaryTileComponent implements OnInit { | |||
thumbnailBgColor!: string; | |||
openInNewWindow = false; | |||
@Input() redesignFeatureFlag!: boolean; | |||
@Input() last!: boolean; |
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.
This is a very generic name, can you please help me to understand what does this mean?
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.
Done. This is temporarily used for styling the last card; I haven't been able to figure out how to do this with only CSS.
@@ -34,6 +34,7 @@ import {StoryNode} from 'domain/story/story-node.model'; | |||
export class LessonCardComponent implements OnInit { | |||
@Input() story!: StorySummary | LearnerExplorationSummary | CollectionSummary; | |||
@Input() topic!: string; | |||
@Input() last!: boolean; |
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.
Same as prev comment
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.
Done
import {downgradeComponent} from '@angular/upgrade/static'; | ||
|
||
@Component({ | ||
selector: 'card-display', |
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.
Can we make the selector name oppia-card-display
to make the component consistent throughout the codebase?
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.
Done
Hi @amyyeung17 any update on this? |
@Nik-09 Hi, sorry for the delay. My computer's OS recently updated and somehow broke my setup. The program is unable to detect Python 2 installed in my computer, despite pyenv stating otherwise. It runs fine in Docker. Unfortunately, I won't be able to push anything until this is resolved on my end. |
Hi @amyyeung17 Sorry to hear this, feel free to create a GitHub discussion if you need any help from the community regarding the setup. |
@Nik-09 Hi, sorry for the delay. It took me some time to identify the cause of the issue, which was related to pyenv and Xcode. Thanks for your patience! |
Thanks for the update, feel free to assign me once this PR is ready for review. |
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.
Thank you @amyyeung17; LGTM
Hi @amyyeung17, this PR is ready to be merged. Please address any remaining comments prior to merging, and feel free to ask someone to merge your PR once the CI checks pass and you're happy with it. Thanks! |
…board redesign (oppia#20306) * Added nav Update with newest commits from PR 20185 * Updated margins * Corrected shifts for card nav * Updated shift * Fixed nav spacing * Added translation key * Replaced explicit width with var cardWidth * fixed margins and import errors * Updated spacing between sections * Changed width to include margin and added test cases * Added card-display tests * Refactored logic * Refactored nextCard() * Reverted testing statements to default * Removed comments * Updated TODO comments * Replaced headings with i18n keys,font-awesome for nav buttons; added comments * Renamed folder * Updated view more button * Updated styling for view more button * Fixed capitalization of description and community text for cards * Fixed lint errors, added copyright * Updated lesson card test case * Renamed variable * Changed selector * Updated variable names * Removed extra file from prev commit
Overview
This PR addresses part of the 3rd breakpoint of #18384, adding a new reusable carousel component.
Includes 3 new files:
Additional notes:
Essential Checklist
Please follow the instructions for making a code change.
Proof that changes are correct
final-carousel.mov