-
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
chore: update task preview UI #48552
Conversation
@dannymcclain @dukenv0307 One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Screenshots are looking good so far. cc'ing @Expensify/design because this is a decently significant visual change to the product and I want them to be able to review too if they want. |
Codes look good |
Reviewer Checklist
Screenshots/Videos |
LGTM |
Small nitpick but I wonder if we should be reusing the same exact avatar size as the thread indicator? Just to try to reduce the amount of sizes we have on the screen for the same kind of thing. |
@shawnborton Ah snap, not a bad idea at all!! Here's a mock comparing thread indicator (28px), your proposed task avatar size (28px), and the original task avatar size (24px). Whatcha think? To me they are like... barely different at all. So I'd be down to use the |
Dope, thanks for laying it out like that! I like going with 28px as well, I like that it's a size we're using in other places as well. Let's see what @dubielzyk-expensify thinks too! |
Great call. Dig it. Just on the completed task look. We don't want any sort of strikethrough on the avatar right? Or fade of the avatar? A part of me kinda wishes there was some visual indication that the task is done on the avatar too. But maybe it's just better to leave it for now? Probably just do nothing, right? I could see the fade, but I'm not super passionate |
Yeah, I think it looks too much like offline pending delete tbh. |
Yeah, I think the |
I don't mind the Fade version though... happy to go with whatever you all think is best! |
Man I actually really like the Seems like all the designers like that version but don't feel super duper passionate. How shall we decide? |
If we're all really feeling the fade version, then I think it's totally okay if we do it personally. |
I can see where it looks a bit like pending delete but pending delete should look even more faded out, right? |
Yeah I think the whole entire row/message would be faded. I think it would probably be fine. |
Sounds like @Expensify/design wants the fade? @dominictb could you update your PR to make this a reality? |
Not gunna' fight it. Fifty Shades of Fade™️ |
@shawnborton @dannymcclain What should the opacity be? |
Let's do |
I hope so otherwise it does look exactly like pending delete... 🙈🏃♂️ |
Haha yes Shawn and Tom are absolutely right. Only the avatar should get reduced opacity when it's done. It looks like in your screenshot the whole row is getting reduced opacity which is not what we want here (as that is the pending offline pattern as Tom pointed out). So checkmark and text should be full opacity, just the avatar should be reduced to 50% opacity. |
Just to confirm here:
right @dannymcclain @shawnborton @trjExpensify ? |
Sounds correct to me.
…On Sun, Sep 8, 2024 at 6:01 PM Dominic ***@***.***> wrote:
Just to confirm here:
- The checkbox and the text won't be faded off
- The avatar will be faded off
- The text will be strikethrough
right @dannymcclain <https://github.com/dannymcclain> @shawnborton
<https://github.com/shawnborton> @trjExpensify
<https://github.com/trjExpensify> ?
—
Reply to this email directly, view it on GitHub
<#48552 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARWH5VFMTGOF2IZL2GQA4LZVRYF3AVCNFSM6AAAAABNUH46EWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWG4ZTMNRVHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Exactly! |
New screenshot cc @dukenv0307 |
That looks better! |
Looks great 🥲 |
Great stuff, let's get this thing merged! |
Looking good! @Expensify/design seeing these tasks with the bigger avatar... I'm starting to wonder if we should just use our default size checkbox (20px) instead of the smaller one we're currently using (16px). Here are some side-by-sides (Current 16px on the left, 20px on the right): Note If we want to make a change like this, I would propose it being a follow-up and not getting in the way of merging this avatar change. EDIT: I updated the mocks because I realized there was a goof in them—I didn't have all the avatars correctly shown for completed tasks. |
Super down to standardize on the... standard size of 20px here! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
<View style={[styles.alignSelfCenter]}> | ||
<RenderHTML html={isTaskCompleted ? `<completed-task>${htmlForTaskPreview}</completed-task>` : htmlForTaskPreview} /> | ||
</View> |
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.
FYI, This caused this issue: #49086. More info in this proposal: #49086 (comment)
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.
This also causes the issue #50267
Details
Fixed Issues
$ #48409
PROPOSAL: #48409 (comment)
Tests
Verify that: all assigned task previews should
Not include a mention
Use only the avatar of the assigned user instead
Clicking on the task preview row (incl. the avatar) will navigate to the task, not the profile.
Verify that no errors appear in the JS console
Offline tests
QA Steps
Verify that: all assigned task previews should
Not include a mention
Use only the avatar of the assigned user instead
Clicking on the task preview row (incl. the avatar) will navigate to the task, not the profile.
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop