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

feat: add devcard button to user profile #1339

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

foxyblocks
Copy link
Contributor

@foxyblocks foxyblocks commented Jul 7, 2023

Merging this PR will expose the feature to public consumption, so we should hold off merging until we're ready to launch it, was initially going to use role based gating but couldn't find a good approach to access that in this component that didn't involve a bunch of prop drilling or adding a bunch of stuff to the app store (which seems like a bigger project)

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

close #1338

Mobile & Desktop Screenshots/Recordings

CleanShot 2023-07-07 at 16 45 54@2x CleanShot 2023-07-07 at 16 45 33@2x

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 Jul 7, 2023

βœ… Deploy Preview for oss-insights ready!

Name Link
πŸ”¨ Latest commit 5ba312b
πŸ” Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/64c2b6a501e5960008e133c6
😎 Deploy Preview https://deploy-preview-1339--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 configuration.

@netlify
Copy link

netlify bot commented Jul 7, 2023

βœ… Deploy Preview for design-insights ready!

Name Link
πŸ”¨ Latest commit 5ba312b
πŸ” Latest deploy log https://app.netlify.com/sites/design-insights/deploys/64c2b6a568671e0009b357cd
😎 Deploy Preview https://deploy-preview-1339--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 configuration.

@foxyblocks foxyblocks changed the title Add devcard button to user profile feat: Add devcard button to user profile Jul 7, 2023
@bdougie
Copy link
Member

bdougie commented Jul 25, 2023

we should go live with this @foxyblocks.

@@ -1,5 +1,5 @@
export const siteUrl = (path: string = "") => {
let url = process.env.NEXT_PUBLIC_BASE_URL || "/";
let url = process.env.NEXT_PUBLIC_BASE_URL || "http://localhost:3000/";
Copy link
Member

Choose a reason for hiding this comment

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

is local host needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/open-sauced/insights/blob/5ba312b8b3f31d48d60f983e87061c688ca81369/pages/user/%5Busername%5D/card.tsx#L125

I believe OG:image meta data properties need a full url including domain or else social media won't pick them up. This is the fallback when testing locally.

Copy link
Contributor

Choose a reason for hiding this comment

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

We have a default NEXT_PUBLIC_BASE_URL in the .env so someone running this locally would specifically have to override it.

@bdougie bdougie marked this pull request as ready for review July 28, 2023 03:13
@brandonroberts brandonroberts changed the title feat: Add devcard button to user profile feat: add devcard button to user profile Jul 28, 2023
Copy link
Contributor

@OgDev-01 OgDev-01 left a comment

Choose a reason for hiding this comment

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

LGTM

Just some mobile issues with responsiveness which we can handle in a seperate issue
image

@brandonroberts brandonroberts merged commit 6a1dbdc into beta Jul 31, 2023
17 checks passed
@brandonroberts brandonroberts deleted the add-link-to-devcard-from-user-profile branch July 31, 2023 14:15
github-actions bot pushed a commit that referenced this pull request Jul 31, 2023
## [1.58.0-beta.1](v1.57.1-beta.10...v1.58.0-beta.1) (2023-07-31)

### πŸ• Features

* add devcard button to user profile ([#1339](#1339)) ([6a1dbdc](6a1dbdc))
@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.58.0-beta.1 πŸŽ‰

The release is available on GitHub release

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

github-actions bot pushed a commit that referenced this pull request Aug 2, 2023
## [1.58.0](v1.57.0...v1.58.0) (2023-08-02)

### πŸ§‘β€πŸ’» Code Refactoring

*  merge `authSession` function into `useSession` hook ([#1391](#1391)) ([d6c230d](d6c230d))

### 🎨 Styles

* add width and max width for created at in contributor-profile-tab ([#1429](#1429)) ([5614886](5614886))
* remove irrelevant padding in page divider ([#1427](#1427)) ([5faaa4e](5faaa4e))

### πŸ• Features

* add devcard button to user profile ([#1339](#1339)) ([6a1dbdc](6a1dbdc))
* new contributor highlight card ([#1443](#1443)) ([c88000b](c88000b))
* update redirect to feed page for unauthenticated users ([#1464](#1464)) ([6d8505f](6d8505f))

### πŸ› Bug Fixes

* add checkbox id name if not available based on label ([#1466](#1466)) ([68f66a7](68f66a7))
* add navigation to improve accessibility ([#1436](#1436)) ([d1d85f7](d1d85f7))
* contributor profile tab click state flicker ([#1432](#1432)) ([c9cf8ed](c9cf8ed))
* Deleted page button changed to delete highlight ([#1419](#1419)) ([d502605](d502605))
* fixed bug on chatbot button overlay ([#1420](#1420)) ([2a94583](2a94583))
* hide onboarding button on mobile ([#1460](#1460)) ([f63f240](f63f240))
* Improve Keyboard Accessibility for Notification Icon ([#1435](#1435)) ([05291c0](05291c0))
* improve layout design for large screens [#1231](#1231) ([#1437](#1437)) ([d8ae808](d8ae808))
* misaligned chat button close icon ([#1422](#1422)) ([60f22bd](60f22bd))
* mismatched selection color ([#1430](#1430)) ([8a1d37b](8a1d37b))
* reduce tab font size in contributors profile page ([#1413](#1413)) ([238dc2f](238dc2f))
* show repo filters on initial `feeds` route visit ([#1426](#1426)) ([833ee30](833ee30))
* tab inconsistency in user profile matching the url ([#1403](#1403)) ([f8c6766](f8c6766))
@github-actions
Copy link

github-actions bot commented Aug 2, 2023

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

The release is available on GitHub release

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

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.

Add link to devcard from profile page
5 participants