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

fix: remove duplicate redirect check and use server props on insight page #1255

Merged
merged 1 commit into from Jun 9, 2023

Conversation

brandonroberts
Copy link
Contributor

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

  • Fixes a redirect issue when visiting a public insight page
  • Uses insight data returned from server side instead of re-fetching on the client

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@netlify
Copy link

netlify bot commented Jun 8, 2023

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit 21956d9
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/648239784b5a7300084e0554
😎 Deploy Preview https://deploy-preview-1255--design-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Jun 8, 2023

βœ… Deploy Preview for oss-insights ready!

Name Link
πŸ”¨ Latest commit 21956d9
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/64823978b37d7000088fa5c4
😎 Deploy Preview https://deploy-preview-1255--oss-insights.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

PR Compliance Checks

Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project. The results are listed in the following section.

Issue Reference

In order to be considered for merging, the pull request description must refer to a specific issue number. This is described in our Contributing Guide.
This check is looking for a phrase similar to: "Fixes #XYZ" or "Resolves #XYZ" where XYZ is the issue number that this PR is meant to address.

Copy link
Contributor

@takanome-dev takanome-dev left a comment

Choose a reason for hiding this comment

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

I didn't check the full code and ended up duplicating that logic πŸ˜…
Looks good πŸ‘

@brandonroberts brandonroberts merged commit 9ef2780 into beta Jun 9, 2023
11 checks passed
@brandonroberts brandonroberts deleted the fix-insight-auth-redirect branch June 9, 2023 13:55
@brandonroberts
Copy link
Contributor Author

brandonroberts commented Jun 9, 2023

No worries πŸ™‚

github-actions bot pushed a commit that referenced this pull request Jun 9, 2023
## [1.52.0-beta.2](v1.52.0-beta.1...v1.52.0-beta.2) (2023-06-09)

### πŸ› Bug Fixes

* remove duplicate redirect check and use server props on insight page ([#1255](#1255)) ([9ef2780](9ef2780))
@github-actions
Copy link

github-actions bot commented Jun 9, 2023

πŸŽ‰ This PR is included in version 1.52.0-beta.2 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Jun 15, 2023
## [1.52.0](v1.51.0...v1.52.0) (2023-06-15)

### πŸ• Features

* add openGraph image to public insight pages ([#1258](#1258)) ([f0a7f7e](f0a7f7e))
* implement user collaboration features ([#1221](#1221)) ([00b6d1a](00b6d1a))

### πŸ› Bug Fixes

* add session check before redirecting in private wrapper component ([#1261](#1261)) ([891e4c9](891e4c9)), closes [#1260](#1260)
* remove duplicate redirect check and use server props on insight page ([#1255](#1255)) ([9ef2780](9ef2780))
* remove hard-coded height from layouts ([#1257](#1257)) ([20061bc](20061bc))
@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.52.0 πŸŽ‰

The release is available on GitHub release

Your semantic-release bot πŸ“¦πŸš€

ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.52.0-beta.2](open-sauced/app@v1.52.0-beta.1...v1.52.0-beta.2) (2023-06-09)

### πŸ› Bug Fixes

* remove duplicate redirect check and use server props on insight page ([#1255](open-sauced/app#1255)) ([9ef2780](open-sauced/app@9ef2780))
ElpisHelle added a commit to ElpisHelle/next.js-tailwindcss that referenced this pull request Aug 17, 2023
## [1.52.0](open-sauced/app@v1.51.0...v1.52.0) (2023-06-15)

### πŸ• Features

* add openGraph image to public insight pages ([#1258](open-sauced/app#1258)) ([f0a7f7e](open-sauced/app@f0a7f7e))
* implement user collaboration features ([#1221](open-sauced/app#1221)) ([00b6d1a](open-sauced/app@00b6d1a))

### πŸ› Bug Fixes

* add session check before redirecting in private wrapper component ([#1261](open-sauced/app#1261)) ([891e4c9](open-sauced/app@891e4c9)), closes [#1260](open-sauced/app#1260)
* remove duplicate redirect check and use server props on insight page ([#1255](open-sauced/app#1255)) ([9ef2780](open-sauced/app@9ef2780))
* remove hard-coded height from layouts ([#1257](open-sauced/app#1257)) ([20061bc](open-sauced/app@20061bc))
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.

None yet

2 participants