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
Consolidate the default-workspace eligibility rule across report and expense flows #105701
The App uses three different checks to decide whether a workspace can be the default destination for a new report or expense. They give different answers for archived, join-pending and pending-delete workspaces, so the same user can get a different default depending on which flow they start from.
Member not pending delete (skipped when employeeList is empty), can create expenses, group workspace, workspace not pending delete, not Teachers Unite, plus per diem / time filters
Expected
One shared "can this workspace be the default" rule that all three call sites use. Flow-specific filters (for example, per diem and time tracking for moving expenses) stay as extra checks on top of the shared rule.
Scope
Pick one definition for archived, join-pending and pending-delete workspaces and apply it everywhere.
About 20 flows depend on useDefaultExpensePolicy, so this needs its own PR and a full QA pass across those flows.
This is a code-quality refactor with small behaviour fixes for edge cases. It does not change the domain preferred-workspace logic shipped in Fix/align workspace selector logic v2.
Got draft PR out here. Didn't manage to record all the vids yet but the web is there. @trjExpensify could you take a look @ the changes & vid and confirm that they are ok ?
Got draft PR out here. Didn't manage to record all the vids yet but the web is there. @trjExpensify could you take a look @ the changes & vid and confirm that they are ok ?
@trjExpensify Could you take a look when you have a chance? Thanks!
Activity
huult commentedon Nov 6, 2026
@jmusial, do you have a timeline for when you'll start working on this?
jmusial commentedon Nov 6, 2026
I think next week. Got couple perf issues that take priority.
melvin-bot commentedon Nov 9, 2026
@jmusial, @huult Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
huult commentedon Nov 10, 2026
It's not overdue. @jmusial is currently working on another higher-priority ticket.
jmusial commentedon Nov 10, 2026
I'll try to get the PR out today
jmusial commentedon Nov 10, 2026
Got draft PR out here. Didn't manage to record all the vids yet but the web is there.
@trjExpensify could you take a look @ the changes & vid and confirm that they are ok ?
huult commentedon Nov 16, 2026
CC @trjExpensify on this comment.
expensify-chore-bot commentedon Nov 19, 2026
@jmusial, @huult Whoops! This issue is 2 days overdue. Let's get this updated quick!
huult commentedon Nov 22, 2026
@trjExpensify Could you take a look when you have a chance? Thanks!
expensify-chore-bot commentedon Nov 25, 2026
@jmusial, @huult Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
huult commentedon Nov 26, 2026
@trjExpensify, could you please check @jmusial's comment?
trjExpensify commentedon Nov 27, 2026
Oh sorry, I just found this thread in trash for some reason. 🤔 Looking at the PR now.