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
[Workspace Feeds] Double header on the Expensify Card #48944
Version Number: Reproducible in staging?: Reproducible in production?: 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: Slack conversation:
Action Performed:
Add account to workspaceFeeds beta
Sign in with test account
Select Manage my team’s expenses
Enter any business name / personal name
Navigate to the workspace editor of the newly created workspace
Navigate to More features tab
Toggle on the feature
Navigate to the Expensify Card page
Select Issue new card, give the user a $2 limit
Follow the steps for an OPEN bank account (option 3) of this SO
Finish the setup process
Issue a card
Navigate back to the Expensify Card page
Expected Result:
Only see one Expensify Card header.
Actual Result:
Two Expensify Card headers are shown.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Activity
melvin-bot commentedon Sep 10, 2024
Triggered auto assignment to @dylanexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.abzokhattab commentedon Sep 10, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Double header on the Expensify Card
What is the root cause of that problem?
A regression from this PR where here
App/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPage.tsx
Lines 46 to 60 in 0a56250
WorkspacePageWithSectionsand theWorkspaceExpensifyCardListPagehave the header componentWhat changes do you think we should make in order to solve the problem?
we should move the
WorkspaceExpensifyCardListPageoutside theWorkspacePageWithSectionsPOC
Nodebrute commentedon Sep 10, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Double header on the Expensify Card
What is the root cause of that problem?
We are adding headerContent twice once here in WorkspaceExpensifyCardPage.tsx and then again in WorkspaceExpensifyCardListPage.tsx
What changes do you think we should make in order to solve the problem?
We can remove
HeaderWithBackButtonandScreenWrapperfrom hereApp/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx
Lines 108 to 119 in 488d5ff
Optional: We can move headerButtons in
WorkspaceExpensifyCardPage.tsxWhat alternative solutions did you explore? (Optional)
github-actions commentedon Sep 10, 2024
@No_action
VickyStash commentedon Sep 11, 2024
Hey, I'm Viktoryia from Callstack, I've been working on this page, so I can take a look.
allgandalf commentedon Sep 13, 2024
Lets close this issue, PR was deployed