Improve log visibility in dev mode (#21393)
Small PR to improve logging in twenty sdk dev mode ## After <img width="1406" height="580" alt="image" src="https://github.com/user-attachments/assets/a14edc2d-2194-420a-8b0b-b3ca35c31ccd" />
This commit is contained in:
@@ -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 & {
|
||||
|
||||
+1
@@ -109,6 +109,7 @@ export class StartWatchersOrchestratorStep {
|
||||
this.state.addEvent({
|
||||
message: `Change detected: ${sourcePath}`,
|
||||
status: 'info',
|
||||
spacingBefore: true,
|
||||
});
|
||||
|
||||
if (event === 'unlink') {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user