-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Instructed PL Sections to My PL page (#57947)
* set up framework * attempt to pull in section data * add skip link to self-paced section on LandingPage.jsx * add updated PL section to TeacherHomepage.jsx * update comment * update icon * add unit test to TeacherHomepageTest.js * replace div tag with section tag to fix spacing on online pl courses * fix redux to get sections * update strings to reflect kelbys skip link style on my pl page * remove unnecessary changes * setup strings on teacher dashboard * increase permission access * redux get coteacherInvite * add Create Section component * set up new component and fix styles for pl sections table * add instructors tab * update storybook and participant type column formatter * fix weird spacing for sections * remove blank lines * remove banner margin bottom inline style * update strings to match Figma * add unit tests for showing right tabs * remove pl specific tests on TeacherSections since we no longer render there * update ui test behaviors * remove unused parameter --------- Co-authored-by: Kelby Hawn <9256643+kelbyhawn@users.noreply.github.com>
- Loading branch information
1 parent
1edba41
commit 771e1ea
Showing
13 changed files
with
749 additions
and
179 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: 19 additions & 8 deletions
27
apps/src/sites/studio/pages/pd/professional_learning_landing/index.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 |
---|---|---|
@@ -1,25 +1,36 @@ | ||
import LandingPage from '@cdo/apps/code-studio/pd/professional_learning_landing/LandingPage'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import {Provider} from 'react-redux'; | ||
import {getStore} from '@cdo/apps/redux'; | ||
import analyticsReporter from '@cdo/apps/lib/util/AnalyticsReporter'; | ||
import getScriptData from '@cdo/apps/util/getScriptData'; | ||
import {EVENTS} from '@cdo/apps/lib/util/AnalyticsConstants'; | ||
|
||
// Execute after page has fully loaded so the Amplitude event only fires on full page load | ||
$(() => { | ||
const store = getStore(); | ||
|
||
analyticsReporter.sendEvent(EVENTS.MY_PL_PAGE_VISITED); | ||
|
||
const landingPageData = getScriptData('landingPageData'); | ||
|
||
ReactDOM.render( | ||
<LandingPage | ||
lastWorkshopSurveyUrl={landingPageData['last_workshop_survey_url']} | ||
lastWorkshopSurveyCourse={landingPageData['last_workshop_survey_course']} | ||
deeperLearningCourseData={landingPageData['summarized_plc_enrollments']} | ||
currentYearApplicationId={landingPageData['current_year_application_id']} | ||
workshopsAsParticipant={landingPageData['workshops_as_participant']} | ||
plCoursesStarted={landingPageData['pl_courses_started']} | ||
/>, | ||
<Provider store={store}> | ||
<LandingPage | ||
lastWorkshopSurveyUrl={landingPageData['last_workshop_survey_url']} | ||
lastWorkshopSurveyCourse={ | ||
landingPageData['last_workshop_survey_course'] | ||
} | ||
deeperLearningCourseData={landingPageData['summarized_plc_enrollments']} | ||
currentYearApplicationId={ | ||
landingPageData['current_year_application_id'] | ||
} | ||
workshopsAsParticipant={landingPageData['workshops_as_participant']} | ||
plCoursesStarted={landingPageData['pl_courses_started']} | ||
userPermissions={landingPageData['user_permissions']} | ||
/> | ||
</Provider>, | ||
document.getElementById('pl-landing-page-container') | ||
); | ||
}); |
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
Oops, something went wrong.