Skip to content

Conversation

@ChristopherChudzicki
Copy link
Contributor

@ChristopherChudzicki ChristopherChudzicki commented Oct 7, 2024

What are the relevant tickets?

For https://github.com/mitodl/hq/issues/5395

Description (What does it do?)

Merges main into nextjs and fixes a few issues that arose.

Reviewing:

Suggestion: Most of the commits on this branch are already on main. The merge conflicts were resolved in c8696de.

Some things were broken after the conflict resolutions, so I fixed them in the followup commit.

Most of the changes I made in the followup commit are related to making sure the header and footer look identical on https://learn.mit.edu/ vs the nextjs branch. See video below, which switches between two browser tabs.

Screen.Recording.2024-10-07.at.11.05.34.AM.mov

How can this be tested?

Run locally. You should get recent changes from main. Notably:

shanbady and others added 30 commits September 19, 2024 14:31
* testing codespace fix

* testing fix
* 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
* adding display label and migration to percolate queries

* regenerating specs

* adding test and method for returning label

* fixing migration

* adding display label to admin

* adding test for source description

* fixing search conditionals in test
Adds event capturing for facet selection and search term updating, so we can track these more efficiently in PostHog.
gumaerc and others added 18 commits October 1, 2024 13:36
* apply StyledMITLogoLink styles directly to img element

* fix app container padding based on header height
* remove border and shadow

* remove nav menu button hover state
* adding initial button

* adding working dialog

* fixing typecheck lint

* fixing styles and checking for existing subscriptions

* adding tests

* fixing lint

* adding another test. fixing dialog header

* fixing lint

* remove trailing question mark
* updating email template with new logo

* adding copy update for unit

* adding trailing slash

* adding trailing slash
*
* See https://stackoverflow.com/a/11126701/2747370
*/
display: "block",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On main, the parent link is display: flex which causes its children to be block. This was the only link styling on main.

On nextjs, that styling was removed. But images are inline elements by default, which messes up their positioning a little. So this makes them block.

)((props) => {
const { size, responsive } = { ...props, ...defaultProps }
return [
buttonStyles(props),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous, ActionButton was:

const ActionButton = styled(
  React.forwardRef<HTMLButtonElement, ActionButtonProps>((props, ref) => (
    <ButtonStyled ref={ref} type="button" {...props} />
  ))(...)

// and, essentially
const ActionButtonLink = ActionButton.withComponent(Link)

This caused ActionButtonLink to be missing the styles from ButtonStyled.

Moving the button styles to its own helper fixed that. Story added.

@ChristopherChudzicki ChristopherChudzicki marked this pull request as ready for review October 7, 2024 15:08
- apply actionbuttonlink styles correctly

- fix logo sizes

- fix type errors

- regenerate openapi spec

- move ecommerce to nextjs
@jonkafton jonkafton changed the base branch from main to nextjs October 7, 2024 15:22
@ChristopherChudzicki ChristopherChudzicki changed the title Cc/nextjs w main Merge main into nextjs branch Oct 7, 2024
@ChristopherChudzicki ChristopherChudzicki added the Needs Review An open Pull Request that is ready for review label Oct 7, 2024
Copy link
Contributor

@jonkafton jonkafton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ChristopherChudzicki ChristopherChudzicki merged commit becbeb4 into nextjs Oct 7, 2024
12 checks passed
@jonkafton jonkafton mentioned this pull request Oct 7, 2024
@rhysyngsun rhysyngsun deleted the cc/nextjs-w-main branch February 7, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants