From 7215ac5c4f05b269c88bc1d7d42de49ba86d8d73 Mon Sep 17 00:00:00 2001 From: natreex Date: Wed, 14 Jan 2026 09:23:08 -0500 Subject: [PATCH] Update QuillSense conditional logic in UI components - Adjusted conditions in `ScribeControllerBar`, `DraftCompanion`, and `DraftWordCount` to respect `QuillSense` enablement. - Ensured consistent handling of `quillsenseEnabled` property across features. --- components/ScribeControllerBar.tsx | 2 +- components/editor/DraftCompanion.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ScribeControllerBar.tsx b/components/ScribeControllerBar.tsx index 8a6d2f5..355963b 100644 --- a/components/ScribeControllerBar.tsx +++ b/components/ScribeControllerBar.tsx @@ -130,7 +130,7 @@ export default function ScribeControllerBar() {
handleChapterVersionChanged(parseInt(e.target.value))} data={chapterVersions.filter((version: SelectBoxProps): boolean => { - return !(version.value === '1' && !hasAccess); + return !(version.value === '1' && (!hasAccess || book?.quillsenseEnabled === false)); }).map((version: SelectBoxProps) => { return { value: version.value.toString(), diff --git a/components/editor/DraftCompanion.tsx b/components/editor/DraftCompanion.tsx index a350241..86a12e0 100644 --- a/components/editor/DraftCompanion.tsx +++ b/components/editor/DraftCompanion.tsx @@ -432,7 +432,7 @@ export default function DraftCompanion() { return element ? element.label : value; } - if (showEnhancer && hasAccess) { + if (showEnhancer && hasAccess && book?.quillsenseEnabled !== false) { return (
{draftWordCount}
{ - hasAccess && chapter?.chapterContent.version === 3 && ( + hasAccess && book?.quillsenseEnabled !== false && chapter?.chapterContent.version === 3 && (
setShowEnhancer(true)}