Skip to content

perf: ContextMenu performance overhaul#83784

Open
roryabraham wants to merge 87 commits intomainfrom
rory-contextmenu-perf
Open

perf: ContextMenu performance overhaul#83784
roryabraham wants to merge 87 commits intomainfrom
rory-contextmenu-perf

Conversation

@roryabraham
Copy link
Copy Markdown
Contributor

@roryabraham roryabraham commented Feb 28, 2026

Summary

Performance overhaul of the ContextMenu system. Converts per-row MiniReportActionContextMenu instances into a singleton rendered via @gorhom/portal, eliminating Onyx subscriptions and reducing the subtree size per visible report action.

Architecture changes

  • Singleton MiniReportActionContextMenu — One instance positioned absolutely over the hovered row, rather than one per row
  • Composition refactor — Replaces the 23-action config array monolith in ContextMenuActions.tsx with individual files under actions/, each self-contained with its own shouldShow predicate.
  • State consolidation — Removed several unnecessary props from the context menus. Replaces 7 useRef + 8 useState calls in PopoverReportActionContextMenu with a single PopoverContextMenuState object
  • Deferred subscriptions — Extracts delete confirmation into ConfirmDeleteReportActionModal via global modal system, so its ~16 Onyx subscriptions are only active when shown
  • React Compiler compliance — Makes all components compile with React Compiler and removes manual memo/useMemo/useCallback wrappers

Performance results

Compared via React Profiler traces on the same account with similar interaction patterns (~9K PureReportActionItem renders each, ~5s sessions):

Overall:

Metric Main Branch Change
Total renders 188,446 161,579 -14.3%
Total render time 5,223ms 4,838ms -7.4%

Context menu components:

Metric Main Branch Change
Context menu renders 28,295 814 -97%
Context menu render time 446ms 15ms -97%
% of total render budget 8.55% 0.30%

Non-context-menu render time is mostly flat (4,777ms → 4,823ms).

