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

DC Milo 0.2438 #810

Merged
merged 71 commits into from
Sep 17, 2024
Merged

DC Milo 0.2438 #810

merged 71 commits into from
Sep 17, 2024

Conversation

Blainegunn
Copy link
Collaborator

Release Notes: DC Milo 0.2438

Copy link

aem-code-sync bot commented Sep 17, 2024

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

@Blainegunn Blainegunn merged commit 1951099 into main Sep 17, 2024
12 of 16 checks passed
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 27.78448% with 1796 lines in your changes missing coverage. Please review.

Project coverage is 70.45%. Comparing base (9a26748) to head (5b63036).
Report is 154 commits behind head on main.

Files with missing lines Patch % Lines
acrobat/blocks/nonprofit/nonprofit.js 0.00% 805 Missing ⚠️
acrobat/blocks/nonprofit/constants.js 0.00% 427 Missing ⚠️
acrobat/blocks/nonprofit/select.js 0.00% 256 Missing ⚠️
acrobat/blocks/unity/unity.js 0.00% 113 Missing ⚠️
acrobat/blocks/verb-widget/verb-widget.js 41.08% 109 Missing ⚠️
acrobat/scripts/reactiveStore.js 0.00% 50 Missing ⚠️
acrobat/scripts/alloy/verb-widget.js 3.22% 30 Missing ⚠️
acrobat/blocks/rnr/rnr.js 99.14% 4 Missing ⚠️
acrobat/scripts/utils.js 90.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #810       +/-   ##
===========================================
- Coverage   93.81%   70.45%   -23.36%     
===========================================
  Files          40       47        +7     
  Lines        4944     7109     +2165     
===========================================
+ Hits         4638     5009      +371     
- Misses        306     2100     +1794     

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

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/acrobat.adobe.com\//);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'fetchUrl' is assigned a value but never used.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.

expect(launcher.getAttribute('src')).toMatch(/^https:\/\/stage.acrobat.adobe.com\//);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL('https://www.adobe.com');


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(document.querySelector('#CID').children).toHaveLength(3);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'url' is defined but never used.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(window.location).toMatch(/^https:\/\/www.adobe.com\/go\/acrobat-/);


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'url' is defined but never used.


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

fs.readFileSync(path.resolve(__dirname, './mocks/widget.html'))
),


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.


🚫 [eslint] <function-paren-newline> reported by reviewdog 🐶
Unexpected newline before ')'.


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break after this opening brace.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

isSignedInUser: jest.fn(() => true)
};


🚫 [eslint] <object-curly-newline> reported by reviewdog 🐶
Unexpected line break before this closing brace.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(`https://${hostname}`);


🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'widget' is assigned a value but never used.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'init' is not defined.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'getLibs' is not defined.

expect(getLibs()).toBe('/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('https://www.adobe.com/libs');


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com?milolibs=local'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('http://localhost:6456/libs');


🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URL is not supported in op_mini all

window.location = new URL(
'https://www.stage.adobe.com?milolibs=main--milo--tsayadobe'
);


🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

'https://www.stage.adobe.com?milolibs=main--milo--tsayadobe'
);


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.

const libs = setLibs('/libs');


🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

expect(libs).toBe('https://main--milo--tsayadobe.hlx.page/libs');


🚫 [eslint] <no-trailing-spaces> reported by reviewdog 🐶
Trailing spaces not allowed.

)
.then((response) => response.json())
.then((result) => {
console.log(result);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] <no-console> reported by reviewdog 🐶
Unexpected console statement.

organizationsStore.update(result.data);
})
.catch((error) => {
console.log(error);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] <no-console> reported by reviewdog 🐶
Unexpected console statement.

})
.then((response) => response.json())
.then((result) => {
console.log(result);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] <no-console> reported by reviewdog 🐶
Unexpected console statement.

organizationsStore.update((prev) => [...prev, ...result.data]);
})
.catch((error) => {
console.log(error);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] <no-console> reported by reviewdog 🐶
Unexpected console statement.

})
.then((response) => response.json())
.then((result) => {
console.log(result);
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ [eslint] <no-console> reported by reviewdog 🐶
Unexpected console statement.

@@ -3,9 +3,9 @@
*/
import path from 'path';
import fs from 'fs';
import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';
//import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

Suggested change
//import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';
// import init from '../../../acrobat/blocks/dc-converter-widget-ootb/dc-converter-widget-ootb';

@@ -131,5 +131,5 @@
window.dispatchEvent(new CustomEvent('IMS:Ready'));
// Issue with jest and window.location
//expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

Suggested change
//expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);
// expect(window.location).toMatch(/https:\/\/www.adobe.com\/go\/testredirect/);

@@ -1,9 +1,9 @@
/**
* @jest-environment jsdom
*/
import { setLibs, getLibs } from '../../acrobat/scripts/utils';
//import { setLibs, getLibs } from '../../acrobat/scripts/utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <spaced-comment> reported by reviewdog 🐶
Expected exception block, space or tab after '//' in comment.

Suggested change
//import { setLibs, getLibs } from '../../acrobat/scripts/utils';
// import { setLibs, getLibs } from '../../acrobat/scripts/utils';


describe('Test utils.js', () => {
describe.skip('Test utils.js', () => {
it('tests setLibs', async () => {
const libs = setLibs('/libs');
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'setLibs' is not defined.


describe('Test utils.js', () => {
describe.skip('Test utils.js', () => {
it('tests setLibs', async () => {
const libs = setLibs('/libs');
expect(libs).toBe('https://main--milo--adobecom.hlx.page/libs');
Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'expect' is not defined.

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URLSearchParams is not supported in op_mini all

const branch = new URLSearchParams(window.location.search).get('unitylibs') || 'main';

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <compat/compat> reported by reviewdog 🐶
URLSearchParams is not supported in op_mini all

const branch = new URLSearchParams(search).get('milolibs') || 'main';

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <no-unused-vars> reported by reviewdog 🐶
'fetchUrl' is assigned a value but never used.

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <compat/compat> reported by reviewdog 🐶
fetch is not supported in op_mini all

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <no-undef> reported by reviewdog 🐶
'jest' is not defined.

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <compat/compat> reported by reviewdog 🐶
Promise.resolve() is not supported in op_mini all

Copy link
Contributor

Choose a reason for hiding this comment

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

🚫 [eslint] <implicit-arrow-linebreak> reported by reviewdog 🐶
Expected no linebreak before this expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants