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
F3378347: D4243.id13511.diff
Wed, Nov 27, 9:46 AM
F3378206: D4243.id13445.diff
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
Unknown Object (File)
Thu, Nov 7, 10:51 PM
Unknown Object (File)
Thu, Nov 7, 10:10 PM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #13445)

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