-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] There is no way to identify the primary workspace, making it appear essentially random #52373
Comments
Triggered auto assignment to @twisterdotcom ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.There is no way to identify the primary workspace, making it appear essentially random What is the root cause of that problem?New feature What changes do you think we should make in order to solve the problem?
Note I don't think there is an api endpoint used in new dot to update the What alternative solutions did you explore? (Optional)Result |
Current assignee @twisterdotcom is eligible for the NewFeature assigner, not assigning anyone new. |
Triggered auto assignment to @dubielzyk-expensify ( |
Adding Design to show exactly how we want this to appear based on the outcome of the Slack thread here: https://expensify.slack.com/archives/C07NZ8B1VTQ/p1731356570733819?thread_ts=1731353082.160469&cid=C07NZ8B1VTQ |
Extending @dannymcclain's mock to add in the rest of the things asked in the Slack thread: Tooltip on cc @jamesdeanexpensify for copy 👀 on the tooltip cc @Expensify/design |
Looks great to me! |
Edited by proposal-police: This proposal was edited at 2024-11-13 10:29:53 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.There's no way to know which workspace is primary, nor control it, so it's essentially random. What is the root cause of that problem?What changes do you think we should make in order to solve the problem?A. Display the badge "Default" and its tooltip "This workspace will be used when sending receipts to [email protected]"
{!!isDefault && (
<Tooltip
maxWidth={200}
text={'This workspace will be used when sending receipts to [email protected]'}
>
<View style={[styles.flexRow, styles.gap2, styles.alignItemsCenter, styles.justifyContentEnd]}>
<Badge
text={'Default'}
textStyles={styles.textStrong}
badgeStyles={[styles.alignSelfCenter, styles.badgeBordered]}
/>
</View>
</Tooltip>
)}
const [activePolicyID] = useOnyx(ONYXKEYS.NVP_ACTIVE_POLICY_ID); and when using isDefault={item.policyID === activePolicyID}
B. Display the option "Set as default workspace"
if (item.policyID !== activePolicyID && isOwner) {
threeDotsMenuItems.push({
icon: Expensicons.Star,
text: 'Set as default workspace',
onSelected: () => setPolicyAsDefault(item.policyID)
});
}
C. Handle
D. Always move the "Default" workspace to top.
so that if the report has What alternative solutions did you explore? (Optional) |
Lovely, thanks @dubielzyk-expensify! |
Getting final votes on copy here. |
For the tooltip copy when you hover over the
|
Looks good! |
Job added to Upwork: https://www.upwork.com/jobs/~021857052923539231166 |
Assigned, thank you! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@grgia, we need your help 🙇🏻. Could you please check this comment when you have some time? Thanks! |
@Krishna2323 I was under the impression no BE changes were required for this |
@grgia, we don't have the API endpoint to update the default policy in NewDot, so we need the endpoint. It might already exist in the backend. |
@Krishna2323, are you saying we need to add a new endpoint I can look into the existing oldDot command if needed. What would be returned? |
@grgia, yeah, we don't have any endpoint to update active policyID in NewDot.
it should accept policyID and return: {
"jsonCode": 200,
"requestID": "8ec7939cea8159d6-DEL",
"onyxData": [
{
"key": "nvp_expensify_activePolicyID",
"onyxMethod": "merge",
"value": "newActivePolicyID"
}
],
"previousUpdateID": 3240252142,
"lastUpdateID": 3240911729
} |
@grgia, please let us know the next steps when you are available. Thanks! |
Ah gotcha, so we just need the API call for setting the NVP? I can make a BE issue |
yes |
BE issue created here - https://github.com/Expensify/Expensify/issues/452492 cc @Krishna2323 |
Thanks @grgia 🙌🏻 |
Hey @Krishna2323 I was looking into it and it seems like we could use the |
@grgia App/src/libs/API/parameters/SetNameValuePairParams.ts Lines 1 to 6 in 082e14b
|
@Krishna2323 why would we set the ActivePolicyID as a boolean? |
Oh 🤦 lol we're adding |
Hey @Krishna2323 can you please prioritize this one so we can wrap it up? thanks! |
@grgia, the PR was already ready for your final review, I just resolved a minor conflict. |
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.60-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @quinthar
Slack conversation (hyperlinked to channel name): ts_external_expensify_retain
Action Performed:
Prerequisite: User have multiple workspaces
Expected Result:
Add some indicator in the workspace list as to which is primary
Add some ability to make a given workspace primary
Actual Result:
There's no way to know which workspace is primary, nor control it, so it's essentially random.
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: @Krishna2323The text was updated successfully, but these errors were encountered: