Skip to content

Fix: Improve UX by explaining email edit restriction for multi-workspace users #18750

Open
Rahmanhusain wants to merge 2 commits intotwentyhq:mainfrom
Rahmanhusain:rahman_husain
Open

Fix: Improve UX by explaining email edit restriction for multi-workspace users #18750
Rahmanhusain wants to merge 2 commits intotwentyhq:mainfrom
Rahmanhusain:rahman_husain

Conversation

@Rahmanhusain
Copy link

Fix: inform users why email edit is disabled for multi-workspace accounts (#18733)

Issue

Users were unable to change their email even when:

  • Email field is enabled in Security settings
  • User has permission to edit profile details

This occurs when the user belongs to multiple workspaces, but there was no feedback explaining why the edit action was disabled, causing confusion.

Solution

  • Added a tooltip/popup on hover over the email edit (pen) icon
  • Tooltip informs users that email cannot be changed if they belong to 2 or more workspaces

Result

  • Provides clear feedback to users
  • Reduces confusion around email edit restrictions
  • Improves overall user experience

Notes

  • No changes to permission or backend logic
  • Purely a UI/UX improvement

Fixes twentyhq/core-team-issues#2335

Copilot AI review requested due to automatic review settings March 18, 2026 20:32
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@github-actions
Copy link
Contributor

Welcome!

Hello there, congrats on your first PR! We're excited to have you contributing to this project.
By submitting your Pull Request, you acknowledge that you agree with the terms of our Contributor License Agreement.

Generated by 🚫 dangerJS against ada8591

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the Settings → Profile UX by explaining why the email edit action is disabled for users who belong to multiple workspaces, without changing any permission/backend logic.

Changes:

  • Extend useCanEditProfileField to return a isBlockedByWorkspaceLimit flag alongside canEdit.
  • Show an AppTooltip on the disabled email edit (pencil) action when the email edit restriction is due to multi-workspace membership.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/twenty-front/src/modules/settings/profile/hooks/useCanEditProfileField.ts Adds an explicit “blocked by workspace limit” reason for the email field.
packages/twenty-front/src/modules/settings/profile/components/EmailField.tsx Renders a tooltip explaining the multi-workspace restriction when email editing is disabled.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

anchorSelect={`#${emailEditTooltipAnchorId}`}
content={t`You can't change your email because you belong to 2 or more workspaces.`}
delay={TooltipDelay.noDelay}
place="top"
Comment on lines 135 to 149
@@ -130,6 +148,14 @@ export const EmailField = () => {
type="button"
/>
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files


Since this is your first cubic review, here's how it works:

  • cubic automatically reviews your code and comments on bugs and improvements
  • Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
  • Add one-off context when rerunning by tagging @cubic-dev-ai with guidance or docs links (including llms.txt)
  • Ask questions if you need clarification on any suggestion

@charlesBochet
Copy link
Member

@Bonapara what do you think?

@charlesBochet charlesBochet self-assigned this Mar 22, 2026
@charlesBochet charlesBochet added the blocked: design needed This doesn't seem right label Mar 22, 2026
@Bonapara
Copy link
Member

@Rahmanhusain could you provide a screenshot?

@Rahmanhusain
Copy link
Author

Rahmanhusain commented Mar 23, 2026

@Rahmanhusain could you provide a screenshot?

@Bonapara yes sure!!
Screencast from 2026-03-23 16-01-29.webm

@Bonapara
Copy link
Member

Looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked: design needed This doesn't seem right

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inform user when they can't change their email if they belong to 2 or more workspaces

4 participants