From 329da8298a7649145c4700a1d655b496e06d1b5b Mon Sep 17 00:00:00 2001 From: Joey Date: Thu, 4 Dec 2025 12:12:04 +0000 Subject: [PATCH] Make blue default sticky note color --- .../features/explore-map/components/ExploreMapStickyNote.tsx | 2 +- public/app/features/explore-map/crdt/state.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/explore-map/components/ExploreMapStickyNote.tsx b/public/app/features/explore-map/components/ExploreMapStickyNote.tsx index 0d8f3e1bbc7..756ed2fb3a9 100644 --- a/public/app/features/explore-map/components/ExploreMapStickyNote.tsx +++ b/public/app/features/explore-map/components/ExploreMapStickyNote.tsx @@ -45,7 +45,7 @@ export function ExploreMapStickyNote({ postIt, zoom }: ExploreMapStickyNoteProps const [editText, setEditText] = useState(postIt.text); const [dragStartPos, setDragStartPos] = useState<{ x: number; y: number } | null>(null); - const colorInfo = STICKY_NOTE_COLORS.find((c) => c.name === postIt.color) || STICKY_NOTE_COLORS.find((c) => c.name === 'purple') || STICKY_NOTE_COLORS[0]; + const colorInfo = STICKY_NOTE_COLORS.find((c) => c.name === postIt.color) || STICKY_NOTE_COLORS.find((c) => c.name === 'blue') || STICKY_NOTE_COLORS[0]; const handleDragStart: RndDragCallback = useCallback( (_e, data) => { diff --git a/public/app/features/explore-map/crdt/state.ts b/public/app/features/explore-map/crdt/state.ts index 5b0fb8920aa..ae8fdb2e2ba 100644 --- a/public/app/features/explore-map/crdt/state.ts +++ b/public/app/features/explore-map/crdt/state.ts @@ -678,7 +678,7 @@ export class CRDTStateManager { postItId, position, text: text || '', - color: color || 'purple', + color: color || 'blue', createdBy, }, };