Skip to content

md_preview_for_detail+subtask#228

Merged
Tech-lo merged 3 commits into
devfrom
md-preview
Jun 11, 2026
Merged

md_preview_for_detail+subtask#228
Tech-lo merged 3 commits into
devfrom
md-preview

Conversation

@Lungsangg

Copy link
Copy Markdown
Member

No description provided.

@Lungsangg Lungsangg requested a review from tenkus47 June 10, 2026 17:49
@greptile-apps

greptile-apps Bot commented Jun 10, 2026

Copy link
Copy Markdown

Confidence Score: 5/5

Safe to merge; the only notable behaviour gap is a minor UX glitch when the disabled prop toggles after mount, which does not lose data.

All changes are additive UI improvements. The stale-tab issue when disabled transitions after mount is a cosmetic inconvenience — the user sees a disabled textarea instead of the rendered preview, but data is not lost and they can still click Preview manually. No data-path regressions were found.

src/components/ui/atoms/markdown-editor.tsx — the activeTab/disabled sync gap noted above.

Reviews (2): Last reviewed commit: "feat(markdown-editor): set default tab t..." | Re-trigger Greptile

Comment thread src/components/ui/atoms/markdown-editor.tsx
Comment on lines +6 to +13
type MarkdownEditorProps = {
value: string;
onChange: (value: string) => void;
placeholder?: string;
disabled?: boolean;
className?: string;
textareaClassName?: string;
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 onBlur and ref not exposed

MarkdownEditor doesn't accept or forward onBlur or ref, so every usage inside a react-hook-form FormField (see CreatePlan.tsx, LanguageDetailsCard.tsx, SubTaskCard.tsx) silently drops field.onBlur and field.ref. With the default onSubmit validation mode this doesn't break validation, but the field's touched state never updates and RHF's automatic focus-on-error (setFocus) won't work for these description fields.

@Tech-lo Tech-lo merged commit edac383 into dev Jun 11, 2026
3 checks passed
@Tech-lo Tech-lo deleted the md-preview branch June 11, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants