pinakes-ui: format all rsx blocks

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I21e7b73da193609c5d15b7f19d9668f96a6a6964
This commit is contained in:
raf 2026-02-10 12:51:53 +03:00
commit 26db7279d6
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
4 changed files with 128 additions and 85 deletions

View file

@ -1372,44 +1372,64 @@ pub fn App() -> Element {
selected_media.set(Some(media));
auto_play_media.set(false);
}
// Extract file name from path
// Extract file name from path
// Check if already importing - if so, add to queue
// Extract directory name from path
// Check if already importing - if so, add to queue
// Get preview files if available for per-file progress
// Use parallel import with per-batch progress
// Show first file in batch as current
// Process batch in parallel
// Update progress after batch
// Fallback: use server-side directory import (no per-file progress)
// Check if already importing - if so, add to queue
// Update progress from scan status
// Check if already importing - if so, add to queue
// Process files in parallel batches for better performance
// Show first file in batch as current
// Process batch in parallel
// Update progress after batch
// Extended import state
// Load tags for the media
// Check if already importing - if so, add to queue
// Extract directory name from path
// Check if already importing - if so, add to queue
// Get preview files if available for per-file progress
// Use parallel import with per-batch progress
// Show first file in batch as current
// Process batch in parallel
// Update progress after batch
// Fallback: use server-side directory import (no per-file progress)
// Check if already importing - if so, add to queue
// Update progress from scan status
// Check if already importing - if so, add to queue
// Process files in parallel batches for better performance
// Show first file in batch as current
// Process batch in parallel
// Update progress after batch
// Extended import state
Err(e) => {
// Load tags for the media
show_toast(format!("Failed to load linked note: {e}"), true)
}
}
@ -1646,22 +1666,6 @@ pub fn App() -> Element {
move |(path, tag_ids, new_tags, col_id): ImportEvent| {
let file_name = path.rsplit('/').next().unwrap_or(&path).to_string();
if *import_in_progress.read() {
import_queue.write().push(file_name);