-
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
Move all header buttons to overflow menu #27748
Conversation
@madmax330 Please 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] |
Still need to translate the messages in Spanish |
Screenshots please! |
Added :) |
Nice, looks good so far - I like the leave icon too. |
@srikarparsi can you pull in a C+ 🙏🏽 |
Here's the "comment bubbles" icon (you can also find it in Figma here) |
Ah cool, 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.
This is looking good! Going to approve without the updated chat bubbles icon but it would be awesome if we could add that in to this.
Also wanted to just point out that while "Leave thread" shows up in a thread's overflow menu, "Leave room" does not show up in a room's overflow menu, only in the details panel. I don't think that was necessarily supposed to be addressed in this issue, but it's an inconsistency that's probably worth thinking about.
Cool yeah! We actually have an issue for that and I'll work on that one right after this one's merged :) |
This is ready for re-review @mollfpr, I'm waiting on feedback for the translations but other than that this is ready to be looked at again. |
Ah okay, if that exists on main then let's create a follow up issue to treat all of the rooms the same. Does that sound right @JmillsExpensify @trjExpensify ? |
Yeah, I thought this initiative was to add those options to all reports and within the overflow menu tbh. A separate PR for it sounds good though. |
Cool created an issue and assigned myself to it. I think the main initiative is to be able to join and leave threads and consolidating the header overflow menu was a side effect of that since we needed to add the |
Waiting to get access on Apple Developer to create a build on my phone and add screenshots. I think we can merge after that. |
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.
Looks good, we just need to test iOS. You should be able to continue with the physical iOS build stackoverflow, right? Else I can test on my test device later this evening
Just added the iOS screenshots so this should be ready to merge whenever you have a chance :) |
✋ 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/Julesssss in version: 1.3.75-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.75-12 🚀
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
@srikarparsi You removed the logic to hide the empty threads from LHN e67845c. Is this new expected behavior? We have an issue created for this here #29851 |
Responded on the issue |
if (!props.report.isPinned) { | ||
threeDotMenuItems.push({ | ||
icon: Expensicons.Pin, | ||
iconFill: themeColors.icon, |
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.
👋 Coming from #28535
This doesn't need an iconFill
, the color is already applied by default, but passing it here was overriding the behavior when the icon changes color when you hover over it
// Hide only chat threads that haven't been commented on (other threads are actionable) | ||
if (isChatThread(report) && canHideReport && isEmptyChat) { | ||
return false; | ||
} | ||
|
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 created an issue #29851
Details
Screenshots:
The join and leave thread buttons will be the chatbubbles icon but there's placeholders for now.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/318732
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests.
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
Screen.Recording.2023-09-26.at.1.04.44.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-09-26.at.1.17.42.PM.mov
Mobile Web - Safari
Screen.Recording.2023-09-26.at.1.19.31.PM.mov
Desktop
Screen.Recording.2023-09-26.at.1.21.11.PM.mov
iOS
Android
Having trouble with emulator, will try more tonight