Skip to content

Harden font loading for charts#93647

Open
roryabraham wants to merge 20 commits into
mainfrom
rory-92610-harden-chart-font-loading
Open

Harden font loading for charts#93647
roryabraham wants to merge 20 commits into
mainfrom
rory-92610-harden-chart-font-loading

Conversation

@roryabraham

@roryabraham roryabraham commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Explanation of Change

One failed chart font asset no longer rejects the entire batch. Typefaces load with per-asset Promise.allSettled, partial results are cached, and getChartSkiaTypeface walks same-family → EXP_NEUE → first-available fallback chains so Victory and native charts still render text when a variant is missing. The CLI PNG renderer uses the same shared loader.

Fixed Issues

$ #92610
PROPOSAL:

Tests

  1. Sign in on dev and run this in the console, replacing the reportID with your own reportID.
const reportID = '6681914213738705';
const actorAccountID = 22290834;
const html = `<victorychart domain="{x: [0.5, 12.5], y: [0, 2000]}" domainpadding="{x: 18, y: 0}" height="430" width="680" padding="{top: 126, bottom: 108, left: 96, right: 32}" style="{parent: { backgroundColor: '#F7F2EF', borderRadius: 16, width: '100%', maxWidth: 680}}"><victorylabel x="32" y="40" text='Monthly spend' style="{ fill: '#002E22', fontSize: 17, fontWeight: 700, fontFamily: 'Expensify Neue', }"/><victorylabel x="32" y="62" text='As of: May 6, 12:49 PM PT' style="{ fill: '#73857E', fontSize: 11, fontWeight: 400, fontFamily: 'Expensify Neue', }"/><victorybar barwidth="11" cornerradius="{top: 6, bottom: 6}" style="{data: {fill: '#1E90F2'}}" data="[ {x: 1.13, y: 1080}, {x: 2.13, y: 1225}, {x: 3.13, y: 1375}, {x: 4.13, y: 1600}, {x: 5.13, y: 1630}, {x: 6.13, y: 1725}, {x: 7.13, y: 1400}, {x: 8.13, y: 1685}, {x: 9.13, y: 1725}, {x: 10.13, y: 1800}, {x: 11.13, y: 1800}, {x: 12.13, y: 1800}, ]" labels="[ 'Jan 2025: $1,080', 'Feb 2025: $1,225', 'Mar 2025: $1,375', 'Apr 2025: $1,600', 'May 2025: $1,630', 'Jun 2025: $1,725', 'Jul 2025: $1,400', 'Aug 2025: $1,685', 'Sep 2025: $1,725', 'Oct 2025: $1,800', 'Nov 2025: $1,800', 'Dec 2025: $1,800', ]"/><victorybar barwidth="11" cornerradius="{top: 6, bottom: 6}" style="{data: {fill: '#13C96B'}}" data="[ {x: 0.87, y: 1200}, {x: 1.87, y: 1320}, {x: 2.87, y: 1570}, ]" labels="['Jan 2026: $1,200', 'Feb 2026: $1,320', 'Mar 2026: $1,570']"/><victorybar barwidth="11" cornerradius="{top: 6, bottom: 6}" style="{data: {fill: '#FF6A00'}}" data="[{x: 3.87, y: 1820}]" labels="['Apr 2026: $1,820']"/><victoryaxis tickvalues="[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]" tickformat="['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']" style="{ axis: {stroke: '#E6E1DA', strokeWidth: 1}, ticks: {stroke: 'transparent'}, tickLabels: { fill: '#73857E', fontSize: 11, fontWeight: 500, fontFamily: 'Expensify Neue', padding: 16, }, }"/><victoryaxis dependentaxis tickvalues="[0, 500, 1000, 1500, 2000]" tickformat="['$0', '$500', '$1,000', '$1,500', '$2,000']" style="{ axis: {stroke: 'transparent'}, ticks: {stroke: 'transparent'}, grid: {stroke: '#E6E1DA', strokeWidth: 1}, tickLabels: { fill: '#73857E', fontSize: 11, fontWeight: 500, fontFamily: 'Expensify Neue', padding: 28, }, }"/><victorylegend x="150" y="378" orientation="horizontal" gutter="34" symbolspacer="10" style="{ labels: { fill: '#002E22', fontSize: 13, fontWeight: 500, fontFamily: 'Expensify Neue', }, }" data="[ {name: '2026 spend', symbol: {type: 'circle', fill: '#13C96B', size: 6}}, {name: '2025 spend', symbol: {type: 'circle', fill: '#1E90F2', size: 6}}, {name: 'Last month', symbol: {type: 'circle', fill: '#FF6A00', size: 6}}, ]"/></victorychart>`;
Onyx.merge(`reportActions_${reportID}`, {
    '12345678': {
        message: [{html, text: 'chart test', type: 'COMMENT'}],
        actionName: 'ADDCOMMENT',
        actorAccountID,
        automatic: false,
        avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_5.png',
        created: '2026-05-22 19:59:07.664',
        lastModified: '2026-05-22 19:59:07.664',
        reportActionID: '12345678',
        reportID,
        shouldShow: true,
    },
});
const html2 = `<victorychart domain="{y: [0, 18000]}" domainpadding="{x: 44, y: 16}" height="464" width="680" padding="{top: 92, bottom: 84, left: 150, right: 32}" style="{ parent: { backgroundColor: '#F7F2EF', borderRadius: 16, width: '100%', maxWidth: 680, }, }" categories="{x: ['Ethan Brooks', 'Sofia Ramirez', 'Michelina Della Donna', 'Priya Patel', 'Alex Chen']}"><victorylabel x="32" y="40" text='Top employees by spend' style="{ fill: '#002E22', fontSize: 17, fontWeight: 700, fontFamily: 'Expensify Neue', }"/><victorylabel x="32" y="62" text='As of: May 6, 12:49 PM PT' style="{ fill: '#73857E', fontSize: 11, fontWeight: 400, fontFamily: 'Expensify Neue', }"/><victoryaxis tickValues="[0,1,2,3,4]" tickformat="['Ethan Brooks', 'Sofia Ramirez', 'Michelina Della Donna', 'Priya Patel', 'Alex Chen']" style="{ axis: {stroke: 'transparent'}, ticks: {stroke: 'transparent'}, grid: {stroke: 'transparent'}, tickLabels: { fill: '#73857E', fontSize: 11, fontWeight: 500, fontFamily: 'Expensify Neue', padding: 24, }, }"/><victoryaxis dependentaxis tickvalues="[0, 3000, 6000, 9000, 12000, 15000, 18000]" tickformat="['$0', '$3,000', '$6,000', '$9,000', '$12,000', '$15,000', '$18,000']" style="{ axis: {stroke: 'transparent'}, ticks: {stroke: 'transparent'}, grid: {stroke: '#E6E1DA', strokeWidth: 1}, tickLabels: { fill: '#73857E', fontSize: 11, fontWeight: 500, fontFamily: 'Expensify Neue', padding: 8, }, }"/><victorygroup horizontal offset="18"><victorybar barwidth="16" cornerradius="{top: 8, bottom: 0}" style="{data: {fill: '#13C96B'}}" data="[ {x: 'Ethan Brooks', y: 9450}, {x: 'Sofia Ramirez', y: 10500}, {x: 'Michelina Della Donna', y: 11900}, {x: 'Priya Patel', y: 13400}, {x: 'Alex Chen', y: 14300}, ]"/><victorybar barwidth="16" cornerradius="{top: 8, bottom: 0}" style="{data: {fill: '#1E90F2'}}" data="[ {x: 'Ethan Brooks', y: 8800}, {x: 'Sofia Ramirez', y: 10250}, {x: 'Michelina Della Donna', y: 11250}, {x: 'Priya Patel', y: 13900}, {x: 'Alex Chen', y: 12500}, ]"/></victorygroup><victorylegend x="250" y="416" orientation='horizontal' gutter="42" symbolspacer="10" style="{ labels: { fill: '#002E22', fontSize: 13, fontWeight: 500, fontFamily: 'Expensify Neue', }, }" data="[ {name: 'This month', symbol: {type: 'circle', fill: '#13C96B', size: 6}}, {name: 'Last month', symbol: {type: 'circle', fill: '#1E90F2', size: 6}}, ]"/></victorychart>`;
Onyx.merge(`reportActions_${reportID}`, {
    '23456789': {
        message: [{html: html2, text: 'chart test 2', type: 'COMMENT'}],
        actionName: 'ADDCOMMENT',
        actorAccountID,
        automatic: false,
        avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_5.png',
        created: '2026-05-24 19:59:07.664',
        lastModified: '2026-05-24 19:59:07.664',
        reportActionID: '23456789',
        reportID,
        shouldShow: true,
    },
});
const html3 = `<victorychart horizontal domain="{y: [0, 18000]}" domainpadding="{x: 44, y: 16}" height="464" width="680" padding="{top: 92, bottom: 84, left: 150, right: 32}" style="{ parent: { backgroundColor: '#F7F2EF', borderRadius: 16, width: '100%', maxWidth: 680, }, }" categories="{x: ['Ethan Brooks', 'Sofia Ramirez', 'Michelina Della Donna', 'Priya Patel', 'Alex Chen']}"><victorylabel x="32" y="40" text='Top employees by spend' style="{ fill: '#002E22', fontSize: 17, fontWeight: 700, fontFamily: 'Expensify Neue', }"/><victorylabel x="32" y="62" text='As of: May 6, 12:49 PM PT' style="{ fill: '#73857E', fontSize: 11, fontWeight: 400, fontFamily: 'Expensify Neue', }"/><victoryaxis tickValues="[0,1,2,3,4]" tickformat="['Ethan Brooks', 'Sofia Ramirez', 'Michelina Della Donna', 'Priya Patel', 'Alex Chen']" style="{ axis: {stroke: 'transparent'}, ticks: {stroke: 'transparent'}, grid: {stroke: 'transparent'}, tickLabels: { fill: '#73857E', fontSize: 11, fontWeight: 500, fontFamily: 'Expensify Neue', padding: 24, }, }"/><victoryaxis dependentaxis tickvalues="[0, 3000, 6000, 9000, 12000, 15000, 18000]" tickformat="['$0', '$3,000', '$6,000', '$9,000', '$12,000', '$15,000', '$18,000']" style="{ axis: {stroke: 'transparent'}, ticks: {stroke: 'transparent'}, grid: {stroke: '#E6E1DA', strokeWidth: 1}, tickLabels: { fill: '#73857E', fontSize: 11, fontWeight: 500, fontFamily: 'Expensify Neue', padding: 8, }, }"/><victorygroup horizontal offset="18"><victorybar barwidth="16" cornerradius="{top: 8, bottom: 0}" style="{data: {fill: '#13C96B'}}" data="[ {x: 'Ethan Brooks', y: 9450}, {x: 'Sofia Ramirez', y: 10500}, {x: 'Michelina Della Donna', y: 11900}, {x: 'Priya Patel', y: 13400}, {x: 'Alex Chen', y: 14300}, ]"/><victorybar barwidth="16" cornerradius="{top: 8, bottom: 0}" style="{data: {fill: '#1E90F2'}}" data="[ {x: 'Ethan Brooks', y: 8800}, {x: 'Sofia Ramirez', y: 10250}, {x: 'Michelina Della Donna', y: 11250}, {x: 'Priya Patel', y: 13900}, {x: 'Alex Chen', y: 12500}, ]"/></victorygroup><victorylegend x="250" y="416" orientation='horizontal' gutter="42" symbolspacer="10" style="{ labels: { fill: '#002E22', fontSize: 13, fontWeight: 500, fontFamily: 'Expensify Neue', }, }" data="[ {name: 'This month', symbol: {type: 'circle', fill: '#13C96B', size: 6}}, {name: 'Last month', symbol: {type: 'circle', fill: '#1E90F2', size: 6}}, ]"/></victorychart>`;
Onyx.merge(`reportActions_${reportID}`, {
    '34567890': {
        message: [{html: html3, text: 'chart test 3', type: 'COMMENT'}],
        actionName: 'ADDCOMMENT',
        actorAccountID,
        automatic: false,
        avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_5.png',
        created: '2026-05-25 19:59:07.664',
        lastModified: '2026-05-25 19:59:07.664',
        reportActionID: '34567890',
        reportID,
        shouldShow: true,
    },
});
const html4 = `<victorychart width="680" height="530" padding="{top: 20, bottom: 0, left: 0, right: 0}" domainpadding="0" style="{ parent: { backgroundColor: '#F7F2EF', borderRadius: 16, width: '100%', maxWidth: 680, }, }"><victoryaxis style="{ axis: {stroke: 'transparent'}, ticks: {stroke: 'transparent'}, grid: {stroke: 'transparent'}, tickLabels: {fill: 'transparent'}, }}"/><victoryaxis dependentaxis style="{ axis: {stroke: 'transparent'}, ticks: {stroke: 'transparent'}, grid: {stroke: 'transparent'}, tickLabels: {fill: 'transparent'}, }}"/><victorylabel x="32" y="40" text='Top categories' style="{ fill: '#002E22', fontSize: 17, fontWeight: 700, fontFamily: 'Expensify Neue' }"/><victorylabel x="32" y="62" text='As of: May 6, 12:49 PM PT' style="{ fill: '#76847E', fontSize: 11, fontWeight: 400, fontFamily: 'Expensify Neue' }"/><victorypie standalone="false" width="680" height="550" padding="{top: 0, bottom: 0, left: 0, right: 0}" innerradius="125" padangle="0.5" radius="145" labelindicatorinneroffset="15" labelindicatorouteroffset="8" colorscale="['#FED607', '#FF7101', '#F68DFE', '#03D47C', '#50EEF6', '#0185FF']" data="[ {x: 'Other', y: 309700}, {x: 'Postage And Delivery', y: 255800}, {x: 'Rodrigo Test', y: 178900}, {x: 'Travel Meals', y: 165800}, {x: 'Other Costs - COS', y: 58700}, {x: 'Prepaid Expenses', y: 39900}, ]" labels="['Other\\n$309,700', 'Postage And Delivery\\n$255,800', 'Rodrigo Test\\n$178,900', 'Travel Meals\\n$165,800', 'Other Costs - COS\\n$58,700', 'Prepaid Expenses\\n$39,900']" labelcomponent="&lt;victorylabel lineheight=&quot;[1.2, 1.4]&quot; style=&quot;[{fill: '#002E22', fontSize: 11, fontWeight: 700, fontFamily: 'Expensify Neue'}, {fill: '#76847E', fontSize: 11, fontWeight: 400, fontFamily: 'Expensify Neue'}]&quot; /&gt;" labelRadius="180" style="{ data: { stroke: '#F7F2EF' }, }"/><victorylabel x="340" y="265" textanchor='middle' verticalanchor='middle' text="Total\n$1,008,800" lineheight="[1.23, 1.27]" style="[ { fill: '#76847E', fontSize: 13, fontFamily: 'Expensify Neue' }, { fill: '#002E22', fontSize: 26, fontFamily: 'Expensify New Kansas' }, ]"/></victorychart>`;
Onyx.merge(`reportActions_${reportID}`, {
    '45678901': {
        message: [{html: html4, text: 'chart test 4', type: 'COMMENT'}],
        actionName: 'ADDCOMMENT',
        actorAccountID,
        automatic: false,
        avatar: 'https://d2k5nsl2zxldvw.cloudfront.net/images/avatars/default-avatar_5.png',
        created: '2026-05-26 19:59:07.664',
        lastModified: '2026-05-26 19:59:07.664',
        reportActionID: '45678901',
        reportID,
        shouldShow: true,
    },
});
  1. Open the report - confirm axis, legend, and label text render.

