Group-income-simple: Implement new avatar placeholders

Created on 11 Apr 2020  路  2Comments  路  Source: okTurtles/group-income-simple

Problem

The problem stated in #538.

Solution

There should be 3 different avatar placeholders:

  1. For members;
  2. For groups;
  3. For members that have been accepted (via proposal) into the group but have NOT used their invite link yet.

1. For members

We are using Blockies, an identicon generator. You'll need these 2 links:

You will notice, at the bottom of the JS file of the codepen linked above, there are 6 configurable options. These are:

  1. seed - a string, that should be unique for each user. This string is what generates the image;
  2. bgcolor;
  3. color;
  4. spotcolor;
  5. size - set it to 6;
  6. scale - used 12;

Colors
Each user should be assigned one of our colors (blue, orange, red or green). After that, the 3 color options should be:

  1. bgcolor - variant 0 (darkest);
  2. color - variant 1 (medium);
  3. spotcolor- variant 2 (lightest);

Here are some examples of what they look like:
Captura de ecra虄 2020-04-11, a虁s 19 03 38


2. For groups

For groups, we use the groups initials. We have a minimum of 1 character and a maximum of 2. Here's what they look like:
Captura de ecra虄 2020-04-11, a虁s 19 05 04


3. Members that have been accepted (via proposal) into the group but have NOT used their invite link yet.

Same as for groups, but with a question mark. Here's an example:
Captura de ecra虄 2020-04-11, a虁s 19 07 06


Other useful links:

And that's it! I hope I didn't miss anything, but let me know if you have any questions or if you find other cases / issues with this approach!

Frontend Enhancement UUX Low

Most helpful comment

@sandrina-p remember that it needs to scale up to 128px (256px retina), forgot to mention that in the issue itself 馃う

All 2 comments

This will be an interesting technical challenge. I'll research how we can tackle the initials with SVGs/canvas and store it in conjugation with a typical image.

@sandrina-p remember that it needs to scale up to 128px (256px retina), forgot to mention that in the issue itself 馃う

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mmbotelho picture mmbotelho  路  6Comments

taoeffect picture taoeffect  路  5Comments

taoeffect picture taoeffect  路  8Comments

sandrina-p picture sandrina-p  路  8Comments

mmbotelho picture mmbotelho  路  7Comments