Page MenuHomePhabricator

[native] changed name of loginText to whiteText
ClosedPublic

Authored by ginsu on Apr 7 2023, 10:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 3:29 AM
Unknown Object (File)
Wed, Nov 6, 3:29 AM
Unknown Object (File)
Wed, Nov 6, 3:29 AM
Unknown Object (File)
Tue, Nov 5, 2:06 AM
Unknown Object (File)
Oct 27 2024, 2:20 AM
Unknown Object (File)
Oct 27 2024, 2:20 AM
Unknown Object (File)
Oct 27 2024, 2:20 AM
Unknown Object (File)
Oct 27 2024, 2:20 AM
Subscribers

Details

Summary

For the emoji avatar creation screen, I need a white color value. In the colors.js file there is a color entry for loginText which is white. I noticed that it was only being used in one place, so changed the name from loginText to whiteText so that it could be better used in both places

Test Plan

Searched for all uses of loginText and saw that it was used in one place. After this change, I checked the login screen and everything looked the same as it did before:

Screenshot 2023-04-10 at 2.29.33 PM.png (1×1 px, 1 MB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: ashoat, atul.
ginsu requested review of this revision.Apr 7 2023, 10:45 AM
ashoat requested changes to this revision.Apr 7 2023, 5:58 PM
ashoat added inline comments.
native/themes/colors.js
96 ↗(On Diff #24818)

Why aren't we using purpleButton for this? The longer you make this list, the harder it is to maintain a consistent design system. Please try to be a thoughtful steward of the codebase and minimize the amount of maintenance work / debt you're putting on the team in the future

97–98 ↗(On Diff #24818)

Can we entirely avoid having any avatar-specific entries here? Please consult Ted about which of the existing options would be best to use, and if none are good then consult him on whether one of the existing options should be updated to match these new designs. If you guys are absolutely sure we need new styles, think about where else in the app we might use them, and try to give them a title that indicates how they might be used (eg. "modal", "panel", "list")

My instinct is that this is a "panel" situation (since it's coming from the Profile page) but I'm not sure

158 ↗(On Diff #24818)

The purpleLink color appears to differ in light mode from what Ted proposed for editEmojiText. This is the kind of concern you need to bubble up to Ted. We need to figure out where this is used, and whether we want to have a different design there vs. in this new avatar screen (likely no, we want them to be consistent)

It's all of our collective responsibility to maintain a consistent design system. Please anticipate this feedback going forward any time you're expanding this list... we should have a really good reason for introducing new entries here

This revision now requires changes to proceed.Apr 7 2023, 5:58 PM
native/themes/colors.js
158 ↗(On Diff #24818)

It's all of our collective responsibility to maintain a consistent design system. Please anticipate this feedback going forward any time you're expanding this list... we should have a really good reason for introducing new entries here

Noted. Moving forward I will be more conscious of this. When I saw specific color values for things like siwe, community drawer, and typeahead I thought it was fine to just add in a color for a specific use case. Should I create a follow-up task to track cleaning this up?

native/themes/colors.js
158 ↗(On Diff #24818)

Yeah that seems like a good idea. I just checked and I can't find an existing task for it, but I might be missing something. Worth checking with Ted, and making sure he's aware of this file

native/themes/colors.js
158 ↗(On Diff #24818)
ginsu edited the summary of this revision. (Show Details)
ginsu edited the test plan for this revision. (Show Details)

remove avatar specific entries and changed name of loginText => whiteText

ginsu retitled this revision from [native] introduce colors for emoji avatar creation screen to [native] changed name of loginText to whiteText.Apr 10 2023, 11:35 AM
ginsu edited the summary of this revision. (Show Details)
ginsu edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Apr 10 2023, 11:40 AM