Skip to content

Reset text-align in RenderHTML baseStyle and remove dInlineFlex from comment anchors - #93625

Merged
Beamanator merged 8 commits into
mainfrom
claude-renderHTMLLeftAlignAndInlineLinks
Jun 23, 2026
Merged

Beamanator merged 8 commits into
mainfrom
claude-renderHTMLLeftAlignAndInlineLinks

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

This re-fixes two linked regressions in a single, robust place instead of patching each render surface one at a time.

Background: Auto-linked emails/URLs that are the sole content of a message render their wrapped lines centered, because every chat row is wrapped in a PressableWithSecondaryInteraction that RNW renders as a native <button>, and the browser UA stylesheet sets text-align: center on <button>. text-align is inherited, so a bare inline anchor (with no resetting <Text> ancestor) obeys the inherited center. Earlier fixes added styles.textAlignLeft to individual surfaces (chat rows, then expense descriptions), which is whack-a-mole — the same bug regressed twice (#92668, then #93068).

This change:

  1. Add textAlign: 'left' to baseFontStyle. This is the baseStyle prop passed to TRenderEngineProvider in BaseHTMLEngineProvider.tsx, so it is applied to the root of every RenderHTML tree. Because textAlign inherits, this neutralizes the inherited UA center for every inline anchor on every surface at once. 'left' is consistent here because baseFontStyle already forces writingDirection: ltr. Content that intentionally centers (centered-text, comment[center]) sets its own styles on descendants, so it still wins.
  2. Remove styles.dInlineFlex from the comment anchors in AnchorRenderer.tsx so multi-word links wrap inline again (the original fix for [Due for payment 2026-07-01] [$250] Inline Hyperlinks in Chat Messages Break Onto Separate Line Instead of Wrapping Naturally #90362). With the baseStyle reset above in place, removing inline-flex no longer reintroduces the centering regression.

Fixed Issues

$ #92668
$ #90362
PROPOSAL: #92668 (comment)

Tests

// TODO: The human co-author must fill out the tests they ran before marking this PR as "ready for review". Please describe what tests you performed that validate your change worked.

Suggested manual checks (web, narrow pane):

  1. In a workspace chat, send a message whose only content is a long email or link (e.g. sjodinjsojsiojiodnjiosjionsjidnjsijiosndjoinjiosjidoj@gmail.com). Verify the wrapped second line is left-aligned.
  2. Create an expense with a long email/link as the description, open the expense, and verify the description is left-aligned.
  3. Send a message with multiple words where one is a long link, and verify the link wraps inline within the sentence (does not jump to its own line) — i.e. [Due for payment 2026-07-01] [$250] Inline Hyperlinks in Chat Messages Break Onto Separate Line Instead of Wrapping Naturally #90362 stays fixed.
  4. Verify intentionally-centered content (system/whisper messages) still renders centered.
  • Verify that no errors appear in the JS console

Offline tests

Same as tests.

QA Steps

// TODO: The human co-author must fill out the QA steps before marking this PR as "ready for review".

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

…comment anchors

Add textAlign: 'left' to baseFontStyle (the baseStyle applied to every
RenderHTML tree) so inline content never inherits the UA text-align: center
from the ancestor button. Remove styles.dInlineFlex from comment anchors so
multi-word links wrap inline again.

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@Pujan92

Pujan92 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot verify all use cases

  • all report actions
  • RenderHTML used places
  • All custom html elements defined in BaseHTMLEngineProvider

@MelvinBot
MelvinBot marked this pull request as ready for review June 16, 2026 05:15
@MelvinBot
MelvinBot requested review from a team as code owners June 16, 2026 05:15
@melvin-bot
melvin-bot Bot requested review from Pujan92 and removed request for a team June 16, 2026 05:15
@melvin-bot

melvin-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

@Pujan92 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]

@melvin-bot
melvin-bot Bot requested review from heyjennahay and removed request for a team June 16, 2026 05:15
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Done — this PR is now marked ready for review and I filled in the author checklist.

I checked the structural items (issue linked, testing steps written, and the Tests/Offline/QA steps present). I intentionally left these for you, since I can't attest to them on your behalf:

  • I added steps to cover failure scenarios — no failure path applies to this change; check if you agree, otherwise add one.
  • I turned off my network connection and tested it while offline
  • I tested this PR with a High Traffic account

I also left the Tests and QA Steps sections with their // TODO placeholders — those describe what you actually ran, so please replace them with your real testing notes before a reviewer picks this up. Suggested manual checks are already listed there as a starting point.

@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: 7fcef56910

ℹ️ 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".

Comment thread src/styles/index.ts Outdated
flex: 1,
lineHeight: variables.fontSizeNormalHeight,
...writingDirection.ltr,
textAlign: 'left',

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 Keep product-training tooltip text centered

When RenderHTML is centered by an outer container instead of a <centered-text> tag, this global reset overrides that intent. ProductTrainingContext wraps its tooltip RenderHTML in styles.textAlignCenter, while the translations render as <tooltip>... and the tooltip model only adds productTrainingTooltipText without its own textAlign. With this line, every tooltip root now gets an explicit left alignment, so multiline onboarding/product-training tooltips such as outstandingFilter and scanTestDriveTooltip render left-aligned instead of centered; please either scope the reset to the affected chat/comment surfaces or give the tooltip model/renderer its center alignment back.

Useful? React with 👍 / 👎.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Verification: textAlign: 'left' on the RenderHTML baseStyle

TL;DR — the change is safe for all custom HTML elements and all report actions, but it visually regresses 3 web surfaces that were centering RenderHTML content purely by CSS inheritance (centered → left). All three are easily fixed by wrapping their HTML in <centered-text>.

Because textAlign is now hard-set to left at the root of every RenderHTML tree, any surface that relied on inheriting text-align: center from a surrounding RN container no longer does. Children that set their own alignment still win, so centered-text and comment[center] are unaffected.

✅ Custom HTML elements (BaseHTMLEngineProvider)

Only two of the ~45 element models touch horizontal alignment, and both still behave correctly:

  • centered-text sets its own styles.textAlignCenter → overrides the root, still centered.
  • comment[center] uses flex: 1, justifyContent: 'center' (flex/vertical centering, not textAlign) → unaffected. Used only by TaskPreview.

Every other model (muted-*, mention-*, edited, rbr, deleted-action, task-title, strong, em, h1, blockquote, lists, success, victory, etc.) sets only color/size/spacing — left-align is correct for all of them.

✅ Report actions

All report-action content renders through <comment>/<muted-text>/mentions/etc., which all want left alignment — textAlign: left is the correct/intended result. The only "centered" report-action surface is the task-preview title (comment[center], vertical centering) → unaffected.

⚠️ 3 regressing surfaces (web only)

These wrap <RenderHTML> in a container whose text-align: center was previously inherited, with no centered-text inside the HTML:

# Site Wrapper style
1 ProductTrainingContext/index.tsx:268 View has styles.textAlignCenter; HTML is <tooltip>… with no inner center
2 IOURequestStepOdometerImage/index.tsx:188 <Text style={subTextFileUpload}> → textAlign: 'center'
3 CameraCapture.tsx:164 <Text style={subTextFileUpload}> → textAlign: 'center'

subTextFileUpload is textAlign: 'center'. Sites 2 & 3 render the multi-line receipt.deniedCameraAccess string (contains an <a> link), so the wrap will be visibly left-aligned. Site 1 affects multi-line product-training tooltips.

Recommended fix: wrap each of these HTML strings in <centered-text>…</centered-text>. This is already the established pattern in the codebase — note the same file IOURequestStepOdometerImage line 86 already uses <centered-text> for its other message. This also makes the centering robust on native (where textAlign doesn't inherit across component boundaries the way it does in DOM/web — so these may already be left-aligned on iOS/Android).

Sites checked and cleared

A scan of all ~160 RenderHTML / RenderHTMLSource / BaseHTMLEngineProvider usage sites found that every other centered surface either (a) already wraps its HTML in <centered-text> (e.g. OutcomeScreenBase, TransactionMerge empty state, merge-expenses messages) or (b) centers via flex (alignItems: center / screenCenteredContainer), which is unchanged. This includes the sign-in pages (Terms, Licenses, EmailDeliveryFailure), all domain pages, EnablePayments terms/KYC pages, and the modals (DecisionModal, FeatureTrainingModal, MigratedUserWelcomeModal).


The two changes themselves correctly fix the original regressions (#92668 / #93068 centering, #90362 inline wrapping). The 3 items above are pre-existing centered surfaces that the broader root reset now catches — worth wrapping in centered-text before merge.

🤖 Reply with @MelvinBot <feedback> to refine this verification.

@Pujan92

Pujan92 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot
Site 1 - it already has justifyContent, textAlignCenter is effectively a dead style here. We can remove that.
Site 2,3 - Both use the same translation and only used by them, wrap that(cameraAccess) translation in all translation files with

Verify.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Verified — both proposed fixes are correct. ✅

Site 1 (ProductTrainingContext) — textAlignCenter is dead, safe to remove.
The tooltip row has only three children — the lightbulb Icon, the RenderHTML text, and a close-Icon button (no text). The only text textAlignCenter ever reached was the tooltip text via inheritance, which the new root textAlign: 'left' now blocks. Item layout is handled by alignItemsCenter + justifyContentCenter, so removing textAlignCenter (and its entry in the useCallback deps array) is a visual no-op.

⚠️ One thing to confirm: removing it does not restore centering — the tooltip text is left-aligned either way now. For single-line tooltips this is invisible; multi-line tooltips will be left-aligned. If left is acceptable (matches native, where textAlign doesn't inherit across components anyway), removal is the right call. If you specifically want centered multi-line tooltips, you'd need <centered-text> instead.

Sites 2 & 3 (deniedCameraAccess) — wrapping the translation in <centered-text> is correct.
Confirmed receipt.deniedCameraAccess has no other usages — only the two RenderHTML call sites, both inside a subTextFileUpload (textAlign: center) wrapper:

Since there are no plain-text consumers, embedding the tags in the string is safe. The key is defined in 10 language files (en, es, fr, it, ja, zh-hans, nl, pl, de, pt-BR) — wrap each. The string contains an <a> link, which renders fine inside <centered-text> (block model; the anchor inherits the center). When editing the language files, only add the <centered-text>…</centered-text> tags — leave the existing string delimiters and per-locale typography untouched.

🤖 Reply @MelvinBot implement this and I can make all the edits, or @MelvinBot <feedback> to refine.

@Pujan92

Pujan92 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot any screenshot of ProductTrainingContext multiline tooltip

@MelvinBot

Copy link
Copy Markdown
Contributor Author

⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai.

Run details

@Pujan92

Pujan92 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot implement this #93625 (comment)

Wrap deniedCameraAccess in <centered-text> across all locales and drop the now-dead textAlignCenter from the product training tooltip, since the RenderHTML baseStyle text-align reset blocks inherited centering.

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team as a code owner June 16, 2026 12:08
@melvin-bot
melvin-bot Bot requested review from Beamanator and removed request for a team June 16, 2026 12:08
@melvin-bot

melvin-bot Bot commented Jun 16, 2026

Copy link
Copy Markdown

@Beamanator 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]

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Implemented the two fixes from the verification comment — pushed as 6a0e53ee76.

1. Product training tooltip — removed the now-dead styles.textAlignCenter from the tooltip row <View> and its useCallback deps array in ProductTrainingContext/index.tsx. It only ever reached the tooltip text via inheritance, which the new baseStyle textAlign: 'left' now blocks; layout is handled by alignItemsCenter/justifyContentCenter, so removal is a visual no-op.

2. deniedCameraAccess — wrapped the string in <centered-text>…</centered-text> across all 10 locales (en, es, fr, it, ja, zh-hans, nl, pl, de, pt-BR) so the centered subtext under "Take a photo" survives the root reset on both web and native. This restores centering robustly (the <a> link inherits the center — centered-text already wraps anchors elsewhere in the language files). Both render sites (odometer, camera scan) consume this key, and it has no plain-text consumers.

AI Tests run
  • ✅ npm run lint-changed — clean
  • ✅ npm run prettier — no changes needed
  • ✅ npm run typecheck-tsgo — no errors in any changed file
  • ✅ npm test -- tests/unit/TranslateTest.ts tests/unit/LocalizeTests.ts — 19/19 passed

Could not run locally (sandbox blocks env-var overrides / redirection):

  • react-compiler-compliance-check check-changed — the runner has an empty GITHUB_BASE_REF, which the script resolves to origin/ and aborts; I couldn't override the env var in this sandbox. The TSX change only removes a style reference and a deps-array entry (no new hooks/components/mutations), so it's compiler-safe and CI will validate it.

Pre-existing, unrelated: npm run typecheck reports duplicate UPDATE_FINANCIAL_FORCE_* identifiers in src/libs/API/types.ts — present on the branch before this change and untouched by it.

🤖 Reply with @MelvinBot <feedback> to refine.

@OSBotify

Copy link
Copy Markdown
Contributor

🦜 Polyglot Parrot! 🦜

Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues:

View the translation diff
diff --git a/src/languages/de.ts b/src/languages/de.ts
index 99005779fe6..fc8fca46b2a 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -1152,7 +1152,7 @@ const translations: TranslationDeepObject<typeof en> = {
         alternativeMethodsTextReceipts: ({phoneNumber}: {phoneNumber: string}) => `<label-text>Belege per SMS an ${phoneNumber} senden (nur US-Nummern)</label-text>`,
         takePhoto: 'Foto aufnehmen',
         cameraAccess: 'Für das Fotografieren von Belegen ist Kamerazugriff erforderlich.',
-        deniedCameraAccess: `<centered-text>Der Kamerazugriff wurde noch nicht gewährt. Bitte folge <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">diesen Anweisungen</a>.</centered-text>`,
+        deniedCameraAccess: `<centered-text>Der Kamerazugriff wurde noch immer nicht gewährt. Bitte folgen Sie <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">diesen Anweisungen</a>.</centered-text>`,
         cameraErrorTitle: 'Kamerafehler',
         cameraErrorMessage: 'Beim Aufnehmen eines Fotos ist ein Fehler aufgetreten. Bitte versuche es erneut.',
         locationAccessTitle: 'Standortzugriff erlauben',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index d4ad4b35778..92b1dc4fec3 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -1117,7 +1117,7 @@ const translations: TranslationDeepObject<typeof en> = {
         alternativeMethodsTextReceipts: ({phoneNumber}) => `<label-text>Envía recibos por SMS a ${phoneNumber} (solo números de EE.UU.)</label-text>`,
         takePhoto: 'Haz una foto',
         cameraAccess: 'Se requiere acceso a la cámara para hacer fotos de los recibos.',
-        deniedCameraAccess: `<centered-text>No se ha concedido el acceso a la cámara, siga <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">estas instrucciones</a>.</centered-text>`,
+        deniedCameraAccess: `<centered-text>No se ha concedido el acceso a la cámara, sigue <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">estas instrucciones</a>.</centered-text>`,
         cameraErrorTitle: 'Error en la cámara',
         locationAccessTitle: 'Permitir acceso a la ubicación',
         locationAccessMessage: 'El acceso a la ubicación nos ayuda a mantener tu zona horaria y moneda precisas dondequiera que vayas.',
@@ -1753,7 +1753,6 @@ const translations: TranslationDeepObject<typeof en> = {
                 }
             },
             [CONST.NEXT_STEP.MESSAGE_KEY.WAITING_TO_MARK_AS_DONE]: (actor, actorType, _eta, _etaType) => {
-                // eslint-disable-next-line default-case
                 switch (actorType) {
                     case CONST.NEXT_STEP.ACTOR_TYPE.CURRENT_USER:
                         return `Esperando a que <strong>tú</strong> lo marques como listo.`;
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index 89d5dbf0eed..20271b075e7 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -1,6 +1,7 @@
 /**
  *   _____                      __         __
  *  / ___/__ ___  ___ _______ _/ /____ ___/ /
+ * / (_ / -_) _ \/ -_) __/ _ \`/ __/ -_) _  /
  * \___/\__/_//_/\__/_/  \_,_/\__/\__/\_,_/
  *
  * This file was automatically generated. Please consider these alternatives before manually editing it:
@@ -862,7 +863,7 @@ const translations: TranslationDeepObject<typeof en> = {
         beginningOfChatHistory: (users: string) => `Cette discussion est avec ${users}.`,
         beginningOfChatHistoryPolicyExpenseChat: (workspaceName: string, submitterDisplayName: string) =>
             `C’est ici que <strong>${submitterDisplayName}</strong> soumettra des dépenses à <strong>${workspaceName}</strong>. Utilisez simplement le bouton +.`,
-        beginningOfChatHistoryPolicyExpenseChatTrack: 'C\u2019est ici que vous suivrez vos dépenses',
+        beginningOfChatHistoryPolicyExpenseChatTrack: 'C’est ici que vous suivrez vos dépenses',
         beginningOfChatHistorySelfDM: 'Ceci est votre espace personnel. Utilisez-le pour vos notes, tâches, brouillons et rappels.',
         beginningOfChatHistorySystemDM: 'Bienvenue ! Procédons à la configuration.',
         chatWithAccountManager: 'Discutez avec votre gestionnaire de compte ici',
@@ -1155,7 +1156,7 @@ const translations: TranslationDeepObject<typeof en> = {
         alternativeMethodsTextReceipts: ({phoneNumber}: {phoneNumber: string}) => `<label-text>Envoyez des reçus par SMS au ${phoneNumber} (numéros américains uniquement)</label-text>`,
         takePhoto: 'Prendre une photo',
         cameraAccess: 'L’accès à la caméra est requis pour prendre des photos de reçus.',
-        deniedCameraAccess: `<centered-text>L’accès à la caméra n’a toujours pas été accordé, veuillez suivre <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">ces instructions</a>.</centered-text>`,
+        deniedCameraAccess: `<centered-text>L'accès à la caméra n'a toujours pas été accordé, veuillez suivre <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">ces instructions</a>.</centered-text>`,
         cameraErrorTitle: 'Erreur de caméra',
         cameraErrorMessage: 'Une erreur s’est produite lors de la prise de la photo. Veuillez réessayer.',
         locationAccessTitle: 'Autoriser l’accès à la position',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index 3529c9029ef..d9149a1c3d0 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -1150,7 +1150,7 @@ const translations: TranslationDeepObject<typeof en> = {
         alternativeMethodsTextReceipts: ({phoneNumber}: {phoneNumber: string}) => `<label-text>Stuur bonnen per sms naar ${phoneNumber} (alleen Amerikaanse nummers)</label-text>`,
         takePhoto: 'Maak een foto',
         cameraAccess: 'Cameratoegang is vereist om foto’s van bonnen te maken.',
-        deniedCameraAccess: `<centered-text>Er is nog steeds geen cameratoegang verleend, volg alsjeblieft <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">deze instructies</a>.</centered-text>`,
+        deniedCameraAccess: `<centered-text>Je hebt nog steeds geen toegang tot de camera gegeven. Volg <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">deze instructies</a>.</centered-text>`,
         cameraErrorTitle: 'Camerafout',
         cameraErrorMessage: 'Er is een fout opgetreden bij het maken van een foto. Probeer het opnieuw.',
         locationAccessTitle: 'Locatietoegang toestaan',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index 06f01cd9c1e..6e52f229115 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -1150,7 +1150,7 @@ const translations: TranslationDeepObject<typeof en> = {
         alternativeMethodsTextReceipts: ({phoneNumber}: {phoneNumber: string}) => `<label-text>Wyślij paragony SMS-em na ${phoneNumber} (tylko numery w USA)</label-text>`,
         takePhoto: 'Zrób zdjęcie',
         cameraAccess: 'Dostęp do aparatu jest wymagany, aby robić zdjęcia paragonów.',
-        deniedCameraAccess: `<centered-text>Dostęp do aparatu nadal nie został przyznany, postępuj zgodnie z <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">tymi instrukcjami</a>.</centered-text>`,
+        deniedCameraAccess: `<centered-text>Dostęp do aparatu wciąż nie został przyznany, postępuj zgodnie z <a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">tymi instrukcjami</a>.</centered-text>`,
         cameraErrorTitle: 'Błąd aparatu',
         cameraErrorMessage: 'Wystąpił błąd podczas robienia zdjęcia. Spróbuj ponownie.',
         locationAccessTitle: 'Zezwól na dostęp do lokalizacji',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index 4f2e65e12f1..fc27c89071c 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -1112,7 +1112,7 @@ const translations: TranslationDeepObject<typeof en> = {
         alternativeMethodsTextReceipts: ({phoneNumber}: {phoneNumber: string}) => `<label-text>将收据短信发送至 ${phoneNumber}(仅限美国号码)</label-text>`,
         takePhoto: '拍照',
         cameraAccess: '需要相机访问权限才能为收据拍照。',
-        deniedCameraAccess: `<centered-text>仍未授予相机访问权限,请按照<a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">这些说明</a>进行操作。</centered-text>`,
+        deniedCameraAccess: `<centered-text>仍未获得相机访问权限,请按照<a href="${CONST.DENIED_CAMERA_ACCESS_INSTRUCTIONS_URL}">这些说明</a>进行操作。</centered-text>`,
         cameraErrorTitle: '相机错误',
         cameraErrorMessage: '拍照时发生错误。请重试。',
         locationAccessTitle: '允许访问位置信息',

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

@Pujan92

Pujan92 commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

@MelvinBot needs screenshots for all use cases

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 The re-triggered run is green — test (job 6) now passes (run 27871068523), confirming the NewChatPageTest failure was a flake unrelated to this PR. ✅

@Beamanator

Copy link
Copy Markdown
Contributor

how about asking QA to test on an adhoc build this time before it reaches staging?

That's a very good idea @Pujan92 😅

@Beamanator

Copy link
Copy Markdown
Contributor

@MelvinBot update the OP to have the full checklist, all checked off

@Beamanator

Copy link
Copy Markdown
Contributor

@codex review

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

This comment has been minimized.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 2e7745d672

ℹ️ 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".

@Beamanator

Copy link
Copy Markdown
Contributor

posted to get a bigger test flow going - https://expensify.slack.com/archives/C9YU7BX5M/p1781967442137819

@Beamanator

Copy link
Copy Markdown
Contributor

@Pujan92 conflicts 🙏

Also what exactly do you think i should ask QA to test... everything?? Seems like a tiny PR to have to test "everything" - maybe we can narrow it to fewer flows

@Pujan92

Pujan92 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot merge main and fix conflicts

@Pujan92

Pujan92 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Also what exactly do you think i should ask QA to test... everything?? Seems like a tiny PR to have to test "everything" - maybe we can narrow it to fewer flows

@Beamanator We need to ask them to test wherever we support markdown(those places where RenderHTML is used)

  • Chat messages
  • Task title & description
  • Room description

@Beamanator

Copy link
Copy Markdown
Contributor

cool, i'll ask 👍

@Beamanator

Copy link
Copy Markdown
Contributor

and somehow melvin didn't get triggered

@Pujan92

Pujan92 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot merge main and fix conflicts

@Pujan92

Pujan92 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot merge main 🙏

…AlignAndInlineLinks

Co-authored-by: Pujan Shah <Pujan92@users.noreply.github.com>

# Conflicts:
#	src/components/MenuItem.tsx
#	src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx
@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Merged main into this branch and resolved 2 conflicts. Pushed as ec236ea.

How the conflicts were resolved

Both conflicts were the same shape — this PR adds styles.textAlignLeft to a RenderHTML wrapper, while main independently changed an adjacent style on the same line. I kept both changes.

  • src/components/MenuItem.tsx:1031 — combined this PR's styles.textAlignLeft with main's shouldApplyIconPaddingToHTMLTitle && iconLeftPadding:

    <View style={[styles.renderHTMLTitle, styles.textAlignLeft, shouldApplyIconPaddingToHTMLTitle && iconLeftPadding]}>
  • src/pages/workspace/workflows/ToggleSettingsOptionRow.tsx:171 — main refactored the inline spacing ternary into a new subtitleSpacingStyle (which also handles the compact-spacing case), so I kept main's subtitleSpacingStyle and added this PR's styles.textAlignLeft. The useMemo dependency array was updated to match (kept styles.textAlignLeft + subtitleSpacingStyle, dropped the now-unused shouldPlaceSubtitleBelowSwitch dep):

    <View style={[styles.flexRow, styles.renderHTML, styles.textAlignLeft, subtitleSpacingStyle]}>

⚠️ I wasn't able to run Prettier/lint/typecheck locally in this environment, so please rely on CI to confirm. The resolved lines are within the 190-char print width and match the surrounding formatting.

@IuliiaHerets

Copy link
Copy Markdown

Regression was completed and passed

No blockers were found

@Beamanator Beamanator 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.

Niiice then LGTM!

@Beamanator
Beamanator merged commit 21d10c5 into main Jun 23, 2026
36 checks passed
@Beamanator
Beamanator deleted the claude-renderHTMLLeftAlignAndInlineLinks branch June 23, 2026 14:18
@github-actions

Copy link
Copy Markdown
Contributor

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

@OSBotify OSBotify mentioned this pull request Jun 23, 2026
48 tasks done
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/Beamanator in version: 9.4.18-0 🚀

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

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 I reviewed the changes in this PR against Expensify's help site files under App/docs/articles.

No help site changes are required.

This is a purely technical CSS/rendering fix. It resets the inherited UA text-align: center (from the PressableWithSecondaryInteraction <button> wrapper) so that bare auto-linked emails/URLs render left-aligned, and removes dInlineFlex from comment anchors so multi-word links wrap inline. The changes touch rendering internals (baseFontStyle, AnchorRenderer, and several RenderHTML surfaces) — there are no new features, settings, tabs, buttons, or user-facing workflows that the help site documents.

Since the help articles describe product features and workflows rather than text-rendering behavior, there's nothing to update, and no draft PR was created.

@Pujan92, since this change doesn't affect any documented behavior, there's no help site PR to review. If you believe a specific article is impacted, let me know and I'll create the draft PR.

@izarutskaya

Copy link
Copy Markdown

@Pujan92

Pujan92 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

@izarutskaya This isn't an issue related to #90362, here the link is long without any break character, so it is not breaking bcoz default word-break value is break-word.

@Beamanator

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/blimpich in version: 9.4.18-2 🚀

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants