RocketChat / RocketChat/Rocket.Chat.ReactNative

Add Skeleton and background to Avatar

Open
#4,809 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🍭 good first issue 👍 improvement
Dominant language
TypeScript
Stars
2.4k
Forks
1.5k
Avg merge
1d 18h
Merged PRs (30d)
90

Description

To be done
  • Add skeleton to Avatar
    • Pay attention to all use cases this component has (emoji, static image, etc)
    • This is good for UX, because nowadays we're rendering a blank space while avatar image is being fetched
    • You can see a skeleton example on VideoConferenceSkeletonLoading
  • Add colors.bannerBackground to Avatar when in dark modes
    • Some avatars might rendered in unexpectedly in dark/black mode, so we should render a grey color on the background to make it feel right.
    • Keep it without background color on light mode
    • Pay attention not to create a visual glitch rendering background and skeleton at the same time

Light mode
image

Dark mode
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Avatar component and inspect the VideoConferenceSkeletonLoading example first. Check Avatar's emoji and static-image use cases, then implement loading and dark-mode background behavior without a visual overlap; done means the light and dark appearances match the shown expectations across those use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
frontend, mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.