Implement background worker to make search response faster and avoid hanging the UI when there are a lot of files. Implement better toast messages for transitional events that automatically disappear.

This commit is contained in:
Leo Vasanko
2026-01-31 21:02:16 +00:00
parent 1e74245721
commit 40fb7bf398
8 changed files with 305 additions and 41 deletions
+9 -1
View File
@@ -1,5 +1,8 @@
<template>
<div v-if="store.error && !store.authInProgress" class="toast-message" @click="store.error = ''">
<div v-if="store.toast" class="toast-message" @click="store.clearToast()">
{{ store.toast }}
</div>
<div v-else-if="store.error && !store.authInProgress" class="toast-message status" @click="store.error = ''">
{{ store.error }}
</div>
<SettingsModal />
@@ -100,6 +103,7 @@ const globalShortcutHandler = (event: KeyboardEvent) => {
// Globally close search, clear errors on Escape
else if (keyup && event.key === 'Escape') {
store.error = ''
store.clearToast()
headerMain.value!.closeSearch(event)
store.focusBreadcrumb()
}
@@ -181,4 +185,8 @@ export type { Path }
max-width: 90vw;
text-align: center;
}
.toast-message.status {
background: #555;
color: #fff;
}
</style>