Skip to content
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

Release 0.23.0 #1724

Merged
merged 99 commits into from
Oct 22, 2024
Merged

Release 0.23.0 #1724

merged 99 commits into from
Oct 22, 2024

Conversation

odlbot
Copy link
Contributor

@odlbot odlbot commented Oct 22, 2024

Nathan Levesque

Jon Kafton

Chris Chudzicki

renovate[bot]

James Kachel

Shankar Ambady

Anastasia Beglova

Carey P Gumaer

shankar ambady

jonkafton and others added 30 commits September 19, 2024 14:17
* Next.js scaffold

* Supply env vars on process.env.NEXT_PUBLIC_

* Replace react-router hook with next/navigation

* MUI theme provider for Next.js

* Styled elements

* Restructuring to bring pages and components into ssr project

* Images and link fixes

* Set up prerendering with React Query and fetch Featured Courses carousel on server

* Head meta tags

* Main entrypoint. Include in yarn workspaces. API URL for local

* Add remaining homepage sections

* Move into frontends

* Lint fixes

* Routed drawer and updates for homepage resource drawer search triggers

* Move pages (conflict with Next.js Pages Router)

* Webpack configs for babel loader (import type) and ignore test files from build

* Typescript config, move common/urls

* Updates towards successful build

* Suspense boudary for header useSearchParam

* Provide origin on environment (cannot reference window)

* Update drawer hooks for next/navigation

* Unit listing page and dependencies

* Image fixes. ol-component compatibility updates

* Logo image fixes and footer image

* Search page

* Remove temp course-serach-utils

* Remove temp course-serach-utils

* Channel Page. Rewrite for image paths

* Move @mui/material-nextjs into ol-components

* Department listing page

* Topic listing page

* Terms page

* Privacy page

* Image paths

* Lockfile

* Migrates the dashboard pages

* Migrate learning path listing page

* Migrate learning path details page

* Prettier fixes

* Migrate test utils. Fixes for passing typechecks on test files (excluding React Router dependencies)

* Migrate the onboarding page

* Migrate program letter page

* Migrate error page

* Resolves issue with Server Components treated as Client Components (transpiler). Wraps library imports for use in Next.js. User lists detail page.

* Metadata utility

* Fetch learning resource for metadata when drawer is open

* Async and sync metadata utilities

* .env example file

* Preserve hero image aspect

* Put back SliderInput
Resolve linting errors for nextjs branch and introduce nextjs linting plugin
- Removes unnecessary Client Component wrappers and "use client" directives.

- Set `<Suspense />` boundaries to client render components that useSearchParams() around:
    - all of the Search page.
    - the Learning Resource drawer.
    - the dashboard carousels.
