-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[23304] Update tasks status color. #23912
[23304] Update tasks status color. #23912
Conversation
The entire system message should use the textSupporting color. The task title should not appear in the regular text color. Can you please update? cc @JmillsExpensify @trjExpensify |
From what I see, Lines 417 to 419 in cbf6666
|
Hmm, I didn't modify that part. From what I know, it was not discussed in the issue/proposal, but it's very easy to update if needed.
"Test Title" is the actual title which I've gave to the task. Should I leave its color as it was, or to update it? |
Oh, interesting. Can you share any existing system messages that use that style for reference? My understanding was that the entire system message should appear in the textSupporting color. |
I don't know if any system message uses that style. My understanding is almost the same. The only difference is that I understood that only the task's status is part of the Let me know if I misunderstood and should update. |
Yeah, again, my understanding is that the entire system message should use the text supporting color. So let's update it to use that. Also, this should be a shared component that all system messages use. Is there a way to dry this up to make sure we're using the same, consistent system message component everywhere? |
So, you're saying that the task's title is considered a system message? |
Yes, we are showing the title within the system message itself. |
There's this existing component: InlineSystemMessage, which uses: Lines 3152 to 3157 in dc32700
Don't know if the I think I have to wait for @ArekChr & @dangrous feedback in order to know if it's ok to implement it like that. |
We can achieve this by combining |
I'm not so much talking about styles, I'm also talking about the code here. I would imagine we will use system messages in many other situations, not just tasks. |
@JmillsExpensify do you mind chiming in here? Where else do we currently use system messages? |
This style is used for inline system errors, has different font size and margins |
I think we may make it more customizable as to receive and apply only the Or, we may create a new component in a similar manner. |
Sorry to clarify, this system message is different from the inlineSystemError messages. Let's ignore that as it relates to this particular project. Here is an example of where we'd use system messages elsewhere, in a different project: The point being, let's not duplicate the work and have multiple ways in the code to render a system message. It's a shared style that will be used all over the platform, not just for tasks. But that being said, I can see where that is something we should tackle elsewhere, and this issue should just be about updating the color. cc @jasperhuangg @thienlnam - can you comment on the idea of drying this up for future use? |
@shawnborton |
@shawnborton, what do you think about adding a ":" as a separator between the message and the task name? |
Web screenshot looks good. No need to add the |
@shawnborton @ArekChr |
If refactoring the current component as to make it customizable through props will be desired, I'm available to make that PR for no bounty/payment afterwards. |
@shawnborton sorry for the delay! We already use system messages on |
Also very minor but important point. All system messages begin with a lowercase letter, not a capitalized one. |
Reviewer Checklist
Screenshots/Videos |
Screenshots look good, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@dangrous I'm rechecking the changes on all platforms and updating the Screenshots now. Please wait before merging, I want to make sure all is good! Thanks! |
Done updating my screenshots too, sorry for the delay! @dangrous all good now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.49-0 🚀
|
🚀 Deployed to staging by https://github.com/dangrous in version: 1.3.50-0 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.49-3 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
Details
Task status used to be a link in the past, but it's not anymore. Updated it's color from a blue link color to a gray color.
Fixed Issues
$ #23304
PROPOSAL: #23304 (comment)
Tests
Same as QA Steps.
Offline tests
Same as QA Steps.
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android