You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Distance rates - Empty space between distance rates after deleting and adding distance rate #39083
Version Number: 1.4.57-2 Reproducible in staging?: y Reproducible in production?: n Issue found when executing PR:#38799 Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
User is admin of Collect workspace.
There is only one distance rate in the workspace.
Go to staging.new.expensify.com.
Go to Profile > Workspaces > Collect workspace.
Go to Distance rates.
4, Add a distance rate.
Delete the distance rate in Step 4.
Add another distance rate.
Expected Result:
There will be no spacing between first and second distance rate.
Actual Result:
There is spacing between first and second distance rate.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
Distance rates - Empty space between distance rates after deleting and adding distance rate
What is the root cause of that problem?
The main problem with the issue is that when we remove distance rates item we hide an element, but after the last PR we add a margin for all elements (even when this element is hidden, but not yet completely removed )
@thienlnam, I looked into the code and it appears to be a problem with OfflineWithFeedback component. I need sometime to get to a solution without any regression. Is that okay? Will probably raise a PR tomorrow.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
Activity
github-actions commentedon Mar 27, 2024
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Mar 27, 2024
Triggered auto assignment to @thienlnam (
Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.kbecciv commentedon Mar 27, 2024
We think that this bug might be related to #wave-control
ZhenjaHorbach commentedon Mar 27, 2024
Regression from this PR
#38454
Proposal
Please re-state the problem that we are trying to solve in this issue.
Distance rates - Empty space between distance rates after deleting and adding distance rate
What is the root cause of that problem?
The main problem with the issue is that when we remove distance rates item we hide an element, but after the last PR we add a margin for all elements (even when this element is hidden, but not yet completely removed )
App/src/components/SelectionList/TableListItem.tsx
Line 36 in e89a1e4
What changes do you think we should make in order to solve the problem?
To fix this issue we can add new prop for
BaseListItem(contentContainerStyle)App/src/components/SelectionList/TableListItem.tsx
Line 32 in e89a1e4
Then pass this new prop for
OfflineWithFeedback(InsideOfflineWithFeedbackwe already use this prop )App/src/components/SelectionList/BaseListItem.tsx
Line 61 in e89a1e4
And we need to update this line (In this case, we will add styles only for visible elements)
contentContainerStyle={styles.mb3}App/src/components/SelectionList/TableListItem.tsx
Line 36 in e89a1e4
What alternative solutions did you explore? (Optional)
NA
thienlnam commentedon Mar 27, 2024
Not a blocker / @Krishna2323 & @rushatgabhane Are you able to spin up a PR for this?
ZhenjaHorbach commentedon Mar 27, 2024
If no one answers, I can )
rushatgabhane commentedon Mar 27, 2024
@thienlnam gimme a moment, I'll send a fix
Krishna2323 commentedon Mar 27, 2024
@rushatgabhane, sorry, I was writing a proposal, pls let me handle this if you haven't started since it came from my PR :)
rushatgabhane commentedon Mar 27, 2024
@Krishna2323 yes please go ahead, that'd be great! 🙇♂️
Krishna2323 commentedon Mar 27, 2024
@thienlnam, I looked into the code and it appears to be a problem with
OfflineWithFeedbackcomponent. I need sometime to get to a solution without any regression. Is that okay? Will probably raise a PR tomorrow.thienlnam commentedon Mar 27, 2024
Yeah, not a problem - thanks!
Krishna2323 commentedon Apr 2, 2024
@rushatgabhane, PR ready for review. Sorry for delay, I was blocked by this issue.
melvin-bot commentedon Apr 25, 2024
This issue has not been updated in over 15 days. @rushatgabhane, @thienlnam, @Krishna2323 eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
melvin-bot commentedon Jun 21, 2024
@rushatgabhane, @thienlnam, @Krishna2323, this Monthly task hasn't been acted upon in 6 weeks; closing.
If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead.