Skip to content

[draft] feat!: migrate to UIkit 8 - #1408

Draft
makhnatkin wants to merge 37 commits into
mainfrom
feat/uikit-8
Draft

makhnatkin wants to merge 37 commits into
mainfrom
feat/uikit-8

Conversation

@makhnatkin

@makhnatkin makhnatkin commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Require a dependency set compatible with UIkit 8

  • Required UIkit 8, components 5, and React/React DOM 18 or 19 in the editor, header, LaTeX, Page Constructor extensions, and the viewer.
  • Added explicit drag-and-drop, virtualization, and sizing dependencies for legacy components and the code language selector.
  • Declared Page Constructor 9, its Diplodoc extension 0.14, and Diplodoc transform 4.78.12 in the dependency catalog. Lockfile still resolves 7.25, 0.13.3, and 4.75.1 until the new releases are published.

Preserve existing menus and selection behavior

  • Moved menus, dropdowns, suggestion lists, and their types to the UIkit legacy entry point across the editor and demo; updated their CSS prefixes.
  • Migrated toolbar, code language, and deprecated tooltip selector option types.
  • Enabled explicit virtualization for code language lists with at least 50 options.

Replace APIs removed in UIkit 8

  • Updated application providers in Storybook, Playwright, and form tests.
  • Migrated popup anchors and close callbacks; outside-click handling is kept in deprecated tooltip controls.
  • Replaced removed spacing, gap, centering, and numeric sizing props.
  • Replaced the dark-theme iframe background with the contrast color token.

Keep forms and prompt submission working

  • Replaced legacy tabs in file and image forms with TabList and Tab.
  • Moved image-settings and GPT prompt inputs from onKeyPress to onKeyDown; Enter is ignored during IME composition, including keyCode 229.
  • Added useGpt tests for Enter during and after composition.

Page Constructor

  • Migrated editing controls to the new layout, popup, and button event APIs; double-click isolation is preserved.
  • Updated light/dark visual baselines for settings, Mermaid, and Page Constructor.

Documentation

  • Added docs/uikit-8-migration.md with dependency, provider, select, and CSS migration guidance and the prerequisites for publishing compatible releases.

🤖 Generated with Claude Code

BREAKING CHANGE: UIkit 8, components 5, and React 18 or 19 are required.
@gravity-ui

gravity-ui Bot commented Nov 5, 2026

Copy link
Copy Markdown

🎭 Playwright Report

@gravity-ui

gravity-ui Bot commented Nov 5, 2026

Copy link
Copy Markdown

Storybook Deployed

@makhnatkin
makhnatkin changed the base branch from main to test/attachment-form-baselines November 5, 2026 15:53
Base automatically changed from test/attachment-form-baselines to main November 5, 2026 17:35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@makhnatkin makhnatkin changed the title feat!: migrate to UIkit 8 feat!: migrate to UIkit 8 [draft] Nov 5, 2026
@makhnatkin makhnatkin changed the title feat!: migrate to UIkit 8 [draft] [draft] feat!: migrate to UIkit 8 Nov 5, 2026
Sergey Makhnatkin and others added 16 commits November 6, 2026 13:37
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Page Constructor 7 depends on @gravity-ui/components 4, which imports
Popover from @gravity-ui/uikit/legacy. UIkit 8 removed it, so the
visual test bundle failed to build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@makhnatkin
makhnatkin changed the base branch from main to test/forms-before-uikit8 November 6, 2026 17:42
Base automatically changed from test/forms-before-uikit8 to main November 9, 2026 16:42
makhnatkin and others added 6 commits November 9, 2026 17:49
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant