mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
feat(books): add manual write-and-rename action in metadata editor
allow users to trigger file write-back and rename from the edit metadata tab as a single explicit action. return write and rename outcomes with library setting flags so the UI can show clear result and warning states. Closes #143
This commit is contained in:
@@ -53,6 +53,8 @@ export enum AuditAction {
|
||||
BookBulkUpdateTags = "book.bulk.update_tags",
|
||||
BookBulkSetMetadataLock = "book.bulk.set_metadata_lock",
|
||||
|
||||
BookWriteAndRename = "book.write_and_rename",
|
||||
|
||||
CollectionCreate = "collection.create",
|
||||
CollectionUpdate = "collection.update",
|
||||
CollectionDelete = "collection.delete",
|
||||
|
||||
@@ -28,6 +28,13 @@ export interface FileRenameResult {
|
||||
durationMs: number;
|
||||
}
|
||||
|
||||
export interface BookWriteAndRenameResult {
|
||||
write: WriteResult;
|
||||
rename: FileRenameResult;
|
||||
libraryAutoWriteEnabled: boolean;
|
||||
libraryAutoRenameEnabled: boolean;
|
||||
}
|
||||
|
||||
// ── Bulk Rename ─────────────────────────────────────────────────────────────
|
||||
|
||||
export type BulkRenameStatus = "will_rename" | "unchanged" | "collision" | "no_pattern" | "error";
|
||||
|
||||
Reference in New Issue
Block a user