Lançamento da versão 1.0.10

This commit is contained in:
2026-08-28 10:39:51 -03:00
parent 904e210ac8
commit 086cad88f5
11 changed files with 476 additions and 65 deletions

View File

@@ -6,7 +6,7 @@
TARGET_PARAM_VALUE,
TARGET_APP_URL,
HCM_ORIGIN,
HCM_WELCOME_PATHNAME,
HCM_WELCOME_PATHNAMES,
HCM_MY_INFORMATION_APPS_GROUP_ID,
WORKLIST_ORIGIN,
WORKLIST_SAASUI_PATHNAME,
@@ -57,6 +57,8 @@
getOperationalWeekInfo,
getCalendarRowWeekDate,
parseDatePreservingDateOnly,
decodeJwtPayload,
isJwtExpired,
getErrorMessage,
escapeHtml,
cssEscape,
@@ -134,6 +136,7 @@
storageService,
normalizeCachedExportPayload,
cleanString,
isJwtExpired,
});
const hcmPage = globalThis.ArchPanelHcmPage.create({
HCM_MY_INFORMATION_APPS_GROUP_ID,
@@ -141,6 +144,7 @@
WORKLIST_SAASUI_PATHNAME,
IDS,
cleanString,
isJwtExpired,
hcmTileTemplate: globalThis.ArchPanelTemplates.hcmTile,
onOpenArchPanel: openModal,
writeCachedWorklistToken,
@@ -247,11 +251,15 @@
const currentUrl = new URL(window.location.href);
return (
currentUrl.origin === HCM_ORIGIN &&
currentUrl.pathname === HCM_WELCOME_PATHNAME
isAllowedHcmOrigin(currentUrl) &&
HCM_WELCOME_PATHNAMES.includes(currentUrl.pathname)
);
}
function isAllowedHcmOrigin(url) {
return url?.origin === HCM_ORIGIN;
}
function scheduleSync() {
if (syncFrame) {
return;
@@ -642,6 +650,7 @@
cleanString,
firstNonEmptyString,
getFieldValue,
decodeJwtPayload,
toNumber,
normalizeWorkload,
isWonWorkload,