Skip to content

Conversation

@aleksandernsilva
Copy link
Contributor

@aleksandernsilva aleksandernsilva commented Jun 30, 2025

Proposed changes (including videos or screenshots)

This PR delivers improvements to the GenericUpsellModal components, the changes are:

  • Added imgAlt, imgWidth, and imgHeight optional props to the GenericUpsellModal for improved image accessibility and flexibility.
  • Added unit tests for the updated GenericUpsellModal.

Issue(s)

CTZ-199

Steps to test or reproduce

I believe the easiest way to test these changes is by running our storybook yarn storybook and searching for GenericUpsellModal.

Further comments

@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Jun 30, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is targeting the wrong base branch. It should target 7.9.0, but it targets 7.8.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2025

🦋 Changeset detected

Latest commit: 06966b4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages
Name Type
@rocket.chat/meteor Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/api-client Patch
@rocket.chat/apps Patch
@rocket.chat/core-services Patch
@rocket.chat/cron Patch
@rocket.chat/ddp-client Patch
@rocket.chat/freeswitch Patch
@rocket.chat/fuselage-ui-kit Patch
@rocket.chat/gazzodown Patch
@rocket.chat/http-router Patch
@rocket.chat/livechat Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-avatar Patch
@rocket.chat/ui-client Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/account-service Patch
@rocket.chat/authorization-service Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/presence-service Patch
@rocket.chat/queue-worker Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/license Patch
@rocket.chat/omnichannel-services Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/presence Patch
rocketchat-services Patch
@rocket.chat/models Patch
@rocket.chat/network-broker Patch
@rocket.chat/mock-providers Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/ui-voip Patch
@rocket.chat/instance-status Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Jun 30, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://RocketChat.github.io/Rocket.Chat/pr-preview/pr-36333/

Built to branch gh-pages at 2025-07-08 16:03 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@codecov
Copy link

codecov bot commented Jun 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.78%. Comparing base (c39ccb5) to head (06966b4).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #36333      +/-   ##
===========================================
+ Coverage    64.75%   64.78%   +0.03%     
===========================================
  Files         3156     3156              
  Lines       104879   104916      +37     
  Branches     19956    19962       +6     
===========================================
+ Hits         67915    67971      +56     
+ Misses       34284    34262      -22     
- Partials      2680     2683       +3     
Flag Coverage Δ
e2e 57.63% <33.33%> (+0.03%) ⬆️
unit 69.50% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aleksandernsilva aleksandernsilva force-pushed the feat/generic-upsell-modal-improv branch from 0dc2e33 to a9fb723 Compare July 2, 2025 18:18
@aleksandernsilva aleksandernsilva marked this pull request as ready for review July 2, 2025 19:44
@aleksandernsilva aleksandernsilva requested a review from a team as a code owner July 2, 2025 19:44
@aleksandernsilva aleksandernsilva added this to the 7.9.0 milestone Jul 2, 2025
Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

what do you think about some snapshot and a11y tests, for these stories?

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

since GenericUpsellModal is an extension of GenericModal I have a feeling that these tests regarding events (onClose, onCancel, onConfirm) should be GenericModal tests, don't you?

@aleksandernsilva aleksandernsilva marked this pull request as draft July 2, 2025 22:15
@aleksandernsilva
Copy link
Contributor Author

since GenericUpsellModal is an extension of GenericModal I have a feeling that these tests regarding events (onClose, onCancel, onConfirm) should be GenericModal tests, don't you?

@dougfabris Funny enough, it currently does not use the GenericModal internally 😑 To keep things separate I opened #36347 to refactor the Upsell modal. This one I will rebase and keep only the img props changes.

@aleksandernsilva aleksandernsilva force-pushed the feat/generic-upsell-modal-improv branch from 9ed106b to a8234f2 Compare July 2, 2025 22:49
@aleksandernsilva aleksandernsilva changed the base branch from develop to refactor/generic-upsell-modal July 2, 2025 22:49
Base automatically changed from refactor/generic-upsell-modal to develop July 3, 2025 14:32
@aleksandernsilva aleksandernsilva force-pushed the feat/generic-upsell-modal-improv branch from a8234f2 to 0faf9f8 Compare July 3, 2025 14:46
@aleksandernsilva aleksandernsilva marked this pull request as ready for review July 3, 2025 14:48
Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

just missing the changeset

@aleksandernsilva aleksandernsilva added the stat: QA assured Means it has been tested and approved by a company insider label Jul 8, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Jul 8, 2025
@kodiakhq kodiakhq bot merged commit 4a9070c into develop Jul 8, 2025
115 of 121 checks passed
@kodiakhq kodiakhq bot deleted the feat/generic-upsell-modal-improv branch July 8, 2025 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants