Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Milo] BulkPublisher BETA Preview content should point to stage #3554

Merged
merged 8 commits into from
Jan 28, 2025

Conversation

cmiqueo
Copy link
Contributor

@cmiqueo cmiqueo commented Jan 27, 2025

Description:
The Use Preview Content functionality is not working for some consumers because the content is behind a login wall

Posible solution:
Read the content from the publish servers .stage. instead of reading from the github branch (main- or stage-)

For example the publisher will scrape the page from:
https://business.stage.adobe.com/customer-success-stories/xfinity-creative-customer-story.html

instead of
https://main--bacom--adobecom.hlx.page/customer-success-stories/xfinity-creative-customer-story

Resolves: MWPW-165869

This is a screenshot of some of the possible results
Screenshot 2025-01-27 at 1 45 06 PM

Test URLs:

Copy link
Contributor

aem-code-sync bot commented Jan 27, 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

Copy link
Contributor

aem-code-sync bot commented Jan 27, 2025

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (0a9e222) to head (5eb1165).
Report is 9 commits behind head on stage.

Additional details and impacted files
@@           Coverage Diff           @@
##            stage    #3554   +/-   ##
=======================================
  Coverage   96.49%   96.49%           
=======================================
  Files         260      260           
  Lines       60763    60763           
=======================================
+ Hits        58632    58634    +2     
+ Misses       2131     2129    -2     

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

@@ -127,7 +127,7 @@ const showSuccessTable = (successArr) => {
tableBody.innerHTML += `<tr>
<td>${++index}</td>
<td class="ok">OK</td>
<td><a href="${pageUrl}" title="View page">${pageUrl}</a></td>
<td><a href="${pageUrl}" target="_blank" title="View page">${pageUrl}</a></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good usability improvement for the UI. Could add rel=noopener noreferrer so the new tab can't access window.opener


index += 1;
statusModal.setContent(`Publishing ${index} of ${data.length}:<br>${pageUrl}`);

if (pageUrl === 'stop') break; // debug, stop on empty line
Copy link
Contributor

Choose a reason for hiding this comment

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

Good cleanup reviewing developmental/test code.

@@ -132,7 +132,7 @@ <h4>Advanced Options</h4>
</div>
<div id="use-preview-cb" class="field checkbox">
<input type="checkbox" id="usePreview" name="usePreview" />
<label for="usePreview">Use Preview Content (*.page)<span class="help use-preview" title="Help about this functionality">(?)</span></label>
<label for="usePreview">Use Preview Content (*.stage.*)<span class="help use-preview" title="Help about this functionality">(?)</span></label>
Copy link
Contributor

@sanrai sanrai Jan 27, 2025

Choose a reason for hiding this comment

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

This is good as it clarifies that the preview environment is from a stage domain.

@@ -147,7 +147,7 @@ const showErrorTable = (errorArr) => {
tableBody.innerHTML += `<tr>
<td>${index}</td>
<td class="error">Failed</td>
<td><a href="${pageUrl}">${pageUrl}</a></td>
<td><a href="${pageUrl}" target="_blank">${pageUrl}</a></td>
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a good usability improvement for the UI. Could add rel=noopener noreferrer so the new tab can't access window.opener

Copy link
Contributor

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

@cmiqueo cmiqueo self-assigned this Jan 28, 2025
@milo-pr-merge milo-pr-merge bot merged commit 03e7505 into stage Jan 28, 2025
24 checks passed
@milo-pr-merge milo-pr-merge bot deleted the MWPW-165869 branch January 28, 2025 20:56
@milo-pr-merge milo-pr-merge bot mentioned this pull request Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants