mirror of
https://github.com/dergigi/boris.git
synced 2025-12-19 07:34:28 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user