Skip to content

[MWPW-180571] Code refactoring and additional analytics requirement#585

Merged
Ruchika4 merged 18 commits intostagefrom
lightroom-refactor
Oct 17, 2025
Merged

[MWPW-180571] Code refactoring and additional analytics requirement#585
Ruchika4 merged 18 commits intostagefrom
lightroom-refactor

Conversation

@Ruchika4
Copy link
Collaborator

@Ruchika4 Ruchika4 commented Oct 13, 2025

Update code to make function names generic as this workflow will now be used for products other Photoshop. Following was updated:

  • Renamed psApiConfig → apiConfig
  • Renamed getPsApiConfig() → getApiConfig()
  • Renamed unityConfig.psEndPoint → unityConfig.endPoint
  • Renamed photoshopActionMaps() → executeActionMaps()
  • Updated product tag resolution to use configuration-driven approach from target-config.json for Lana logging
  • All API endpoint references updated throughout the files
  • Added additional analytics event for failures once uploading has started
  • Increase unit test coverage (workflow-upload - 94.68% , action-binder.js - 93.38%, upload-handler.js - 100%
Screenshot 2025-10-16 at 10 46 05 PM

Resolves: MWPW-180571

Test URLs:

arugupta1992 and others added 9 commits September 25, 2025 23:09
…ng with edit pdf (#575)

Fetch target campaign for mboxid 'acom_unity_'< product >'_'< verb
>'_region'
Using alloy sdk(_satellite.track) for fetch call
Added Unit Test
Target code is present in a separate file experiment-provider.js for
optimisation
We should not send the variantId in payload if the variant fetch fails.
BE will provide the default URL in that case for pdf-editor
Added warning analytics to capture the failure during fetching
experiment data

Resolves: [MWPW-173563](https://jira.corp.adobe.com/browse/MWPW-173563)

Test URLs:
Before: https://stage--dc--adobecom.aem.live/acrobat/online/pdf-editor
After:
https://stage--dc--adobecom.aem.live/acrobat/online/pdf-editor?unitylibs=editPdf-ab

---------

Co-authored-by: rohitsahu <sahurohit9@gmail.com>
Co-authored-by: Rohit Sahu <rosahu@adobe.com>
Co-authored-by: Arushi Gupta <arugupta@arushis-mbp.corp.adobe.com>
Co-authored-by: Arushi Gupta <arugupta@Arushis-MacBook-Pro.local>
Co-authored-by: Vipul Gupta <vipugpta@gmail.com>
Browser is not loading the latest stage code. This is a test commit to
initiate the code sync again to see if that helps

Co-authored-by: Arushi Gupta <arugupta@Arushis-MacBook-Pro.local>
Co-authored-by: Arushi Gupta <arugupta@Arushis-MacBook-Pro.local>
<!-- Before submitting, please review all open PRs. -->
Update the look and feel of the FF prompt bar to better align with
updates going out from the product team.
* Style updates to prompt bar.
* Add support for light/dark theme
* Do not display verb dropdown menu if only one verb is authored
* Remove icons from selected verb dropdown when multiple verbs are
authored.


Resolves: [MWPW-179765](https://jira.corp.adobe.com/browse/MWPW-179765)

**Test URLs:**
- Before:
https://main--cc--adobecom.aem.live/drafts/rclayton/firefly/text-to-image?martech=off
- After:
https://main--cc--adobecom.aem.live/drafts/rclayton/firefly/text-to-image?unitylibs=ff-reskin&martech=off

Additional testing URLs:

- **Light theme** -
https://main--cc--adobecom.aem.page/drafts/rclayton/firefly/text-to-image-light-dropdown?unitylibs=ff-reskin
- **Dark no dropdown menu** -
https://main--cc--adobecom.aem.page/drafts/rclayton/firefly/reskin?unitylibs=ff-reskin
- **Light no dropdown men**u -
https://main--cc--adobecom.aem.page/drafts/rclayton/firefly/text-to-image-light?unitylibs=ff-reskin

---------

Co-authored-by: Ryan Clayton <rclayton@adobe.com>
* Add support for lightroom workflow
* Add common util file for file chunking
* Unit tests
* Nala Tests

Resolves: [MWPW-180571](https://jira.corp.adobe.com/browse/MWPW-180571)

**Test URLs:**
- Before:
https://main--cc--adobecom.aem.live/drafts/ruchika/unity/lightroom/lightroom?unitylibs=stage&martech=off
- After:
https://main--cc--adobecom.aem.live/drafts/ruchika/unity/lightroom/lightroom?unitylibs=MWPW-180571&martech=off

**Testing Notes:**
**Lightroom testing**
1. Test with various size of jpeg files and make when the file is
greater than 10 MB file is uploaded in chunks
2. File type supported is jpeg/jpg 
3. Max size supported is 40 MB
4. If you get 403 when landing on the product page please open this url
in browser in another tab
https://f0.lightroom.adobe.com/tkt/#magic=split-rocker
5. Clear your cookies and test in normal window and not in incognito. We
are seeing some issue on product page when testing incognito.
6. This is going to be a desktop only feature. Authors will most likely
achieve it by using MEP

**Photoshop Testing:**
1. As this PR is touching the code for workflow-upload, please do a
regression PS workflow too


Authoring Documentation:

https://wiki.corp.adobe.com/display/adobedotcom/CC+Upload+Configurator+for+Lightroom
@aem-code-sync
Copy link

aem-code-sync bot commented Oct 13, 2025

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@aem-code-sync aem-code-sync bot temporarily deployed to lightroom-refactor October 13, 2025 22:03 Inactive
<!-- Before submitting, please review all open PRs. -->
This PR revers updates made in
#584

This is a solve for MAX to reduce authoring efforts adopting new prompt
bar designs.

* Reverse prompt bar light/dark theme colors.

Resolves: [MWPW-179765](https://jira.corp.adobe.com/browse/MWPW-179765)

**Test URLs:**
- Before:
https://main--cc--adobecom.aem.page/de/products/firefly?stage&martech=off
- After:
https://main--cc--adobecom.aem.page/de/products/firefly?unitylibs=ff-reskin-reverse&martech=off

<img width="1475" height="808" alt="image"
src="https://github.com/user-attachments/assets/6e0326a5-a105-4a20-9dd7-591295a33846"
/>

Co-authored-by: Ryan Clayton <rclayton@adobe.com>
<!-- Before submitting, please review all open PRs. -->

* Updates position of error toast after reskin.

Resolves: [MWPW-182082](https://jira.corp.adobe.com/browse/MWPW-182082)

**Test URLs:**
- Before:
https://main--cc--adobecom.aem.page/products/firefly?unitylibs=stage&martech=off
- After:
https://main--cc--adobecom.aem.page/products/firefly?unitylibs=ff-reskin-alert&martech=off

**Sans verb dropdown menu**
- Before:
https://main--cc--adobecom.aem.page/drafts/rclayton/firefly/text-to-image-light?unitylibs=stage&martech=off
- After:
https://main--cc--adobecom.aem.page/drafts/rclayton/firefly/text-to-image-light?unitylibs=ff-reskin-alert&martech=off

**Templage page**
- Before:
https://main--cc--adobecom.aem.page/drafts/rclayton/firefly/golive/firefly?unitylibs=stage&martech=off
- After:
https://main--cc--adobecom.aem.page/drafts/rclayton/firefly/golive/firefly?unitylibs=ff-reskin-alert&martech=off

**Testing notes:**
There are two displays of the prompt bar now. 
1. One with a dropdown menu that makes the prompt bar taller 
2. One without the dropdown menu where the prompt bar is shorter. 
Along with some authoring variations of the hero marquee.
These differences create some minor spacing differences as to where the
error toast displays. Nothing major, but noting there is some position
differenced based on the above details


<img width="1466" height="1179" alt="image"
src="https://github.com/user-attachments/assets/336dbe9c-32cc-4665-b5b4-7a66e60ba88e"
/>

<img width="747" height="377" alt="image"
src="https://github.com/user-attachments/assets/50d87840-8c67-49de-9cbc-a98210ed0327"
/>

Co-authored-by: Ryan Clayton <rclayton@adobe.com>
@aem-code-sync aem-code-sync bot temporarily deployed to lightroom-refactor October 16, 2025 17:14 Inactive
@Ruchika4 Ruchika4 changed the title [MWPW-180571] Update function names to be generic to support multiple products [MWPW-180571] Code refactoring and additional analytics requirement Oct 16, 2025
@aem-code-sync aem-code-sync bot temporarily deployed to lightroom-refactor October 17, 2025 03:48 Inactive
@aem-code-sync aem-code-sync bot temporarily deployed to lightroom-refactor October 17, 2025 04:03 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Oct 17, 2025

Codecov Report

❌ Patch coverage is 72.41379% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.54%. Comparing base (764f80c) to head (9992534).
⚠️ Report is 8 commits behind head on stage.

Files with missing lines Patch % Lines
...ibs/core/workflow/workflow-upload/action-binder.js 66.66% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #585      +/-   ##
==========================================
- Coverage   88.11%   87.54%   -0.58%     
==========================================
  Files          20       22       +2     
  Lines        5782     6125     +343     
==========================================
+ Hits         5095     5362     +267     
- Misses        687      763      +76     
Flag Coverage Δ
unittests 87.54% <72.41%> (-0.58%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

@aem-code-sync aem-code-sync bot temporarily deployed to lightroom-refactor October 17, 2025 04:05 Inactive
Copy link
Collaborator

@arugupta1992 arugupta1992 left a comment

Choose a reason for hiding this comment

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

LGTM

@aem-code-sync aem-code-sync bot temporarily deployed to lightroom-refactor October 17, 2025 15:50 Inactive
@Ruchika4
Copy link
Collaborator Author

Firefly failing test is not related to this PR and is getting fixed by #592
Merging this PR

@Ruchika4 Ruchika4 merged commit 6d59e3e into stage Oct 17, 2025
5 of 8 checks passed
sanjayms01 pushed a commit that referenced this pull request Oct 28, 2025
…585)

Update code to make function names generic as this workflow will now be
used for products other Photoshop. Following was updated:
* Renamed psApiConfig → apiConfig
* Renamed getPsApiConfig() → getApiConfig()
* Renamed unityConfig.psEndPoint → unityConfig.endPoint
* Renamed photoshopActionMaps() → executeActionMaps()
* Updated product tag resolution to use configuration-driven approach
from target-config.json for Lana logging
* All API endpoint references updated throughout the files
* Added additional analytics event for failures once uploading has
started
* Increase unit test coverage (workflow-upload - 94.68% ,
action-binder.js - 93.38%, upload-handler.js - 100%
<img width="1432" height="438" alt="Screenshot 2025-10-16 at 10 46 05
PM"
src="https://github.com/user-attachments/assets/28aab761-12aa-4768-8413-9cfae272eb44"
/>


Resolves: [MWPW-180571](https://jira.corp.adobe.com/browse/MWPW-180571)

**Test URLs:**
- Before:
https://main--cc--adobecom.aem.live/drafts/ruchika/unity/lightroom/lightroom?unitylibs=stage&martech=off
- After:
https://main--cc--adobecom.aem.live/drafts/ruchika/unity/lightroom/lightroom?unitylibs=lightroom-refactor&martech=off

---------

Co-authored-by: Arushi Gupta <65466846+arugupta1992@users.noreply.github.com>
Co-authored-by: rohitsahu <sahurohit9@gmail.com>
Co-authored-by: Rohit Sahu <rosahu@adobe.com>
Co-authored-by: Arushi Gupta <arugupta@arushis-mbp.corp.adobe.com>
Co-authored-by: Arushi Gupta <arugupta@Arushis-MacBook-Pro.local>
Co-authored-by: Vipul Gupta <vipugpta@gmail.com>
Co-authored-by: sigadamramesh <130433161+sigadamvenkata@users.noreply.github.com>
Co-authored-by: Santoshkumar Nateekar <santoshkumar.sn@gmail.com>
Co-authored-by: Ryan Clayton <rgclayton@gmail.com>
Co-authored-by: Ryan Clayton <rclayton@adobe.com>
@Ruchika4 Ruchika4 mentioned this pull request Oct 30, 2025
@Ruchika4 Ruchika4 deleted the lightroom-refactor branch November 4, 2025 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants