Merge pull request #302 from Worklenz/fix/reporting-sidebar-style-fix

feat(hubspot-integration): refine HubSpot widget styling and add acco…
This commit is contained in:
Chamika J
2025-07-28 16:14:03 +05:30
committed by GitHub
2 changed files with 19 additions and 5 deletions

View File

@@ -105,12 +105,21 @@ class HubSpotManager {
filter: invert(1) hue-rotate(180deg) !important; filter: invert(1) hue-rotate(180deg) !important;
} }
/* Additional targeting for widget launcher and chat bubble */ /* More specific targeting for HubSpot widget elements only - avoid affecting app UI */
div[class*="shadow-2xl"], div[class*="shadow-2xl"][class*="widget-align"]:not([class*="ant-"]),
div[class*="widget-align"], div[style*="position: fixed"][id*="hubspot"]:not([class*="ant-"]),
div[style*="position: fixed"] { div[style*="position: fixed"][class*="widget"]:not([class*="ant-"]) {
filter: invert(1) hue-rotate(180deg) !important; filter: invert(1) hue-rotate(180deg) !important;
} }
/* Ensure Worklenz app elements are not affected by HubSpot styles */
.ant-menu,
.ant-menu *,
[class*="settings"],
[class*="sidebar"],
.worklenz-app *:not([id*="hubspot"]):not([class*="widget"]) {
filter: none !important;
}
`; `;
document.head.appendChild(style); document.head.appendChild(style);
} }

View File

@@ -214,6 +214,11 @@ const AccountSetup: React.FC = () => {
} }
}; };
const handleSkipMembers = async () => {
// Bypass all validation and complete setup without team members
await completeAccountSetup(true);
};
const completeAccountSetupWithTemplate = async () => { const completeAccountSetupWithTemplate = async () => {
try { try {
await saveSurveyData(); // Save survey data first await saveSurveyData(); // Save survey data first
@@ -592,7 +597,7 @@ const AccountSetup: React.FC = () => {
type="link" type="link"
className="p-0 font-medium" className="p-0 font-medium"
style={{ color: token.colorTextTertiary }} style={{ color: token.colorTextTertiary }}
onClick={() => completeAccountSetup(true)} onClick={handleSkipMembers}
> >
{t('skipForNow')} {t('skipForNow')}
</Button> </Button>