Skip to content

[CP Staging] Revert "Remove inline-flex from comment anchors so links wrap inline"#92695

Merged
lakchote merged 1 commit into
Expensify:mainfrom
Pujan92:revert-92387-claude-anchorInlineWrapFix
Jun 4, 2026
Merged

[CP Staging] Revert "Remove inline-flex from comment anchors so links wrap inline"#92695
lakchote merged 1 commit into
Expensify:mainfrom
Pujan92:revert-92387-claude-anchorInlineWrapFix

Conversation

@Pujan92

@Pujan92 Pujan92 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Reverts #92387

@Pujan92 Pujan92 requested review from a team as code owners June 4, 2026 14:34
@melvin-bot melvin-bot Bot requested review from heyjennahay and mjasikowski and removed request for a team June 4, 2026 14:34
@melvin-bot

melvin-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

@mjasikowski Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d7cdf2c48d

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

textDecorationLineStyle,
styles.textUnderlinePositionUnder,
styles.textDecorationSkipInkNone,
styles.dInlineFlex,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Let comment links wrap inline

When a chat comment contains a multi-word anchor in a narrow column, re-applying display: inline-flex to the rendered link text makes the link an atomic inline-flex box on web, so it cannot break at spaces and instead gets pushed to a new line or overflows rather than wrapping with the surrounding comment text. This reintroduces the behavior that the reverted change removed; the link text should stay inline text so long links like page titles can wrap naturally.

Useful? React with 👍 / 👎.

@lakchote lakchote changed the title Revert "Remove inline-flex from comment anchors so links wrap inline" [CP Staging] Revert "Remove inline-flex from comment anchors so links wrap inline" Jun 4, 2026

@lakchote lakchote left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lakchote lakchote merged commit 8c5a2a3 into Expensify:main Jun 4, 2026
27 of 33 checks passed
@lakchote

lakchote commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Not an emergency, straight revert

@melvin-bot melvin-bot Bot added the Emergency label Jun 4, 2026
@melvin-bot

melvin-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

@lakchote looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@lakchote lakchote removed the Emergency label Jun 4, 2026
OSBotify pushed a commit that referenced this pull request Jun 4, 2026
…neWrapFix

[CP Staging] Revert "Remove inline-flex from comment anchors so links wrap inline"

(cherry picked from commit 8c5a2a3)

(cherry-picked to staging by lakchote)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Jun 4, 2026
@OSBotify

OSBotify commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

OSBotify commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.3.99-4 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 Help site review: no documentation changes required.

This PR reverts #92387, re-adding styles.dInlineFlex (display: inline-flex) to comment anchors in AnchorRenderer.tsx. It is a purely visual/CSS change to how hyperlinks wrap inside chat messages — it does not add, remove, or rename any feature, setting, tab, button, or workflow.

The help site articles under App/docs/articles document product behavior (features, settings, billing, integrations, workspaces, etc.), not the low-level CSS rendering of how links wrap at word boundaries in comments. Nothing in the help site references this behavior, so no draft docs PR was created.

If you believe a specific help article is affected, let me know which one and I'll take another look.

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

🚧 @lakchote has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

OSBotify commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/lakchote in version: 9.3.99-9 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

OSBotify commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/lakchote in version: 9.4.0-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 Help site review — no documentation changes required

This PR reverts #92387 by re-adding styles.dInlineFlex (display: inline-flex) to the comment anchor renderer in AnchorRenderer.tsx.

The change is a purely visual CSS rendering tweak governing how multi-word hyperlinks inside chat comments wrap at line breaks (atomic inline-flex box vs. normal inline text flow). It does not add, remove, or alter any feature, setting, tab, button, or workflow that is documented on the help site.

I reviewed App/docs/articles for any content describing link rendering or comment formatting behavior and found nothing that this change would make inaccurate. Accordingly, no draft help site PR was created — there are no doc updates to make.

If you believe a specific help article is affected, let me know which one and I'll take another look.

@OSBotify

OSBotify commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.0-7 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

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

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants