-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD for payment 2024-10-17] [$250] Plural Remove Members on the workspace members page even when we only have one member selected #49961
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
Comments
Triggered auto assignment to @trjExpensify ( |
adrian-brc Your proposal will be dismissed because you did not follow the proposal template. |
Edited by proposal-police: This proposal was edited at 2024-09-30 23:16:29 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Plural Remove Members on the workspace members page even when we only have one member selected What is the root cause of that problem?We are using always using
App/src/pages/RoomMembersPage.tsx Line 276 in 8f5f609
App/src/pages/RoomMembersPage.tsx Line 371 in 8f5f609
App/src/pages/ReportParticipantsPage.tsx Line 269 in 8f5f609
App/src/pages/ReportParticipantsPage.tsx Line 393 in 8f5f609
What changes do you think we should make in order to solve the problem?
const confirmModalPrompt = useMemo(() => {
const approverAccountID = selectedEmployees.find((selectedEmployee) => Member.isApprover(policy, selectedEmployee));
if (!approverAccountID) {
return selectedEmployees.length === 1
? translate('workspace.people.removeMemberPrompt', {memberName: getDisplayNameForParticipant(selectedEmployees[0])})
: translate('workspace.people.removeMembersPrompt');
}
return translate('workspace.people.removeMembersWarningPrompt', {
memberName: getDisplayNameForParticipant(approverAccountID),
ownerName: getDisplayNameForParticipant(policy?.ownerAccountID),
});
}, [selectedEmployees, policy, translate]);
What alternative solutions did you explore? (Optional) |
PROPOSAL UPDATED
|
@trjExpensify Can i be the C+ for this issue? I reported this bug on slack |
Sure! |
Job added to Upwork: https://www.upwork.com/jobs/~021841413637223772836 |
Current assignee @allgandalf is eligible for the External assigner, not assigning anyone new. |
Edited by proposal-police: This proposal was edited at 2024-10-02 10:44:25 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Remove members displayed even if only one member selected What is the root cause of that problem?We're always using
What changes do you think we should make in order to solve the problem?Following the same pattern of this translation we can update
Line 883 in 4878161
Then for each place below, we only need to pass the App/src/pages/ReportParticipantsPage.tsx Line 269 in 4878161
App/src/pages/ReportParticipantsPage.tsx Line 393 in 4878161
App/src/pages/ReportParticipantsPage.tsx Line 269 in 4878161
App/src/pages/RoomMembersPage.tsx Line 276 in 4878161
App/src/pages/RoomMembersPage.tsx Line 371 in 4878161
When we implement this, we should wrap this logic and other place that we use the new translation in OPTIONAL: We can make the same approach for
Line 3352 in 4878161
With this approach we can remove What alternative solutions did you explore? (Optional) |
Updated proposal
|
I will review this on monday not overdue |
@allgandalf did you review? |
Sorry I was occupied with a deploy blocker yesterday, Reviewing now ♻️ |
♻️ both @Krishna2323 's and @nkdengineer 's proposals solve this bug. 🟢 Both have the correct RCA which addresses why the bug occurs 💭 In particular I feel @nkdengineer 's proposal is a bit of over-engineering and @Krishna2323 's proposal is a simplified approach towards this bug. So I would leave it upto the internal engineer for this case which one to select. I would prefer @Krishna2323 's proposal though. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @rlinoz, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@allgandalf I don't think so.
Lines 883 to 885 in 4878161
App/src/components/Search/SearchPageHeader.tsx Lines 146 to 148 in 4878161
cc @rlinoz |
Lets see what @rlinoz opinion is here 😄 |
We also have translation, as I suggested in my proposal, so I don't think that matters much. My proposal does solve the issue in a way that is commonly used in many places.
App/src/pages/workspace/categories/WorkspaceCategoriesPage.tsx Lines 377 to 378 in 41c0b9d
App/src/pages/workspace/reportFields/ReportFieldsListValuesPage.tsx Lines 343 to 344 in 41c0b9d
cc: @rlinoz |
From the readme of the project it looks like we prefer to implement plurals with the count option, also checked internally and that is the general feel as well, so let's go with @nkdengineer's proposal |
📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.47-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-17. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Regression Test Proposal
Verify that: Remove member displayed as only one member selected
Verify that: modal prompt displayed as only one member selected Do we agree 👍 or 👎 |
It's a pretty minor language thang this, so I think we can skip the regression test. Payment summary as follows:
Paid, closing! |
Uh oh!
There was an error while loading. Please reload this page.
If
you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!Version Number: 9.0.41-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @allgandalf
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1727729303045069
Action Performed:
1 selected
pillExpected Result:
Remove member displayed as only one member selected
Actual Result:
Remove members displayed even if only one member selected
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @trjExpensifyThe text was updated successfully, but these errors were encountered: