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

Omansh-part3 #6

Closed
wants to merge 3 commits into from
Closed

Omansh-part3 #6

wants to merge 3 commits into from

Conversation

Omanshb
Copy link

@Omanshb Omanshb commented Nov 5, 2023

Here are all of the changes I made for part 3 of the beginner project. I have also provided a screen recording for my functional endpoint.

https://drive.google.com/file/d/1mNUJW_1mDd0JA4TNmosEgteb8Z-2AHJD/view?usp=sharing

@Omanshb Omanshb requested a review from a team as a code owner November 5, 2023 19:27
Copy link

sweep-ai bot commented Nov 5, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.

Copy link

sonarcloud bot commented Nov 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Omanshb Omanshb changed the title part-3 changes Omansh-part3 Nov 5, 2023
Comment on lines +46 to +55
const handleClick = () => {
fetch("http://localhost:8000/api/super_cool_awesome_endpoint")
.then((response) => response.json())
.then((data) => {
setResponseText(data.message);
})
.catch((error) => {
console.error(error);
});
};
Copy link
Member

@karkir0003 karkir0003 Nov 5, 2023

Choose a reason for hiding this comment

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

Very good use of the JS/TS idiomatic syntax for API stuff! This is excellent and shows understanding of proper client/server interaction.

FYI: I've also seen others leverage the "RTK" framework (this is on the Redux side), but this implementation will suffice for the purposes of the beginner project

Comment on lines +6 to +41
const styles = {
container: {
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
height: "100vh",
},
btn: {
appearance: "button",
backgroundColor: "#000",
border: "1px solid #000",
borderRadius: "4px",
boxShadow: "4px 4px 0 0 rgba(255, 255, 255, 1), 4px 4px 0 1px #000",
boxSizing: "border-box",
color: "#fff",
cursor: "pointer",
display: "inline-block",
fontFamily: "ITCAvantGardeStd-Bk, Arial, sans-serif",
fontSize: "14px",
fontWeight: "400",
lineHeight: "20px",
padding: "12px 40px",
textAlign: "center",
textTransform: "none",
touchAction: "manipulation",
userSelect: "none",
WebkitUserSelect: "none",
whiteSpace: "nowrap",
},
msg: {
marginTop: "20px",
fontFamily: "Pacifico, cursive",
fontSize: "24px",
},
};
Copy link
Member

Choose a reason for hiding this comment

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

good that you included the css here for scope purposes. Normally, we would want to centralize our css into a .css file, but I didn't expect that for this task. Cool style/font by the way

@karkir0003
Copy link
Member

@Omanshb great great work on this. I love how the code for this is very clean and shows understanding of the JS/TS client/server convention. Cool font by the way for the beginner.tsx file. Please read the other comments I included (they're non-blocking in terms of completion of part 3, but as helpful FYIs). I'll mark this PR as closed since we will not merge these changes into the real DLP app

@karkir0003 karkir0003 closed this Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants