feat: add flight mode indicator to offline-created highlights

- Add isOfflineCreated property to Highlight type
- Set flag when highlight is created in local-only mode
- Display small plane icon in highlight sidebar for offline-created highlights
- Lighter amber color (#fbbf24) to distinguish from Local badge
- Tooltip: 'Created while in flight mode'
- Visual indicator helps users track which highlights need syncing
This commit is contained in:
Gigi
2025-10-09 13:51:04 +01:00
parent 4224c989c6
commit 95162d4423
4 changed files with 20 additions and 1 deletions

View File

@@ -152,6 +152,7 @@ export async function createHighlight(
const highlight = eventToHighlight(signedEvent)
highlight.publishedRelays = actualPublishedRelays
highlight.isLocalOnly = isLocalOnly
highlight.isOfflineCreated = isLocalOnly // Mark as created offline if local-only
// Return the highlight for immediate UI updates
return highlight