Skip to content

The open alternative to Salesforce, designed for AI.

Improve log visibility in dev mode (#21393)

martmull6525af5ba4dd
diff --git a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts
index 0fc27e0b70b..62db735771e 100644
--- a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts
+++ b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.ts
@@ -11,6 +11,7 @@ import { type FileFolder } from 'twenty-shared/types';
export type OrchestratorStateStepEvent = {
message: string;
status: 'info' | 'success' | 'error' | 'warning';
+ spacingBefore?: boolean;
};
export type OrchestratorStateEvent = OrchestratorStateStepEvent & {
diff --git a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts
index d130d2b9a4d..ac3ded2997a 100644
--- a/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts
+++ b/packages/twenty-sdk/src/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.ts
@@ -109,6 +109,7 @@ export class StartWatchersOrchestratorStep {
this.state.addEvent({
message: `Change detected: ${sourcePath}`,
status: 'info',
+ spacingBefore: true,
});
if (event === 'unlink') {
diff --git a/packages/twenty-sdk/src/cli/utilities/dev/ui/components/dev-ui-event-log.tsx b/packages/twenty-sdk/src/cli/utilities/dev/ui/components/dev-ui-event-log.tsx
index 8333a6b9fea..b7194b7eaae 100644
--- a/packages/twenty-sdk/src/cli/utilities/dev/ui/components/dev-ui-event-log.tsx
+++ b/packages/twenty-sdk/src/cli/utilities/dev/ui/components/dev-ui-event-log.tsx
@@ -16,7 +16,7 @@ export const DevUiEventItem = ({
const time = formatTime(event.timestamp);
return (
- <Box>
+ <Box marginTop={event.spacingBefore ? 1 : 0}>
<Text dimColor>{time} </Text>
<Text color={color}>{event.message}</Text>
</Box>