feat: Editing large notes (greater than 1.5MB) will result in more optimized syncing, in which changes are saved locally immediately, but sync with the server less frequently (roughly every 30 seconds rather than after every change). (#2768)
This commit is contained in:
@@ -15,6 +15,7 @@ export const MAX_MENU_SIZE_MULTIPLIER = 30
|
||||
export const FOCUSABLE_BUT_NOT_TABBABLE = -1
|
||||
export const NOTES_LIST_SCROLL_THRESHOLD = 200
|
||||
|
||||
export const MILLISECONDS_IN_A_SECOND = 1000
|
||||
export const MILLISECONDS_IN_A_DAY = 1000 * 60 * 60 * 24
|
||||
export const DAYS_IN_A_WEEK = 7
|
||||
export const DAYS_IN_A_YEAR = 365
|
||||
@@ -58,3 +59,5 @@ export const SupportsPassiveListeners = (() => {
|
||||
}
|
||||
return supportsPassive
|
||||
})()
|
||||
|
||||
export const LargeNoteThreshold = 1.5 * BYTES_IN_ONE_MEGABYTE
|
||||
|
||||
@@ -13,4 +13,5 @@ export const ElementIds = {
|
||||
NoteStatusTooltip: 'note-status-tooltip',
|
||||
ItemLinkAutocompleteInput: 'item-link-autocomplete-input',
|
||||
SearchBar: 'search-bar',
|
||||
ConflictResolutionButton: 'conflict-resolution-button',
|
||||
} as const
|
||||
|
||||
Reference in New Issue
Block a user