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

updated feedback card #12

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

Conversation

Sudhanva21
Copy link

@Sudhanva21 Sudhanva21 commented Jun 17, 2024

Pull Request Details

Description

Do some CSS changes in react-multi-carousel->lib->style.css if not already done
.react-multiple-carousel__arrow => change background to black rgba
react-multiple-carousel__arrow--left and of arrow--right=> calc(1px) instead of (4%+1px)

Fixes

Fixed #1

Type of PR

  • [ .] Bug fix
  • Feature enhancement
  • Documentation update
  • Refactoring
  • Other (specify): _______________

Summary

Made responsive for different width of screen and changed the design of feedback card

Screenshots (if applicable)

Screenshot 2024-06-17 224744

Additional Notes

[Include any additional information or context that might be helpful for reviewers.]

Checklist

  • I have read and followed the Pull Requests and Issues guidelines.
  • The code has been properly linted and formatted using npm run lint:fix and npm run format:fix.
  • I have tested the changes thoroughly before submitting this pull request.
  • I have provided relevant issue numbers, snapshots, and videos after making the changes.
  • I have not borrowed code without disclosing it, if applicable.
  • This pull request is not a Work In Progress (WIP), and only completed and tested changes are included.
  • I have tested these changes locally.
  • My code follows the project's style guidelines.
  • I have updated the documentation accordingly.
  • This PR has a corresponding issue in the issue tracker.

Summary by CodeRabbit

  • New Features

    • Introduced a carousel in the Feedback component to display user feedback cards dynamically.
    • Increased the total feedback count to 4 and displayed 3 cards at a time with responsive behavior.
  • Enhancements

    • Updated the FeedBox component with improved layout, styling, and content structure, enhancing the display of user information and feedback.
  • Dependencies

    • Added new dependencies: react-multi-carousel, react-slick, and slick-carousel for improved carousel support.

Copy link

coderabbitai bot commented Jun 17, 2024

Walkthrough

The recent updates introduce new dependencies and significant enhancements to the Feedback and FeedBox components in the client side of the application. The Feedback component now leverages react-multi-carousel to display user feedbacks more dynamically and responsively. The FeedBox component's layout and styling have been refined for a better user experience. These changes address the need for improved design and responsiveness of feedback cards as specified in the linked issue.

Changes

Files Change Summary
client/package.json Added dependencies: react-multi-carousel, react-slick, slick-carousel
client/src/components/ui/FeedBox.jsx Updated the component's layout, styling, and content structure, enhancing the display of user information and feedback.
client/src/components/ui/Feedback.jsx Implemented a carousel for feedback cards, increased total feedback count, updated user data structure, and made layout responsive.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Feedback as Feedback Component
    participant Carousel as Carousel Component
    
    User->>Feedback: Open Feedback Section
    Feedback->>Carousel: Initialize with User Data
    Carousel-->>Feedback: Render Feedback Cards Using Props
    Feedback->>User: Display Rendered Feedback Carousel
Loading

Assessment against linked issues

Objective Addressed Explanation
Improve the responsiveness and design of feedback cards (#1)

Poem

In the code, new carousels spin,
With feedback flowing in a gracious spin.
Images styled with care, align so neat,
Layout refined, design now a feat.
Responsive tales of users, cards so bright,
Coding bunnies worked through day and night. 🐰


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Jun 17, 2024

Deploy Preview for appoint-next failed. Why did it fail? →

Name Link
🔨 Latest commit 035c90c
🔍 Latest deploy log https://app.netlify.com/sites/appoint-next/deploys/66714f4603363100088615e5

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between d4f83ec and b45d731.

Files ignored due to path filters (1)
  • client/package-lock.json is excluded by !**/package-lock.json
Files selected for processing (3)
  • client/package.json (1 hunks)
  • client/src/components/ui/FeedBox.jsx (1 hunks)
  • client/src/components/ui/Feedback.jsx (3 hunks)
Additional comments not posted (5)
client/package.json (3)

26-26: The addition of react-multi-carousel is appropriate for implementing responsive carousel functionality as described in the PR.


29-29: Verify if both react-multi-carousel and react-slick are necessary, as they serve similar functionalities. Consider removing one to reduce bundle size and complexity.


30-30: The addition of slick-carousel complements react-slick for styling purposes.

client/src/components/ui/FeedBox.jsx (1)

30-54: The redesign of the FeedBox component enhances its visual appeal and aligns with the objective to improve the feedback card's design and responsiveness. Ensure that all referenced images and styles are available and correctly linked.

client/src/components/ui/Feedback.jsx (1)

110-116: The implementation of the carousel using react-multi-carousel is well-executed, with appropriate responsive settings. This enhances the user experience across different devices.

Comment on lines +23 to +80
const users = [
{
name: "John",
title: "CEO",
address: "New York",
feedback:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget augue nec massa volutpat aliquam fringilla.",
},
{
name: "John",
title: "CEO",
address: "New Delhi",
feedback:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget augue nec massa volutpat aliquam fringilla.",
},
{
name: "John",
title: "CEO",
address: "Dubai",
feedback:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget augue nec massa volutpat aliquam fringilla.",
},
{
name:"Sudhanva",
title:"CEO",
address:"Bengaluru",
feedback:"lorem ispum",

},
{
name: "John",
title: "CEO",
address: "New York",
feedback:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget augue nec massa volutpat aliquam fringilla.",
},
user2: {
{
name: "John",
title: "CEO",
address: "New Delhi",
feedback:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget augue nec massa volutpat aliquam fringilla.",
},
user3: {
{
name: "John",
title: "CEO",
address: "Dubai",
feedback:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc eget augue nec massa volutpat aliquam fringilla.",
},
{
name:"Sudhanva",
title:"CEO",
address:"Bengaluru",
feedback:"lorem ispum",

},
];
Copy link

Choose a reason for hiding this comment

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

Ensure that the user data does not contain duplicates unless intentionally designed to simulate multiple entries. Consider implementing a mechanism to filter or verify unique entries if needed.

@Latish705
Copy link
Contributor

@Sudhanva21 can you video of it

@Sudhanva21 Sudhanva21 closed this Jun 18, 2024
@Sudhanva21 Sudhanva21 reopened this Jun 18, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b45d731 and 035c90c.

Files selected for processing (1)
  • client/src/components/ui/Feedback.jsx (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • client/src/components/ui/Feedback.jsx

@Sudhanva21
Copy link
Author

@Latish705 Do you want video of the implementation??

// </div>
// <div>
// <h3 className=" text-[13px] font-bold ">{user.name}</h3>
// <p className=" text-[10px] ">{user.address}</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

why this commented code

Copy link
Contributor

@Latish705 Latish705 left a comment

Choose a reason for hiding this comment

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

@Sudhanva21 try to match the color scheme of the project and improve the design of cards make it more rounded

Copy link

github-actions bot commented Jul 2, 2024

This pull request did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please verify it has no conflicts with the develop branch and rebase if needed. Mention it now if you need help or give permission to other people to finish your work.

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.

[Bug]: Improve the responsiveness and design of feedback cards
2 participants