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

Added avatars to userlist and userAutoComplete #8903

Conversation

noufalrahim
Copy link
Contributor

Proposed Changes

@ohcnetwork/care-fe-code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

@noufalrahim noufalrahim requested a review from a team as a code owner October 23, 2024 14:26
Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for care-ohc ready!

Name Link
🔨 Latest commit 441181b
🔍 Latest deploy log https://app.netlify.com/sites/care-ohc/deploys/67191b868d8cc90008853b9d
😎 Deploy Preview https://deploy-preview-8903--care-ohc.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.

Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

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

lgtm; but could you discard changes made to the lockfile?

@noufalrahim
Copy link
Contributor Author

Done!

@noufalrahim
Copy link
Contributor Author

Why is Cypress test failing? Is there anything that needs to be done from my end?

@rithviknishad
Copy link
Member

seems to be a flaky test; fixed in #8891

cc: @nihal467

@@ -21311,4 +21311,4 @@
}
}
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Unrelated change, do we need this 🤔

@@ -80,8 +80,11 @@ export default function UserAutocomplete(props: UserSearchProps) {
)}
optionLabel={formatName}
optionIcon={userOnlineDot}
optionImage={(option: UserBareMinimum) =>
option.read_profile_picture_url || ""
Copy link
Member

Choose a reason for hiding this comment

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

why should we cast it to an empty string 🤔, we should be able to deal with an option right 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screenshot from 2024-10-24 11-31-36
There is an error

Copy link
Member

Choose a reason for hiding this comment

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

you can make the optionImage accept undefined right?

@noufalrahim
Copy link
Contributor Author

Opened another PR

@rithviknishad
Copy link
Member

Why close and re-create PR?

@noufalrahim
Copy link
Contributor Author

Merge conflict was there..so I undo everything, created a new branch and committed.

@rithviknishad
Copy link
Member

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.

Show user avatar in User Autocomplete and User list page
3 participants