From 915cf88a52d05b0671c89419c241693d818c5834 Mon Sep 17 00:00:00 2001 From: UdayRajSahai2 Date: Wed, 18 Feb 2026 12:30:13 +0530 Subject: [PATCH 1/3] Character limit text size fixed --- components/RichTextEditor/RichTextEditor.tsx | 37 +++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/components/RichTextEditor/RichTextEditor.tsx b/components/RichTextEditor/RichTextEditor.tsx index a8969c74..a9020599 100644 --- a/components/RichTextEditor/RichTextEditor.tsx +++ b/components/RichTextEditor/RichTextEditor.tsx @@ -37,7 +37,7 @@ const RichTextEditor: React.FC = ({ ); // Custom image handler to use URLs instead of base64 - const imageHandler = function(this: any) { + const imageHandler = function (this: any) { const url = prompt('Enter image URL:'); if (url) { const quill = this.quill; @@ -53,21 +53,21 @@ const RichTextEditor: React.FC = ({ toolbar: readOnly ? false : { - container: [ - [{ header: [1, 2, 3, false] }], - ['bold', 'italic', 'underline', 'strike'], - [{ list: 'ordered' }, { list: 'bullet' }], - [{ indent: '-1' }, { indent: '+1' }], - ['link', 'image'], - [{ align: [] }], - ['clean'], - ['preview'], // Custom preview button - ], - handlers: { - preview: () => setIsPreview(!isPreview), - image: imageHandler, - }, + container: [ + [{ header: [1, 2, 3, false] }], + ['bold', 'italic', 'underline', 'strike'], + [{ list: 'ordered' }, { list: 'bullet' }], + [{ indent: '-1' }, { indent: '+1' }], + ['link', 'image'], + [{ align: [] }], + ['clean'], + ['preview'], // Custom preview button + ], + handlers: { + preview: () => setIsPreview(!isPreview), + image: imageHandler, }, + }, clipboard: { matchVisual: false, }, @@ -96,7 +96,7 @@ const RichTextEditor: React.FC = ({ {label} )} - + {isPreview ? (
@@ -137,7 +137,7 @@ const RichTextEditor: React.FC = ({ />
)} - + {helpText && (

{helpText}

)} @@ -200,6 +200,9 @@ const RichTextEditor: React.FC = ({ align-items: center; gap: 4px; } + .rich-text-editor + p { + font-size: 12px; + } .preview-content { padding: 0; From 36e40903f8f399c5f84f96a64db6868ad46bd78f Mon Sep 17 00:00:00 2001 From: UdayRajSahai2 Date: Wed, 18 Feb 2026 14:52:03 +0530 Subject: [PATCH 2/3] Registered tab is highlighted now --- .../dashboard/[entityType]/[entitySlug]/aimodels/page.tsx | 1 + .../dataset/components/navigate-org-datasets.tsx | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/page.tsx b/app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/page.tsx index f8b2df18..5c3ab74d 100644 --- a/app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/page.tsx +++ b/app/[locale]/dashboard/[entityType]/[entitySlug]/aimodels/page.tsx @@ -258,6 +258,7 @@ export default function AIModelsPage({ {AllAIModels.data?.aiModels.length > 0 ? ( diff --git a/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx b/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx index e8ea4a75..2fb9fbf4 100644 --- a/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx +++ b/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx @@ -3,6 +3,7 @@ import { Tab, TabList, Tabs } from 'opub-ui'; export const Navigation = ({ setNavigationTab, options, + currentValue, }: { setNavigationTab: (url: string) => void; options: Array<{ @@ -10,14 +11,15 @@ export const Navigation = ({ url: string; selected: boolean; }>; + currentValue: string; }) => { const handleTabClick = (url: string) => { setNavigationTab(url); }; - + const initialValue = options.find((o) => o.selected)?.url ?? options[0]?.url ?? ''; return (
- + {options.map((item, index) => ( Date: Wed, 18 Feb 2026 15:04:37 +0530 Subject: [PATCH 3/3] Fixed typescript error --- .../[entitySlug]/dataset/components/navigate-org-datasets.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx b/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx index 2fb9fbf4..176df945 100644 --- a/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx +++ b/app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/components/navigate-org-datasets.tsx @@ -11,7 +11,7 @@ export const Navigation = ({ url: string; selected: boolean; }>; - currentValue: string; + currentValue?: string; }) => { const handleTabClick = (url: string) => { setNavigationTab(url);