Skip to content

Commit

Permalink
MWPW-165523: Fixes BETA Caas bulkpublisher auto-detect (#3476)
Browse files Browse the repository at this point in the history
* Revert "MWPW-140452 - Icon authoring in milo using the federal repo a… (#3357)

Revert "MWPW-140452 - Icon authoring in milo using the federal repo and individual SVG assets (#3259)"

This reverts commit 81a5770.

* MWPW-165523: Fixes BETA Caas bulkpublisher auto-detect

* Minor css fix

---------

Co-authored-by: milo-pr-merge[bot] <169241390+milo-pr-merge[bot]@users.noreply.github.com>
Co-authored-by: Okan Sahin <39759830+mokimo@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 16, 2025
1 parent 3076a7a commit 91d1e3d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tools/send-to-caas/bulk-publish-to-caas.beta.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const FIELDS_CB = ['draftOnly', 'useHtml', 'usePreview'];
const DEFAULT_VALUES = {
preset: 'default',
caasEnv: 'prod',
contentType: 'caas:content-type/article',
contentType: '',
excelFile: '',
host: 'business.adobe.com',
owner: 'adobecom',
Expand Down Expand Up @@ -143,7 +143,7 @@ const showErrorTable = (errorArr) => {
/* eslint-disable no-plusplus */
errorArr.forEach(([pageUrl, response]) => {
index += 1;
const message = response.error ? response.error.replace(/:.*/, '') : response;
const message = response.message ? response.message : response;
tableBody.innerHTML += `<tr>
<td>${index}</td>
<td class="error">Failed</td>
Expand Down Expand Up @@ -333,7 +333,7 @@ const getPresetsData = async () => {
const resetAdvancedOptions = () => {
/* eslint-disable no-undef */
caasEnv.value = 'prod';
contentType.value = 'auto';
contentType.value = '';
draftOnly.checked = false;
useHtml.checked = false;
usePreview.checked = false;
Expand Down Expand Up @@ -382,7 +382,7 @@ presetSelector.addEventListener('change', () => {
config.repo = selectedPreset.repo || '';
config.useHtml = selectedPreset.useHtml === 'true';
if (selectedPreset.contentType === '' || selectedPreset.contentType?.toLowerCase() === 'auto') {
config.contentType = 'auto';
config.contentType = '';
} else {
config.contentType = selectedPreset.contentType;
}
Expand Down
2 changes: 1 addition & 1 deletion tools/send-to-caas/bulkpublish.beta.css
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ tbody tr:hover {
color: #bababa
}

.status button.clear-results:hover {
.bulk-publisher.dark .status button.clear-results:hover {
background: linear-gradient(0deg, #333, transparent);
}

Expand Down
2 changes: 1 addition & 1 deletion tools/send-to-caas/bulkpublisher.beta.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h4>Advanced Options</h4>
<div class="field">
<label for="contentType">ContentType Fallback: <span class="help content-type-fallback" title="Help about this functionality">(?)</span></label>
<select name="contentType" id="contentType">
<option value="auto">Auto Detect</option>
<option value="">Auto Detect</option>
<option value="caas:content-type/announcements">Announcements</option>
<option value="caas:content-type/application">Application</option>
<option value="caas:content-type/article">Article</option>
Expand Down

0 comments on commit 91d1e3d

Please sign in to comment.