diff --git a/src/components/HighlightItem.tsx b/src/components/HighlightItem.tsx index 04d66e35..fda651d7 100644 --- a/src/components/HighlightItem.tsx +++ b/src/components/HighlightItem.tsx @@ -306,8 +306,8 @@ export const HighlightItem: React.FC = ({ } } - // Check if this highlight was created offline (flight mode) - const isOfflineCreated = highlight.isOfflineCreated + // Check if this highlight was only published to local relays + const isLocalOnly = highlight.isLocalOnly // Show highlighter icon with relay info if available if (highlight.publishedRelays && highlight.publishedRelays.length > 0) { @@ -315,8 +315,8 @@ export const HighlightItem: React.FC = ({ url.replace(/^wss?:\/\//, '').replace(/\/$/, '') ) return { - icon: isOfflineCreated ? faPlane : faHighlighter, - tooltip: isOfflineCreated ? 'Created offline - will sync when online' : relayNames.join('\n'), + icon: isLocalOnly ? faPlane : faHighlighter, + tooltip: isLocalOnly ? 'Local relays only - will sync when remote relays available' : relayNames.join('\n'), spin: false } } diff --git a/src/services/highlightCreationService.ts b/src/services/highlightCreationService.ts index 75eb6f2a..a56db8b1 100644 --- a/src/services/highlightCreationService.ts +++ b/src/services/highlightCreationService.ts @@ -135,7 +135,7 @@ export async function createHighlight( // Convert to Highlight with relay tracking info and return IMMEDIATELY const highlight = eventToHighlight(signedEvent) highlight.publishedRelays = expectedSuccessRelays - highlight.isOfflineCreated = isLocalOnly + highlight.isLocalOnly = isLocalOnly return highlight } diff --git a/src/types/highlights.ts b/src/types/highlights.ts index 76dfcb1f..4a6e9267 100644 --- a/src/types/highlights.ts +++ b/src/types/highlights.ts @@ -15,10 +15,10 @@ export interface Highlight { comment?: string // optional comment about the highlight // Level classification (computed based on user's context) level?: HighlightLevel - // Relay tracking for offline highlights + // Relay tracking for local-only highlights publishedRelays?: string[] // URLs of relays where this was published (for user-created highlights) seenOnRelays?: string[] // URLs of relays where this event was fetched from - isOfflineCreated?: boolean // true if created while in flight mode (offline) + isLocalOnly?: boolean // true if only published to local relays isSyncing?: boolean // true if currently being synced to remote relays }