Repository navigation
Use small thumbnail size in the Concierge side panel - #104288
Conversation
…t cut off Co-authored-by: Abdelrahman Khattab <abzokhattab@users.noreply.github.com>
|
I created this PR from an upstream branch since I don't have push access to your fork. To take ownership of this branch and be able to push updates, run: Then you can close this PR and open a new one from your fork. |
|
🤖 Web test steps verification results: The Concierge side panel opened correctly at a 1440x900 viewport. The web test tool cannot upload files, so no image was sent and the thumbnail clipping checks could not run. The tool does not support the browser file picker, clipboard image paste, or drag and drop. The PR's Tests section lists only the JS console check, so the steps also follow the repro steps from the linked issue.
|
|
@MelvinBot please update the PR description with the following: Tests
Offline testsN/A — this is a pure layout fix with no network dependency. QA Steps
Also please check all the PR Author Checklist items and mark screenshots as TODO (I will add them). |
|
I updated the PR description:
I kept the template's "Verify that no errors appear in the JS console" checkbox under Tests and QA Steps, and checked it. |
|
@MelvinBot mark the PR as ready |
|
🤖 This PR is now marked as ready for review. The Tests and QA Steps sections still have TODO placeholders. You need to fill those in before review, along with the PR Author Checklist and screenshots. |
|
@abzokhattab 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chrome |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 roryabraham has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/roryabraham in version: 9.5.15-1 🚀
|
|
No help site update is needed. This PR is a layout bug fix: image and video thumbnails in the Concierge side panel no longer get cut off. No help article describes that behavior. |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.5.15-3 🚀
Bundle Size Analysis (Sentry): |









Explanation of Change
Image and video thumbnails in the Concierge side panel were cut off on the right on wide screens.
useThumbnailDimensionspicked the thumbnail size only fromshouldUseNarrowLayout. The side panel is not a narrow layout on wide screens, so thumbnails used the 350px wide-screen size. The side panel is only 375px wide, which leaves about 282px for message content, so the thumbnail was clipped.This change also checks
useIsInSidePanel()and uses the 250px small-screen size when the hook runs inside the side panel.HeaderViewalready uses the sameshouldUseNarrowLayout || isInSidePanelpattern. Thumbnails in the main chat view keep the 350px size.Added unit tests for the hook that cover the main chat, the side panel (landscape and portrait), and the narrow layout.
AI tests run by MelvinBot
npm test -- tests/unit/hooks/useThumbnailDimensions.test.tsx(4 tests pass)npm test -- --findRelatedTests src/hooks/useThumbnailDimensions.ts: every suite that ran passed; the run hit the 10-minute local timeout before it finishednpm run linton changed files,npm run typecheck,npm run fmt(no changes),npm run spell-changednpm run react-compiler-compliance-check check src/hooks/useThumbnailDimensions.tsnpm testand the Storybook smoke test (left to CI)Fixed Issues
$ #103533
PROPOSAL: #103533 (comment)
Tests
Offline tests
N/A — this is a pure layout fix with no network dependency.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
TODO
Android: mWeb Chrome
TODO
iOS: Native
TODO
iOS: mWeb Safari
TODO
MacOS: Chrome / Safari
TODO