Offline tests

N/A — font loading is local asset decoding; no network dependency.

QA Steps

  1. (if needed) Sign into any account on NewDot, and create a workspace.
  2. (if needed) Create two expenses with different merchants in the previous month, and one expense in the current month.
  3. Go to Spend -> Insights -> Spend over time and make sure the line graph renders correctly.
  4. Go to Spend -> Insights -> Top Merchants and make sure the pie chart renders correctly.
  • 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 verified there are no new alerts related to the canBeMissing param for useOnyx
  • 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 shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • 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)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • 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)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • 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.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • 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.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari image image

roryabraham and others added 6 commits June 15, 2026 17:24
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
.../components/Charts/utils/chartTypefaceFallbacks.ts 100.00% <100.00%> (ø)
...rc/components/Charts/utils/getChartSkiaTypeface.ts 100.00% <100.00%> (ø)
...onents/Charts/utils/getVictoryChartTreeTypeface.ts 100.00% <100.00%> (ø)
...mponents/Charts/utils/hasAnyLoadedChartTypeface.ts 100.00% <100.00%> (ø)
...nents/Charts/utils/loadChartTypefacesFromAssets.ts 100.00% <100.00%> (ø)
...c/components/Charts/utils/logChartFontLoadError.ts 100.00% <100.00%> (ø)
src/types/utils/ObjectUtils.ts 75.00% <100.00%> (+25.00%) ⬆️
.../VictoryChartRenderer/BaseVictoryChartRenderer.tsx 0.00% <0.00%> (ø)
src/components/Charts/utils/chartFontsCache.ts 70.14% <83.33%> (+61.81%) ⬆️
... and 160 files with indirect coverage changes

