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

Feature/meet the host #45

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

Feature/meet the host #45

wants to merge 3 commits into from

Conversation

BajalanIman
Copy link
Collaborator

This is the "Meet your host" component.

@BajalanIman BajalanIman linked an issue Sep 20, 2024 that may be closed by this pull request
@@ -45,3 +46,4 @@ Currently, two official plugins are available:
- Michael Kleinschmidt ([@miklesch](https://github.com/miklesch))
- Kalina Iwaszko ( [@messkalina] (https://github.com/messkalina))
- Bhagya Samarathunga ( [@BhagyaPrasadSamarathunga] (https://github.com/BhagyaPrasadSamarathunga))
- Iman Bajalan ([@BajalanIman](https://github.com/BajalanIman))
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems like your feature branch contains changes from the previous ticket. It's not a big deal but it's a good practice to only include changes in your PR which are directly relevant to the ticket. This makes it easier for your teammates to review your code, otherwise they might get confused, or there is just more code that needs to be reviewed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When I tried to push my changes, I noticed that the previous conflicts from last night were still unresolved. So, I resolved the conflicts first and then pushed all the changes. I'll definitely keep this in mind for next time.

</div>
<hr className="borders" />
<div className="reviews-container">
<span className="reviews-numbrs">1</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems like a something that could be passed via a prop https://react.dev/learn/passing-props-to-a-component
Even though our goal for now is to show a static view with dummy data, we should still make the component reusable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for the clarification. I assumed that in this step, we are supposed to implement the tickets as simply as possible. Therefore, I used values rather than props. I will store all the data for this component in an object within App.jsx (temporary) and pass it down to the component via props. Is that approach okay?

</svg>
</div>
<div className="raus-superhost-container">
<h2 className="raus-info">Raus</h2>
Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems to me that "Raus" is a name of a concrete host. We should avoid including such data into things like css class names because eventually this component will be used to display any user or host.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you so much for this comment. I always have a problem with naming CSS classes :) I will change the names.

aria-label="check mark"
className="verifiedicon-svg"
>
<title>verified-sheild</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably not all hosts are verified. We could use a prop here too that will tell us if the host is verified and only if the prop is true we display the shield.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

of course. I will do that. Also, as you mentioned in the next comment, this is a screenshot of my work:
Screenshot 2024-09-20 175229

@matus-vacula
Copy link
Collaborator

Great work putting out a pull request so quickly! 🚀 Opening a pull request even before it's fully fine-tuned to every last detail is a good practice because it helps you collect the feedback very early. I often open a PR when I just want to see if the general direction I'm going with is correct. This usually saves me time because I don't have to work on the details if I find out that need to choose a completely different solution.

I think the great potential improvement for your PR would be to start using props for the data which will be passed to the component dynamically. You can read more on props in React documentation here https://react.dev/learn/passing-props-to-a-component and if something is not clear you can always ask either by replying here in the PR to the comments or if it's more broad topic we can discuss it in the slack channel.

Also, it would be amazing if you could always post a screenshot in the PR when you're working on something visual.
Keep up the good work! Excited to see more.

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.

[Meet the host] Overview card
2 participants