Page MenuHomePhabricator

[native] [web] Use `tinycolor` when comparing colors represented as strings
ClosedPublic

Authored by abosh on Jun 9 2022, 2:29 PM.
Tags
None
Referenced Files
F3392172: D4243.diff
Sat, Nov 30, 7:18 AM
Unknown Object (File)
Thu, Nov 28, 3:30 AM
Unknown Object (File)
Wed, Nov 27, 9:46 AM
Unknown Object (File)
Wed, Nov 27, 9:35 AM
Unknown Object (File)
Sat, Nov 9, 11:41 AM
Unknown Object (File)
Sat, Nov 9, 11:41 AM
Unknown Object (File)
Fri, Nov 8, 12:47 PM
Unknown Object (File)
Fri, Nov 8, 8:08 AM

Details

Summary

Recently have run into some bugs with checking color equality between two hex strings (using the basic === operator). Changed this equality (or inequality) check to use tinycolor.equals() instead throughout the codebase.

Test Plan

Tested LoadingIndicator and ThreadSettings on web and ensured that they looked as expected after the change.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Jun 9 2022, 2:30 PM
Harbormaster failed remote builds in B9704: Diff 13445!
abosh edited the test plan for this revision. (Show Details)
abosh added 1 blocking reviewer(s): atul.
web/calendar/entry.react.js
198

This change is just a minor style fix that corrects the prior string concatenation to use ${} placeholder syntax (used throughout the codebase).

This revision is now accepted and ready to land.Jun 14 2022, 12:29 PM