roryabraham and others added 7 commits June 15, 2026 23:39
Co-authored-by: Cursor <cursoragent@cursor.com>
Allow null in chart font test mock return type and remove duplicate
FinancialForce API parameter mappings introduced on main.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Pre-initialize the typeface record with typedKeys/typedFromEntries so
loadFn only needs the asset, and remove redundant casts at call sites.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use Log.hmmm (which exists on Logger) instead of Log.error in the CLI,
so the LogType cast and no-op assignment in src/libs/Log.ts are
unnecessary.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham roryabraham requested a review from situchan June 18, 2026 06:49
@roryabraham roryabraham marked this pull request as ready for review June 18, 2026 06:49
@roryabraham roryabraham requested review from a team as code owners June 18, 2026 06:49
@melvin-bot melvin-bot Bot requested review from Gonals and flaviadefaria and removed request for a team June 18, 2026 06:49
@melvin-bot

melvin-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

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

Comment thread server/victory-chart-renderer/src/loadChartFontsForCli.ts Outdated
Comment thread src/components/Charts/utils/chartFontsCache.ts Outdated
Comment thread src/types/utils/ObjectUtils.ts

@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: 81bb214c61

ℹ️ 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/components/Charts/utils/chartFontsCache.ts Outdated
- Extract logChartFontLoadError into shared module imported by both
  chartFontsCache and loadChartFontsForCli (CONSISTENCY-3)