* Next.js Initial Migration (#1505)

* Next.js scaffold

* Supply env vars on process.env.NEXT_PUBLIC_

* Replace react-router hook with next/navigation

* MUI theme provider for Next.js

* Styled elements

* Restructuring to bring pages and components into ssr project

* Images and link fixes

* Set up prerendering with React Query and fetch Featured Courses carousel on server

* Head meta tags

* Main entrypoint. Include in yarn workspaces. API URL for local

* Add remaining homepage sections

* Move into frontends

* Lint fixes

* Routed drawer and updates for homepage resource drawer search triggers

* Move pages (conflict with Next.js Pages Router)

* Webpack configs for babel loader (import type) and ignore test files from build

* Typescript config, move common/urls

* Updates towards successful build

* Suspense boudary for header useSearchParam

* Provide origin on environment (cannot reference window)

* Update drawer hooks for next/navigation

* Unit listing page and dependencies

* Image fixes. ol-component compatibility updates

* Logo image fixes and footer image

* Search page

* Remove temp course-serach-utils

* Remove temp course-serach-utils

* Channel Page. Rewrite for image paths

* Move @mui/material-nextjs into ol-components

* Department listing page

* Topic listing page

* Terms page

* Privacy page

* Image paths

* Lockfile

* Migrates the dashboard pages

* Migrate learning path listing page

* Migrate learning path details page

* Prettier fixes

* Migrate test utils. Fixes for passing typechecks on test files (excluding React Router dependencies)

* Migrate the onboarding page

* Migrate program letter page

* Migrate error page

* Resolves issue with Server Components treated as Client Components (transpiler). Wraps library imports for use in Next.js. User lists detail page.

* Metadata utility

* Fetch learning resource for metadata when drawer is open

* Async and sync metadata utilities

* .env example file

* Preserve hero image aspect

* Put back SliderInput

* Fix linting on nextjs branch (#1509)

Resolve linting errors for nextjs branch and introduce nextjs linting plugin

* Fixes for successful build (#1516)

- Removes unnecessary Client Component wrappers and "use client" directives.

- Set `<Suspense />` boundaries to client render components that useSearchParams() around:
    - all of the Search page.
    - the Learning Resource drawer.
    - the dashboard carousels.

* Move Storybook root to ol-components

* Move GlobalStyles to ol-components

* Self contained images

* Storybook for Next.js

* Remove react-router addon. Upgrade Storybook addons

* Fix issue trying to resolve react-dom/test-utils. Storybook 8 migration script package updates

* Local image

* Replace react-router useLocation

* Images fixes. Copy images into ol-components. Embedly fallback

* Migrate routed drawer stories for @storybook/nextjs

* Next.js Initial Migration (#1505)

* Next.js scaffold

* Supply env vars on process.env.NEXT_PUBLIC_

* Replace react-router hook with next/navigation

* MUI theme provider for Next.js

* Styled elements

* Restructuring to bring pages and components into ssr project

* Images and link fixes

* Set up prerendering with React Query and fetch Featured Courses carousel on server

* Head meta tags

* Main entrypoint. Include in yarn workspaces. API URL for local

* Add remaining homepage sections

* Move into frontends

* Lint fixes

* Routed drawer and updates for homepage resource drawer search triggers

* Move pages (conflict with Next.js Pages Router)

* Webpack configs for babel loader (import type) and ignore test files from build

* Typescript config, move common/urls

* Updates towards successful build

* Suspense boudary for header useSearchParam

* Provide origin on environment (cannot reference window)

* Update drawer hooks for next/navigation

* Unit listing page and dependencies

* Image fixes. ol-component compatibility updates

* Logo image fixes and footer image

* Search page

* Remove temp course-serach-utils

* Remove temp course-serach-utils

* Channel Page. Rewrite for image paths

* Move @mui/material-nextjs into ol-components

* Department listing page

* Topic listing page

* Terms page

* Privacy page

* Image paths

* Lockfile

* Migrates the dashboard pages

* Migrate learning path listing page

* Migrate learning path details page

* Prettier fixes

* Migrate test utils. Fixes for passing typechecks on test files (excluding React Router dependencies)

* Migrate the onboarding page

* Migrate program letter page

* Migrate error page

* Resolves issue with Server Components treated as Client Components (transpiler). Wraps library imports for use in Next.js. User lists detail page.

* Metadata utility

* Fetch learning resource for metadata when drawer is open

* Async and sync metadata utilities

* .env example file

* Preserve hero image aspect

* Put back SliderInput

* Fix linting on nextjs branch (#1509)

Resolve linting errors for nextjs branch and introduce nextjs linting plugin

* Fixes for successful build (#1516)

- Removes unnecessary Client Component wrappers and "use client" directives.

- Set `<Suspense />` boundaries to client render components that useSearchParams() around:
    - all of the Search page.
    - the Learning Resource drawer.
    - the dashboard carousels.

* Enable Storybook action

* Enable Storybook action

* Update lockfile

* Use client directive missing from layout

---------

Co-authored-by: Chris Chudzicki <[email protected]>
* add util getByImageSrc

* remove main + mit-learn jest configs (for now)

* restore mock request example

* use NEXT_PUBLIC_MITOL_API_BASE_URL

* fix failing image related tests

* fix most remaining ol-components tests

* fix remaining nextjs tests in ol-components

* fix some TS errors, move mock

* disable ci typecheck task

* better comment

* sometimes TS is frustrating

* re-enable tests

* run tests w specific env var

* remove sharp

* formatting fix

* dedupe types/react

* enable build-storybook on ci
* enable running nextjs in docker

* run storybook too
…1542)

* Dockerfile for the Next.js service

* Build/publish job
* adding metadata to channel details page

* refactor

* refactor

* switching to using site name

* switching to using site name

* adding site name

* adding site name

* removing comment

* using getMetadataAsync for open resource drawer

* switching to getMetaData

* import missing var

* fixing search page title and edit channel details title

* removing unused attr

* removing redundant metatag call

* removing comment

* fixing regression with settings tabs

* adding more titles and fixing regression on search page

* fixing missing import

* missing import

* adding site name

* adding site name

* removing conditional

* moving addition of site name to getMetaData

* adding docstrings

* refactoring metatag method

* switching to standardizeMetadata and refactoring all views to use async method

* removign wrapper fragment

* set single react types resolution (#1586)

* switching to standardizeMetadata method

* fixing typechecks

---------

Co-authored-by: Chris Chudzicki <[email protected]>
* load adobe font

* add noindex based on MITOL_NOINDEX

* add appzi script

* validate env

* comment, fix ci

* build nextjs for production
* Use action with more options for context and Dockerfile location

* Escape newline

* Deploy to Heroku tests

* Missing checkouts

* Heroku login test

* Build directly with Heroku CLI

* Rename to web (Heroku process type)

* Release web

* Debug build args

* Debug build var

* Comma separated build args

* Remove multiline spaces

* Clean up env vars

* Deploy only on the nextjs branch
* align default robots tag w main

* Apply robots meta to all pages

---------

Co-authored-by: Jon Kafton <[email protected]>
* use react-query directly

* better query caching

* remove featured-courses prefetches
* Whitelist all image URLs

* Replace media query hook with CSS only

* Update news and events

* Fixes homepage text styles

* Breakpoint at md

* Update condensed resource card. Remove use breakpoint.

* Update tests for homepage desktop and mobile headings both present
* Use effect to shuffle testimonials once

* Use image/next for testimonial

* Select random image once per render

* Missing background

* Fixes images warnings

* Prettier fixes
* Codespace opensearch service fix (#1582)

* testing codespace fix

* testing fix

* Release 0.19.2

* Fix extract_openedx_data and backpopulate_mit_edx_data commands to work with course/program datafiles (#1587)

* follow/unfollow popover (#1589)

* adding success variant

* adding working version

* adding working version

* fixing text and adding margin to buttons

* lint fixes

* lint fix

* fixing test cases

* closing popup before posting data

* removing redundancy

* removing redundancy

* removing empty test

* updating styles

* updating styles

* changes to match design

* changes to match design

* Make search mode defaults settable env variables (#1590)

* Release date for 0.19.2

* Release 0.19.3

* Release date for 0.19.3

* Pace and format fields for learning resources (#1588)

* Migrate search settings #5527

---------

Co-authored-by: Shankar Ambady <[email protected]>
Co-authored-by: Doof <[email protected]>
Co-authored-by: Matt Bertrand <[email protected]>
Co-authored-by: Anastasia Beglova <[email protected]>
* Specify dimensions for logos (constrain by width or height)

* Replace img with Nextjs Image

* Replace with Next Image

* Import background images

* Fix header logo link

* Lint fixes

* Alias to public directory
* re-enable nextjs tests

* re-enable tests on main workspace
- apply actionbuttonlink styles correctly

- fix logo sizes

- fix type errors

- regenerate openapi spec

- move ecommerce to nextjs
Merge `main` into nextjs branch
jonkafton and others added 18 commits October 21, 2024 15:22
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Merge `main` into `nextjs` (#1687)

* Add location field to LearningResource and LearningResourceRun models (#1604)

* Always delete past events during ETL, and filter them out from api results too just in case (#1660)

* Release 0.21.1

* Release date for 0.21.1

* remove unnecessary padding adjustment on Input base styles (#1666)

* remove unnecessary padding adjustment on Input base styles

* adjust actual textarea padding to match Figma

* Content File Score Adjustment (#1667)

* Release 0.21.2

* Restore program letter intercept view (#1643)

* Restore program letter intercept view

* Generate schema

* Fix test

* fixing import

* Revert "fixing import"

This reverts commit cf56807.

---------

Co-authored-by: shankar ambady <[email protected]>

* Release date for 0.21.2

* topic detail banner / subtopic logic revisions (#1646)

* add new darker chip variant

* move subtopic display to the banner

* remove max width on banner subtitle texts

* query subtopics only on parent topic channels, and on child topic channels query "related topics" aka the topic's siblings

* don't display the current topic in related topics

* show parent topic breadcrumbs on child topic channel pages

* fix tests

* only do subtopics mocking if necessary

* fix editchannelpage test

* move action buttons under the title on mobile

* fix test

* add new default channel background image

* "toopics"

* fix background position

* remove accidentally committed file

* fix background size on mobile

* remove unnecessary order css rule

* fix banner background on mobile

* fix breadcrumb props

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove unnecessary topic id filter

* remove unnecessary breadcrumb fallback

* set the default banner background image in the banner component itself, and only apply large and up 140% background size if the default image is being used

* properly set default background image

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* Update Yarn to v4.5.0 (#1624)

* Update Yarn to v4.5.0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* Clear Cache on Deploy (#1668)

* adding initial cache clear command

* adding cache clear command to heroku release script

* fix docstrings

* removing invalid flag from clear cache command (#1675)

* prevent featured course carousel from re-randomizing (#1673)

* use skipFeatured when invalidating userlists / learning paths after update

* add a new function for updating query data for user_list_parents and learning_path_parents on the featured courses list when either is edited without re-randomizing

* fix learning path invalidations

* fix test

* Shuffling around where the search_update event is fired so it happens in more places (#1679)

- Changed HeroSearch to use the SearchField component instead of SearchInput, so we get the event capture stuff
- Updated SearchInput to not require setPage (for use on the homepage)
- Moved facet events out of the SearchPage and into SearchDisplay so they get called on other pages that use it
- Also trigger the facet events on more things - should also now get sorting changes, choosing between categories, and clearing facets

* Reinstate background steps image

---------

Co-authored-by: Matt Bertrand <[email protected]>
Co-authored-by: Doof <[email protected]>
Co-authored-by: Carey P Gumaer <[email protected]>
Co-authored-by: Anastasia Beglova <[email protected]>
Co-authored-by: Nathan Levesque <[email protected]>
Co-authored-by: shankar ambady <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Shankar Ambady <[email protected]>
Co-authored-by: James Kachel <[email protected]>

* restoring up and down chevrons (#1690)

* Config to set cache control headers (#1700)

* Middleware to set cache headers

* Set headers in the config

* Upgrade Next.js

* Regex to exclude paths with a file extension to apply only to routes

* Remove middleware file

* Instruct to only store in shared cache (not browsers)

* Copy yarn releases to the Docker container (fixes build) (#1703)

* Copy yarn releases

* Build the docker image on all push

* NextJS - re-enable program letter tests (#1696)

* fixing program letter template

* re-enabling test

* adding space

* remove unnecessary webpack customizations (#1704)

* Increase cache duration (#1705)

* Increase cache durations

* Update comment

* Prod deployment. Add Posthog vars

* NextJS Sentry Integration (#1701)

* configure sentry, fix error pages

* add env vars to CI

* add global styles to global-error

* TEMPORARY self destruct button

* cleanup

* cleanup error boundary, other misc cleanup

* remove a few useless things

* add a simple test i guess

* remove intentional error triggers

* Appzi env vars and Sentry config

* Move deploy jobs to respective workflow. Docker build for dry run

---------

Co-authored-by: Matt Bertrand <[email protected]>
Co-authored-by: Doof <[email protected]>
Co-authored-by: Carey P Gumaer <[email protected]>
Co-authored-by: Anastasia Beglova <[email protected]>
Co-authored-by: Nathan Levesque <[email protected]>
Co-authored-by: shankar ambady <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Shankar Ambady <[email protected]>
Co-authored-by: James Kachel <[email protected]>
Co-authored-by: Chris Chudzicki <[email protected]>
* Update ckeditor monorepo to v43

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: shankar ambady <[email protected]>
* add bundle analyzer, bump course-search-utils

* bump course-search-utils
* Update for Storybook's new home in ol-components

* Give the workflow a name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants