The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Show app icon on every function in log console filter (#29190)
martmulla34e1d1000f6
diff --git a/packages/twenty-front/src/modules/applications/components/ApplicationStackIcon.tsx b/packages/twenty-front/src/modules/applications/components/ApplicationStackIcon.tsxindex 572f1b096a6..8e784effb75 100644--- a/packages/twenty-front/src/modules/applications/components/ApplicationStackIcon.tsx+++ b/packages/twenty-front/src/modules/applications/components/ApplicationStackIcon.tsx@@ -8,24 +8,29 @@ import { useTheme } from 'twenty-ui/theme';type ApplicationStackIconProps = {Icon?: IconComponent;applicationId?: string | null;+ showFirstPartyApplication?: boolean;};export const ApplicationStackIcon = ({Icon,applicationId,+ showFirstPartyApplication = false,}: ApplicationStackIconProps) => {const theme = useTheme();const isThirdPartyApplication = useIsThirdPartyApplication(applicationId);+ const shouldShowApplication =+ isDefined(applicationId) &&+ (showFirstPartyApplication || isThirdPartyApplication);if (!isDefined(Icon)) {- return isThirdPartyApplication ? (+ return shouldShowApplication ? (<AppChip applicationId={applicationId} size="md" chipOnly />) : null;}const icon = <Icon size={theme.icon.size.md} stroke={theme.icon.stroke.sm} />;- if (!isThirdPartyApplication) {+ if (!shouldShowApplication) {return icon;}diff --git a/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogFilterFields.tsx b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogFilterFields.tsxindex e0ed8c6e2ae..9ac451ba4f2 100644--- a/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogFilterFields.tsx+++ b/packages/twenty-front/src/modules/log-console/constants/LogConsoleApplicationLogFilterFields.tsx@@ -59,6 +59,7 @@ export const LOG_CONSOLE_APPLICATION_LOG_FILTER_FIELDS: LogConsoleFilterField[]<ApplicationStackIconIcon={IconBrandTypescript}applicationId={logicFunction.applicationId}+ showFirstPartyApplication/>),})),