- Fix hasAnyLoadedTypeface to check only font-manager keys, not
  CUSTOM_EMOJI_FONT which is never registered on fontMgr (Codex P2)
- Add justification comment to typedKeys eslint-disable (CONSISTENCY-5)
- Remove istanbul ignore comment (not used in this project)

Co-authored-by: Cursor <cursoragent@cursor.com>
@flaviadefaria flaviadefaria removed their request for review June 18, 2026 13:28
@flaviadefaria

flaviadefaria commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No new product considerations - removing my assignment and unsubscribing.

Comment thread src/components/Charts/utils/chartFontsCache.ts Outdated
Comment thread src/libs/Log.ts
@situchan

This comment was marked as resolved.

@MelvinBot

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

roryabraham and others added 2 commits June 18, 2026 14:32
Share hasAnyLoadedChartTypeface between app and CLI so emoji-only
loads do not build an empty fontMgr. Do not cache all-failed font
loads so later chart mounts can retry. Restore the Logger decoupling
comment in Log.ts.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham

This comment was marked as resolved.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Pass getVictoryChartTreeTypeface into processVictoryChartTree so axis
labels use the same partial-load fallback chain as overlay text.

Co-authored-by: Cursor <cursoragent@cursor.com>
@roryabraham

This comment was marked as resolved.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: ce90fd2c10

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

roryabraham and others added 2 commits June 18, 2026 16:32
Restore Log.ts from main after accidental prettier reformatting, and
add eslint disables to getVictoryChartTreeTypefaceTest helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

4 participants