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

Profile Custom Username Links + Backend Validation #168

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ouckah
Copy link
Collaborator

@ouckah ouckah commented Apr 17, 2024

Some feedback received was the addition of custom profile links, so when sharing it can share something like "https://pipelines.lol/user/name", which is what this PR brings! Also moved some frontend validation to the backend, where it belongs.

Profile Custom Links
server/controllers/profileController.js - Added an endpoint to get profiles by username.
server/routes/profiles.js - Routes for the above endpoint ^.
client/src/pages/Profile.js - Added logic to check if the id in the URL is a MongoDB ID, if not, check if it is a valid username.

Backend Validation - Moving over frontend -> backend
client/src/pages/Profile.js - Burned all the frontend validation and Linkedin manipulation.
client/src/components/ProfilePicture.js - Not sure why the profile picture was fetching from params in the first place... made it fetch from the inputted profile data.

image

LONG LIVE PIPELINES! 🚀

@ouckah ouckah added the enhancement New feature or request label Apr 17, 2024
@ouckah ouckah requested review from Nyumat and Lewin-B April 17, 2024 18:58
@ouckah ouckah self-assigned this Apr 17, 2024
Copy link

render bot commented Apr 17, 2024

Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for pipelineslol ready!

Name Link
🔨 Latest commit 770d235
🔍 Latest deploy log https://app.netlify.com/sites/pipelineslol/deploys/66201bf49c7c790009888487
😎 Deploy Preview https://deploy-preview-168--pipelineslol.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant