Fix: Prevent duplicate email display in header popover#722
Fix: Prevent duplicate email display in header popover#722ahmetskilinc merged 3 commits intoMail-0:stagingfrom
Conversation
* improved search * dates working * migrate over to utils * Add email input component for composing emails * Refactor email input handling and send email functionality * Remove unused filteredContacts useState variables * Remove unnecessary contact index state management and effects * Refactor key validation logic in EmailInput component * Add CC and BCC buttons with functionality * Refactor email composer button text and icons * keyboard open and close email * uneeded file * Enhance search functionality by appending query terms to folder-specific searches, improving search bar state management, and refining search value handling across components. * ui fix * ui fix * Refactor search form initialization and reset logic * reply fix (Mail-0#720) --------- Co-authored-by: Nizzy <nizabizaher@gmail.com> Co-authored-by: nizzy <140507264+nizzyabi@users.noreply.github.com>
|
Someone is attempting to deploy a commit to the Zero Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis change updates the mail display component to improve how the sender's information is shown in the details popover. Specifically, the sender's email address is now only displayed if it is different from the sender's name. This prevents redundant display of the same email address when the sender's name is identical to their email, streamlining the information presented in the UI. No other logic or exported entities are affected. Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Fixes #721
This PR fixes an issue where the sender's email address was displayed twice in the "From:" line of the header details popover when the sender's display name was identical to their email address. This duplication often caused text to overflow the popover container.
The
MailDisplaycomponent now checks if the sender's name and email are the same. If they are, it only displays the name/email once, preventing the duplication and resolving the overflow.Type of Change
Areas Affected
Checklist
Additional Notes
This addresses the specific visual bug reported in issue #721 for a cleaner header details display.
Screenshots/Recordings
Before:

After:

Summary by CodeRabbit