-
Notifications
You must be signed in to change notification settings - Fork 35
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
MWPW-158944 #820
Conversation
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} `); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected console statement.
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); | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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...
)?
There was a problem hiding this comment.
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.
Resolves : MWPW-158944