For context, the original profile that motivated this work (#83774) showed context menu components at 6.6% of total render time.

Fixed Issues

#83774

Tests

Mini context menu (web — singleton behavior)

  1. Hover over a message — mini context menu appears
  2. Move to a different message — menu repositions
  3. Hover over the mini menu itself — stays visible
  4. Move mouse away — hides
  5. Hover out through rounded corners — no flash
  6. Scroll the list — menu hides immediately

Full context menu (web right-click, mobile long-press)

  1. Right-click → full menu appears with correct actions
  2. Reply in thread, Mark as unread, Copy link, Copy message, Pin/Unpin, Download — all work
  3. Arrow key navigation between items

Delete action

  1. Right-click own message → Delete → confirmation modal appears
  2. Confirm → message deleted; Cancel → message preserved

Emoji reactions (mini menu)

  1. Click emoji in mini menu → reaction added
  2. Open emoji picker from mini menu → picker opens

Edit action

  1. Right-click own message → Edit → compose box prefilled → save updates message

Overflow menu

  1. Hover message with many actions → 4 items in mini menu including "..."
  2. Click "..." → full context menu opens

Offline tests

N/A — context menus are UI-only

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.
  • I verified that similar component doesn't exist in the codebase
  • I verified that all props are defined accurately and each prop has a /** comment above it */
  • I verified that each file is named correctly
  • I verified that each component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
  • I verified that the only data being stored in component state is data necessary for rendering and nothing else
  • In component if we are not using the full Onyx data that we loaded, I've added the proper selector in order to ensure the component only re-renders when the data it is using changes
  • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
  • I verified that component internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
  • I verified that all JSX used for rendering exists in the render method
  • I verified that each component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

Screenshots/Videos

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

Replace 7 refs + 8 useState calls with a single PopoverContextMenuState
object. Keep separate isPopoverVisible boolean for animation control:
hideContextMenu sets isPopoverVisible=false (triggering animation),
onModalHide clears menuState=null (clearing data after animation).

Consolidate popoverAnchorPosition + contextMenuDimensions into
PopoverPosition within the state object.

Eliminate reportActionRef entirely (latent staleness bug -- only set in
showDeleteModal, never in showContextMenu). Store only reportActionID in
consolidated state. Derive full action from reportActions[reportActionID].

Move onEmojiPickerToggle from ref to state to avoid accessing refs
during render. Remove all useCallback wrappers and inline the logic.

Made-with: Cursor
…nContextMenu

Remove memo(deepEqual) wrapper and all useMemo calls (5 total).
React Compiler handles memoization automatically. Replace inline
{current: null} with stable nullRef to avoid new object creation
per render. Inline all computed values directly.

Made-with: Cursor
Extract delete confirmation flow from PopoverReportActionContextMenu
into a standalone ConfirmDeleteReportActionModal component that mounts
via the established global modal system (useModal/ModalProvider).

The new component owns all ~16 delete-related Onyx subscriptions,
which are only active when the delete modal is actually shown. This
eliminates 5 duplicate subscriptions with BaseReportActionContextMenu
and defers the remaining ~11 until actually needed.

The promise-based API replaces 3 callback refs + 2 state vars from
PopoverReportActionContextMenu. The shouldSetModalVisibility parameter
is dropped as the global modal system manages visibility independently.

Made-with: Cursor
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 28, 2026

Codecov Report

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

Files with missing lines Coverage Δ
src/CONST/index.ts 93.65% <ø> (ø)
src/GlobalModals.tsx 100.00% <ø> (ø)
src/components/ContextMenuItem.tsx 0.00% <ø> (ø)
src/components/LHNOptionsList/OptionRowLHN.tsx 80.00% <ø> (ø)
src/components/ShowContextMenuContext/index.tsx 75.00% <100.00%> (ø)
src/libs/actions/Report/index.ts 68.59% <100.00%> (+0.17%) ⬆️
src/pages/inbox/ReportScreen.tsx 100.00% <100.00%> (ø)
...tMenu/MiniReportActionContextMenu/index.native.tsx 100.00% <100.00%> (ø)
...s/inbox/report/ContextMenu/actions/actionConfig.ts 100.00% <100.00%> (ø)
src/pages/inbox/report/ReportActionItem.tsx 100.00% <ø> (ø)
... and 61 more
... and 17 files with indirect coverage changes

Create MiniContextMenuProvider with split contexts (Actions/State) to
avoid unnecessary re-renders in list items. The provider manages
show/hide with 120ms delay, shouldKeepOpen/pendingHide for emoji
picker flow, and stable action references via useState lazy init.

Rewrite MiniReportActionContextMenu as an animated singleton rendered
via createPortal to document.body for reliable position:fixed. Uses
Reanimated shared values for animated row-to-row slides with overshoot
easing, and CSS transitions for opacity fade.

PureReportActionItem now measures its row via getBoundingClientRect on
hover and calls showMiniContextMenu instead of rendering its own
MiniReportActionContextMenu instance. This eliminates ~1100 Onyx
subscriptions (24 per visible item).

Made-with: Cursor
In mini mode, BaseReportActionContextMenu now uses the provider's
keepOpen()/release() API for emoji picker and overflow menu flows.
Non-mini (popover) mode retains local state. This ensures the
singleton stays visible when submenus are open.

Made-with: Cursor
Add a scroll event listener (capture phase) to dismiss the mini
context menu when the list scrolls. The menu reappears at the
correct position on the next hover via fresh getBoundingClientRect.

Made-with: Cursor
Add ContextMenuPayloadProvider (shared context for all action
components), ContextMenuLayout (visibility evaluation, mini-mode
truncation, arrow key focus), and actionConfig (shouldShow registry
with ordered action IDs). Foundation for converting the config
array into individual dot-notation components.

Made-with: Cursor
Replace the config array .filter().map() loop in
BaseReportActionContextMenu with ContextMenuPayloadProvider,
ContextMenuLayout, and individual dot-notation action components.

Convert disabledActions (ContextMenuAction[]) to disabledActionIds
(Set<string>) throughout the chain: PopoverReportActionContextMenu,
MiniContextMenuProvider, ReportActionContextMenu, PureReportActionItem.

Use Reanimated .get()/.set() API for shared values. Fix import alias
in actionConfig.

Made-with: Cursor
Organize component internals: hooks, derived values, callbacks,
effects, render. Fix deprecated getReportNameDeprecated usage
(add eslint-disable), fix no-default-id-values errors in Debug,
Delete, and Explain. Use Reanimated .get()/.set() API. Fix import
aliases for @pages prefix. Clean up unused imports. Reduce lint
warning budget from 383 to 353 (30 warnings eliminated).

Made-with: Cursor
@melvin-bot
Copy link
Copy Markdown

melvin-bot bot commented Feb 28, 2026

npm has a package.json file and a package-lock.json file. It seems you updated one without the other, which is usually a sign of a mistake. If you are updating a package make sure that you update the version in package.json then run npm install

@roryabraham

This comment has been minimized.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Wire hideDeleteModal to call modalContext.closeModal() so the
delete confirmation modal is dismissed when a report action item
unmounts while the modal is open (e.g., navigating away).

Made-with: Cursor
@roryabraham

This comment has been minimized.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

When the delete target is a money request, the effectiveReportID can
be the IOU report ID, but the action lives in the chat report's
REPORT_ACTIONS collection. Pass actionSourceReportID to the modal
and fall back to it when the action isn't found in the primary collection.

Made-with: Cursor
The positioning useEffect had no dependency array, causing it to run
after every render. Scope it to state changes so animations only
trigger when row measurements or visibility actually change.

Made-with: Cursor
@roryabraham

This comment has been minimized.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

In mini-menu flows the popover menuState is unset, so deriving the
source report from menuState?.reportID yields undefined. Pass the
source report ID explicitly from Delete.tsx through the showDeleteModal
interface so the modal can always resolve the action.

Also guard hideDeleteModal with a ref so it only closes the modal
when showDeleteModal actually opened one, preventing unrelated
modals from being dismissed during navigation/unmount cleanup.

Made-with: Cursor
@roryabraham

This comment has been minimized.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

The scroll handler repeatedly called hideMiniContextMenu() which uses
a 120ms debounced timer, causing the menu to stay visible while
scrolling. Add an {immediate: true} option to bypass the timer for
scroll-triggered hides.

Made-with: Cursor
@roryabraham

This comment has been minimized.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

The old code passed filteredContextMenuActions as disabledOptions when
opening the overflow popover, hiding actions already visible in the
mini row. Restore this behavior by passing the current visibleActionIds
from ContextMenuLayout as disabledActionIds to the overflow menu.

Made-with: Cursor
@roryabraham

This comment has been minimized.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

@melvin-bot melvin-bot bot requested review from blimpich and removed request for a team April 8, 2026 04:42
@melvin-bot
Copy link
Copy Markdown

melvin-bot bot commented Apr 8, 2026

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

Copy link
Copy Markdown

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

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: 946ac3715d

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

Copy link
Copy Markdown
Contributor

@JmillsExpensify JmillsExpensify left a comment

Choose a reason for hiding this comment

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

No product review required.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 8, 2026

@roryabraham could you please check the Codex comments and fix the failing lint check?

Made-with: Cursor

# Conflicts:
#	src/pages/inbox/report/ContextMenu/ContextMenuActions.tsx
…eportAction

OptionRowLHN passes reportActionID: '-1' for report-level context menus,
resolving reportAction to undefined. The guard `&& reportAction` prevented
the Mark as Unread item from rendering in report menus. markCommentAsUnread
already handles undefined reportAction via optional chaining, so widen the
type to match.

Made-with: Cursor
@roryabraham
Copy link
Copy Markdown
Contributor Author

@codex review

Copy link
Copy Markdown

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

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: f50d465d37

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

1. Wrap delete and flag-as-offensive actions with interceptAnonymousUser
   so anonymous users are redirected to sign-in instead of executing
   destructive/reporting actions (P1).

2. Use shouldDisplayContextMenuValue (which excludes Concierge greeting
   actions) instead of shouldDisplayContextMenu in the hover-in guard
   of PureReportActionItem, matching the right-click/long-press path (P2).

3. Pass the real currentUserAccountID to PopoverMarkAsUnreadItem in
   PopoverReportContent instead of hardcoded 0, so markCommentAsUnread
   correctly excludes the caller's own actions when anchoring (P2).

Made-with: Cursor
… markCommentAsUnread

Use ?? instead of || for reportAction?.created (prefer-nullish-coalescing).
Make reportActionID optional in MarkAsUnreadParams since report-level
mark-as-unread doesn't target a specific action.

Made-with: Cursor
@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible 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 checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (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
    • 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 verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • 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
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • 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 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.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this 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.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.12.33.55.mov

BUG:

Steps to reproduce:

  1. Hover a report message.
  2. Select Delete.

@roryabraham could you check this bug?

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screenshot 2026-04-09 at 12 44 42
Screen.Recording.2026-04-09.at.12.47.30.mov

BUG: The reaction bar still persists in the thread when replying to a message.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

@roryabraham Currently, do we have any tools to test performance? If not, I think I will create a new one.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.06.17.mov
Screen.Recording.2026-04-09.at.13.24.25.mov

BUG: I noticed that the reaction bar does not appear the first time I hover over a message. It shows normally on the second hover. I was unable to reproduce this issue on staging.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.10.15.mov

QUESTION: Menu options look different between this branch and staging. Did we change them?

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.19.26.mov

BUG: Accessibility issue. When pressing Tab, I can't focus on the reaction bar. On staging, this works correctly.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.21.46.mov

BUG: The reaction bar is still hidden when the emoji picker is shown.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.25.54.mov

BUG: The reaction bar is not hidden when the message loses focus.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.27.22.mov

BUG: The highlighted report message does not clear when it loses focus.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.29.03.mov

BUG: When swiping left or right on a report message, the reaction bar becomes hidden. This behavior is different from staging.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

Screen.Recording.2026-04-09.at.13.31.32.mov

BUG: The message remains highlighted when it loses focus.

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

@roryabraham After testing, I found several bugs related to message highlighting, incorrect reaction bar visibility, and UI menu options. Could you please review them?

@huult
Copy link
Copy Markdown
Contributor

huult commented Apr 9, 2026

I think we should fix these issues first. After that, I will test edge cases like deep linking and offline or slow network scenarios to avoid the same root cause.

@roryabraham
Copy link
Copy Markdown
Contributor Author

Currently, do we have any tools to test performance?

I was using a mix of React Profiler and Claude

@roryabraham
Copy link
Copy Markdown
Contributor Author

thanks for finding and reporting all those bugs!

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.

3 participants