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

MWPW-158944 #820

Merged
merged 3 commits into from
Sep 25, 2024
Merged

MWPW-158944 #820

merged 3 commits into from
Sep 25, 2024

Conversation

Blainegunn
Copy link
Collaborator

Resolves : MWPW-158944

Copy link

aem-code-sync bot commented Sep 23, 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

export default function init(eventName, verb) {
console.log(`📡 Event Name - acrobat:verb-${verb}:${eventName}`);
export default function init(eventName, verb, metaData) {
console.log(`📡 Event Name - acrobat:verb-${verb}:${eventName} - metaData: ${metaData?.type} / ${metaData?.size} `);
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.

Comment on lines 153 to 177
if (e.detail?.code === 'only_accept_one_file') {
handleError(errorState, errorStateText, 'verb-widget-error-multi');
handleError(e.detail?.message);
verbAnalytics('error', VERB);
}

if (e.detail?.code === 'unsupported_type') {
handleError(errorState, errorStateText, 'verb-widget-error-unsupported');
handleError(e.detail?.message);
verbAnalytics('error:unsupported_type', VERB);
}

if (e.detail?.code === 'empty_file') {
handleError(errorState, errorStateText, 'verb-widget-error-empty');
handleError(e.detail?.message);
verbAnalytics('error:empty_file', VERB);
}

// Code may be wrong. should be 'file_too_large'
if (e.detail?.code === 'file_too_largempty_file') {
handleError(errorState, errorStateText, 'verb-widget-error-large', LIMITS[VERB].maxFileSizeFriendly);
handleError(e.detail?.message);
verbAnalytics('error', VERB);
}

if (e.detail?.code === 'max_page_count') {
handleError(errorState, errorStateText, 'verb-widget-error-max', LIMITS[VERB].maxNumFiles);
handleError(e.detail?.message);
verbAnalytics('error:max_page_count', VERB);
}

Choose a reason for hiding this comment

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

The codes that we send will be based off title.single.code in this sheet: fillsign.xlsx. Could we update these equality checks to includes() instead?

Choose a reason for hiding this comment

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

maybe @amitbikram can confirm reasoning behind using this specific format (ie. verb_upload_error...)?

Choose a reason for hiding this comment

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

Sorry I will need error in the prefix for the code to distinguish on unity end, but verb_upload seems extraneous.

@Blainegunn Blainegunn merged commit 482d705 into stage Sep 25, 2024
4 of 7 checks passed
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.

2 participants