-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isom-1689 polish for component editing panels (tiptap editor) #936
isom-1689 polish for component editing panels (tiptap editor) #936
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 242 Passed, 36 Skipped, 48.12s Total Time |
7a2a409
to
761e58c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm w 1 question on why we change render priority
@@ -11,7 +11,7 @@ export const JSON_FORMS_RANKING = { | |||
ObjectControl: 2, | |||
AllOfControl: 3, | |||
AnyOfControl: 3, | |||
ProseControl: 2, | |||
ProseControl: 3, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question - can i check what this fixes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be matched by jsonFormsObjectControlTester
otherwise since both are 2
, so setting 3
will ensure it's checked first before that
@@ -57,7 +57,7 @@ function TipTapProseComponent({ content }: TipTapComponentProps) { | |||
}, | |||
}) | |||
|
|||
const updatePageState = (editorContent: JSONContent) => { | |||
const updatePageState = (editorContent: JSONContent | undefined) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question - this is required so that it becomes undefined
and then we prevent the users from saving rgiht?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style (no action required) - tbh i preferred the old form cos it's more obvious but i guess this is ok too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh which part is more obvious? the UI is actually the same
…ngohjw/isom-1689-polish-for-component-editing-panels-tiptap-editor
Problem
Closes https://linear.app/ogp/issue/ISOM-1689/polish-for-component-editing-panels (the tiptap editor ones)
Solution
Breaking Changes
Features:
Bug Fixes:
required
aren't passed correctly toJsonFormsProseControl.tsx
as it has been intercepted byJsonFormsObjectControl
. Updated the tester to match correctly with higher ranking tooRefactoring:
useCalloutEditor
,useAccordionEditor
Tests
https://www.loom.com/share/8969a576620d4ca09888cd8f70e4b22e?sid=bf74b0b9-c5d6-4343-8690-5c57b1027420
please check against 1) callout, 2) contentpic, 3) accordion, 4) other prose blocks