-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SelfPacedProgressTable to My PL LandingPage component (#57869)
* add SelfPacedProgressTable component to LandingPage.jsx * add overflow hidden to progress bar * update heading string * update heading string case * create a constants.js file and update storybook * add section margin updates * add margin bottom to getting started banner * update landingPageTest.js note: this is failing, but I need to commit in case I look at this on my laptop * fix failing tests
- Loading branch information
Showing
8 changed files
with
66 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
27 changes: 2 additions & 25 deletions
27
apps/src/code-studio/pd/professional_learning_landing/SelfPacedProgressTable.story.jsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,11 @@ | ||
import React from 'react'; | ||
import SelfPacedProgressTable from './SelfPacedProgressTable'; | ||
import {selfPacedCourseConstants} from './constants'; | ||
|
||
export default { | ||
component: SelfPacedProgressTable, | ||
}; | ||
|
||
const plCoursesStarted = [ | ||
{ | ||
name: '#', | ||
title: 'Course is in progress', | ||
current_lesson_name: 'Current lesson name', | ||
percent_completed: 10, | ||
finish_url: '', | ||
}, | ||
{ | ||
name: '#', | ||
title: 'Course is in progress and has unit certificates', | ||
current_lesson_name: 'Current lesson name', | ||
percent_completed: 45, | ||
finish_url: '#', | ||
}, | ||
{ | ||
name: '#', | ||
title: 'Course is complete', | ||
current_lesson_name: 'Current lesson name', | ||
percent_completed: 100, | ||
finish_url: '#', | ||
}, | ||
]; | ||
|
||
export const Basic = () => { | ||
return <SelfPacedProgressTable plCoursesStarted={plCoursesStarted} />; | ||
return <SelfPacedProgressTable plCoursesStarted={selfPacedCourseConstants} />; | ||
}; |
23 changes: 23 additions & 0 deletions
23
apps/src/code-studio/pd/professional_learning_landing/constants.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const selfPacedCourseConstants = [ | ||
{ | ||
name: '#', | ||
title: 'Course is in progress', | ||
current_lesson_name: 'Current lesson name', | ||
percent_completed: 10, | ||
finish_url: '', | ||
}, | ||
{ | ||
name: '#', | ||
title: 'Course is in progress and has unit certificates', | ||
current_lesson_name: 'Current lesson name', | ||
percent_completed: 45, | ||
finish_url: '#', | ||
}, | ||
{ | ||
name: '#', | ||
title: 'Course is complete', | ||
current_lesson_name: 'Current lesson name', | ||
percent_completed: 100, | ||
finish_url: '#', | ||
}, | ||
]; |
This file contains 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
This file contains 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
This file contains 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