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

Cornellians Say Frontend #484

Merged
merged 5 commits into from
Dec 16, 2024
Merged

Cornellians Say Frontend #484

merged 5 commits into from
Dec 16, 2024

Conversation

leihelen
Copy link
Contributor

@leihelen leihelen commented Dec 8, 2024

Summary

This PR works on the Cornellians Say feature.

PR Type

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

Mobile + Desktop Screenshots & Recordings

Screenshot 2024-12-08 at 3 26 26 PM Screenshot 2024-12-08 at 3 26 45 PM

QA - Test Plan

Checked for courses that had summary and all tags, summary and some tags, and no summary. Also checked on different screen sizes.

Breaking Changes & Notes

Added Cornellians Say component to the frontend.

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ notion
  • docstrings

What GIF represents this PR?

gif

@leihelen leihelen requested a review from a team as a code owner December 8, 2024 04:35
@dti-github-bot
Copy link
Member

dti-github-bot commented Dec 8, 2024

[diff-counting] Significant lines: 143.

Copy link
Contributor

@qiandrewj qiandrewj left a comment

Choose a reason for hiding this comment

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

Great work on Cornellians Say frontend, Helen! Looks really smooth on my end, in all view sizes. Left a couple comments, on styling mostly, but this is super great work. Perhaps before merging both yours and Jacqueline's features, we can align on some nitpicky styling things (ex. font sizes, padding) because both components are meant to be similar looking -- this could happen in a middle-step PR before going to main maybe, but really exciting!

* and a valid summary generated.
*/
type SummaryProps = {
classSummary: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe instead of not showing the CornelliansSay box if there isn't a course summary, we could have a default message that appears?

display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
Copy link
Contributor

Choose a reason for hiding this comment

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

The margin on the bottom looks a little big imo

font-weight: bold;
}

.summary {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like it looks a bit weird for the summary text to be different from the review text - so maybe no need to format this

Copy link
Contributor

Choose a reason for hiding this comment

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

Esp the line height looks a bit funky

difficulty={selectedClass.classDifficulty}
workload={selectedClass.classWorkload}
/>
<div>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this div may be unnecessary?

gap: 10px;
}

.tag {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the tags are too big somewhat, maybe reduce some of the padding

Copy link
Collaborator

@wizhaaa wizhaaa Dec 11, 2024

Choose a reason for hiding this comment

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

Try

padding: 0 10px; 
min-height: 25px;

It also helps when the tag is too long on certain screen widths the text stacks on top of each other and clips the tag container.

client/src/modules/Course/Components/CornelliansSay.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@wizhaaa wizhaaa left a comment

Choose a reason for hiding this comment

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

Awesome work here Helen! Super happy to see your feature working end to end. I will approve this review as I think it is mostly functioning super well right now. Only have like one tiny style comment.

@leihelen leihelen merged commit 779f6e0 into main Dec 16, 2024
4 checks passed
@leihelen leihelen deleted the helen/frontend-cornellians-say branch December 16, 2024 02:41
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.

4 participants