Remove editor split tests (#14985)

* Remove source-editor-toolbar split test
* Remove editor-left-menu split test
* Remove paste-html split test
* Remove figure-modal split test
* Remove rich-text split test
* Remove table-generator split test

GitOrigin-RevId: e3fe415b81ff0135d8764cd3f3c91b1dd4a77cf0
This commit is contained in:
Alf Eaton
2023-10-04 08:04:34 +00:00
committed by Copybot
parent 0f473d9a9f
commit 6dbb2df5b8
18 changed files with 165 additions and 214 deletions
@@ -36,7 +36,6 @@ export const ToolbarItems: FC<{
const isActive = withinFormattingCommand(state)
const addCommentEmitter = useScopeEventEmitter('comment:start_adding')
const { setReviewPanelOpen } = useLayoutContext()
const splitTestVariants = getMeta('ol-splitTestVariants', {})
const addComment = useCallback(
(view: EditorView) => {
const range = view.state.selection.main
@@ -52,8 +51,6 @@ export const ToolbarItems: FC<{
[addCommentEmitter, setReviewPanelOpen]
)
const showFigureModal = splitTestVariants['figure-modal'] === 'enabled'
const showTableGenerator = splitTestVariants['table-generator'] === 'enabled'
const symbolPaletteAvailable = getMeta('ol-symbolPaletteAvailable')
const showGroup = (group: string) => !overflowed || overflowed.has(group)
@@ -157,17 +154,8 @@ export const ToolbarItems: FC<{
icon="comment"
hidden // enable this if an alternative to the floating "Add Comment" button is needed
/>
{showFigureModal ? (
<InsertFigureDropdown />
) : (
<ToolbarButton
id="toolbar-figure"
label={t('toolbar_insert_figure')}
command={commands.insertFigure}
icon="picture-o"
/>
)}
{showTableGenerator && <TableInserterDropdown />}
<InsertFigureDropdown />
<TableInserterDropdown />
</div>
)}
{showGroup('group-list') && (