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

Consistent avatar colors #13

Merged

Conversation

Miki-Session
Copy link
Collaborator

@Miki-Session Miki-Session commented Nov 18, 2024

  • new isSameColor function allows color comparisons within a "humans-can't-tell-the-difference" tolerance
  • new test specs for verifying consistent placeholder avatar colors
    • a user's color is the same on their own device and a contact's device
    • a user's color is the same across their own linked devices

@Miki-Session
Copy link
Collaborator Author

looks like eslint failing is a known issue
eslint/eslint#19134

run/test/specs/utils/check_colour.ts Outdated Show resolved Hide resolved
run/test/specs/utils/check_colour.ts Outdated Show resolved Hide resolved
run/test/specs/utils/check_colour.ts Outdated Show resolved Hide resolved
run/test/specs/linked_device_avatar_color.spec.ts Outdated Show resolved Hide resolved
run/test/specs/linked_device_avatar_color.spec.ts Outdated Show resolved Hide resolved
run/test/specs/utils/check_colour.ts Outdated Show resolved Hide resolved
run/test/specs/check_avatar_color.spec.ts Outdated Show resolved Hide resolved
run/test/specs/check_avatar_color.spec.ts Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
@Miki-Session Miki-Session requested a review from Bilb January 8, 2025 05:11
run/test/specs/utils/check_colour.ts Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
@Bilb
Copy link
Collaborator

Bilb commented Jan 10, 2025

LGTM

run/test/specs/check_avatar_color.spec.ts Outdated Show resolved Hide resolved
run/test/specs/check_avatar_color.spec.ts Outdated Show resolved Hide resolved
run/test/specs/linked_device_avatar_color.spec.ts Outdated Show resolved Hide resolved
run/test/specs/locators/home.ts Show resolved Hide resolved
Copy link
Collaborator

@burtonemily burtonemily left a comment

Choose a reason for hiding this comment

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

Looks good to me, nicely done

@burtonemily burtonemily merged commit f6b263f into session-foundation:main Jan 17, 2025
1 check passed
@Miki-Session Miki-Session deleted the consistent-account-colors branch January 17, 2025 00:28
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.

3 participants