Add QuillSense support with settings and integration

- Introduced new "QuillSense" feature for AI-assisted book creation.
- Added QuillSense settings panel with advanced options and disable/enable functionality.
- Updated GhostWriter and TextEditor components to respect QuillSense settings.
- Extended models and repositories to track and manage QuillSense state per book.
- Localized new strings for English and French.
This commit is contained in:
natreex
2026-01-13 19:52:31 -05:00
parent 8bad6159cf
commit 306262caba
12 changed files with 106 additions and 28 deletions

View File

@@ -450,6 +450,7 @@
"characters": "Characters",
"objectsList": "Objects list",
"bookGoals": "Book goals",
"quillsense": "QuillSense Settings",
"save": "Save",
"notAvailable": "Option not available"
},
@@ -489,6 +490,7 @@
"title": "Ghost Writer",
"description": "Turn your ideas into captivating prose",
"subscriptionRequired": "You must be subscribed to Quill Sense to use Ghost Writer.",
"quillsenseDisabled": "QuillSense is disabled for this book. You can enable it in the book settings.",
"subscribe": "Subscribe",
"length": "Text length",
"minimum": "Minimum",
@@ -768,7 +770,8 @@
"locations": "Locations",
"characters": "Characters",
"objects": "Objects",
"goals": "Goals"
"goals": "Goals",
"quillsense": "QuillSense"
},
"basicInformationSetting": {
"error": {
@@ -829,7 +832,8 @@
"common": {
"cancel": "Cancel",
"confirm": "Confirm",
"unknownError": "An unknown error occurred"
"unknownError": "An unknown error occurred",
"loading": "Loading..."
},
"editor": {
"error": {
@@ -993,5 +997,22 @@
"deleteLocalToo": "Also delete local version",
"deleteLocalWarning": "Warning: This action will delete the book from the server AND your device. This action is irreversible.",
"errorUnknown": "An unknown error occurred while deleting the book."
},
"quillSenseSetting": {
"title": "QuillSense Settings",
"description": "Manage AI features for this book.",
"enableSection": "Enable/Disable QuillSense",
"enableLabel": "QuillSense enabled",
"enableDescription": "When enabled, AI features like Ghost Writer and QuillSense will be available for this book.",
"advancedSection": "Advanced Settings",
"advancedPromptLabel": "Advanced Prompt",
"advancedPromptPlaceholder": "Enter custom instructions for the AI...",
"advancedPromptHint": "These instructions will be included in every text generation for this book.",
"disabledWarning": "QuillSense is disabled. AI features will not be available for this book.",
"errorFetch": "Error fetching QuillSense settings.",
"errorSave": "Error saving settings.",
"errorUnknown": "An unknown error occurred.",
"successSave": "QuillSense settings saved successfully.",
"noBookSelected": "No book selected."
}
}