Repository navigation
Sync @mieweb/ui With Upstream Main and Move Kerebron to 0.8.12 - #701
Conversation
….8.12 Merge mieweb/ui main into the vendored branch and rebuild the tarball. The library now needs @kerebron/* 0.8.12 or newer, so pin those to 0.8.12. Kerebron is a peer dependency, and upstream asks host apps to apply its Kerebron fixes themselves. Add them under patches/ (converted from pnpm to patch-package format) with a postinstall step: toolbar Heading/List dropdowns and pressed state, highlight/superscript/subscript kept in Markdown, and an accessible name on the code-block language picker. Bump to 1.0.7 with its release note, and refresh the generated @mieweb/ui agent rules for 0.11.0.
🗑️ Preview Environment Cleaned UpThe preview container for this PR has been deleted. |
There was a problem hiding this comment.
🟡 Changes recommended
The postinstall path can silently continue when required Kerebron patches are absent or fail outside CI.
1 open finding
What changed in this PR
Syncs the vendored @mieweb/ui to 0.11.0 and Kerebron to 0.8.12, adding host-applied editor fixes.
Changes:
- Updates the vendored UI library and exact Kerebron dependencies.
- Adds postinstall patches for editor behavior, Markdown persistence, and accessibility.
- Updates release notes and generated integration guidance.
| File | Description |
|---|---|
.github/copilot-instructions.md |
Documents updated UI and Kerebron integration. |
.github/instructions/mieweb-ui.instructions.md |
Regenerates UI agent guidance. |
AGENTS.md |
Mirrors regenerated UI guidance. |
Dockerfile |
Copies patches into the build stage. |
package.json |
Bumps versions and adds patch installation. |
package-lock.json |
Locks updated dependencies. |
patches/README.md |
Documents patch maintenance. |
patches/@kerebron+extension-codecrock+0.8.12.patch |
Labels the code-language selector. |
patches/@kerebron+extension-markdown+0.8.12.patch |
Preserves additional Markdown formatting. |
patches/@kerebron+extension-menu+0.8.12.patch |
Fixes toolbar commands and active states. |
release-notes/1.0.7.md |
Describes user-visible editor improvements. |
scripts/apply-patches.cjs |
Applies dependency patches after installation. |
vendor/.ui-tarball-commit |
Records the updated UI commit. |
vendor/README.md |
Adds patch synchronization guidance. |
vendor/mieweb-ui.tgz |
Provides the rebuilt UI 0.11.0 package. |
vendor/ui |
Advances the UI submodule revision. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…es not apply patch-package exits 0 on a failed patch outside CI, and the script skipped a missing patches/ folder, so a local install or the Docker build could carry on with unpatched Kerebron. Pass --error-on-fail and skip only when patch-package itself is absent (the production stage).
In light mode a link in your own Huddle message was the same colour as the bubble. Fixed in the vendored @mieweb/ui (links in the user bubble inherit its text colour) and rebuilt the tarball. Noted in the 1.0.7 release note.
SarkarShubhdeep
left a comment
There was a problem hiding this comment.
Reviewed against the description, #702 and #703. The code is in scope and the Copilot findings are resolved. I checked that composerProps, listFooter and defaultMobileView survived the merge, the tarball is 0.11.0, and every @kerebron/* package is locked at 0.8.12. Three things before merge:
1. The version bump ships 1.0.6
Neither issue asks for a bump, and 1.0.6 is not tagged yet. release-notes/README.md says to add to an untagged version's note. Bumping to 1.0.7 here tags and ships 1.0.6 on merge, while #691, #678 and #616 are still adding to 1.0.6.md. Is closing 1.0.6 in this PR intended and agreed? If not, please move the note into 1.0.6.md and drop the bump.
2. The release note claims things Testing says were not checked
The 1.0.7 note says editor links are readable in dark mode and code blocks are coloured by language in both themes. Testing lists the dark-mode link and code colours as not checked by hand, and neither is in the Changes list. Please verify them, or take them out of the note.
3. A few criteria have no evidence in Testing
Please confirm: editing an existing Huddle post still seeds the editor; a clock in and out cycle with plan and wrap-up works; the user-bubble link on hover and under a non-default brand. Also, are the brighter inactive tab labels an intended upstream change?
Reminder: #520 needs closing by hand after merge, since Closes won't close a pull request.
Variable, property, function, type, namespace and tag tokens kept the light palette in dark mode, so a variable name was dark grey on a dark background. Fixed in the vendored @mieweb/ui stylesheet and rebuilt the tarball.
|
@SarkarShubhdeep thanks for the careful review. Going through the three points: 1. The version bump — intended. This PR closes out 1.0.6 and ships under 1.0.7, so the bump stays. That means #691, #678 and #616 should add their notes to 2. The release note claims — both checked in a browser now, in dark and light, and one needed a fix.
3. Evidence for the criteria
One thing these checks turned up — typing in a code block throws a console Noted on #520: I'll close it by hand after this merges. |
…is missing patch-package applies whatever files it finds, so deleting one patch still passed. The step now lists the patches it expects and refuses to install if one is absent.

Closes #703
Closes #702
Summary
Brings the vendored
@mieweb/uiup to date with mieweb/uimain(0.10.0 → 0.11.0), so the rich editor matches upstream. The library now requires Kerebron 0.8.12, so this also moves Kerebron from 0.8.9 to 0.8.12 and supersedes #520.Changes
mainintovendor/ui(feat/superchat-host-extension-points, pushed to the fork) and rebuiltvendor/mieweb-ui.tgz. Four merge conflicts in SuperChat, resolved to keep both ourcomposerPropsand upstream's new composer props (agents, model selector, streaming).@kerebron/*inpackage.jsonare0.8.12with no^, because the patches below target that version.patches/(converted from upstream's pnpm format topatch-package), applied by a newpostinstallstep (scripts/apply-patches.cjs), with oneCOPY patchesline in theDockerfile.patches/README.mdexplains where they come from and how to keep them in step.extension-menu: toolbar Heading/List dropdowns fire, and buttons show as pressed.extension-markdown: highlight, superscript and subscript survive a save to Markdown.extension-codecrock: the code-block language picker has an accessible name.text-primary-800on abg-primary-800bubble, so it was invisible. This was already broken onmain; it turned up in the page sweep below. Fixed in the library (ChatBubbleuser variant: links inherit the bubble's text colour), so it goes upstream with the SuperChat PR.release-notes/1.0.7.md.CLAUDE.mdandvendor/README.mdupdated;@mieweb/uiagent rules regenerated for 0.11.0 (init-agent).Bundle size
index-*.js)dist/assetstotal#520 was held partly over an 8.6% larger entry chunk. That did not happen here: the entry chunk is smaller, and the added code (including
temml) sits in the Clock page chunk.Testing
All run locally; the Playwright job is disabled in CI.
npm run typecheck,npm run lint,npm run format— clean.npm run test:unit— 572 passed.Full Playwright suite — 426 passed, 6 skipped, 1 flaky:
auth/app-store-compliance.spec.ts› "a deleted account can no longer sign in" timed out once and passed on retry. Not investigated; it does not touch the editor or SuperChat.In
vendor/ui:tsc, eslint, and 201 SuperChat / ChatComposer / RichEditor tests pass after the merge.Editor toolbar checked in a browser against the plan composer: "Heading 2" turns the line into a heading, the Lists dropdown makes a bullet list, and Bold shows as pressed.
/release-notesrenders the 1.0.7 note.Page sweep: 16 pages in dark and light at desktop width, 6 at phone width, and the plan composer, screenshotted on this branch and on
mainand compared pixel by pixel. No script errors and no layout shifts. The only differences are the toolbar showing state, slightly brighter inactive tab labels, the version label, and the new release note.Link colour checked in a browser in both themes: white on the user bubble, unchanged in other people's messages.
Editor checked in a browser in both themes: links are coloured and readable; code blocks are coloured by language. Dark mode needed a fix first, since variable names were dark grey on the dark editor (4ab1569, in the library stylesheet).
User-bubble link also checked on hover and under the
bluehivebrand.Rerun on 4ab1569:
edit-post-works,edit-composer-remount,plan-first-clock-flowandcomposer-paste(17 e2e tests), typecheck and unit tests.Not checked by hand: highlight/superscript/subscript surviving a save in TimeHuddle (covered by upstream's own test).
Known issue, not fixed here: typing in a code block throws a console
RangeErrorper keystroke once the code is longer than the content above it. It is in@kerebron/extension-codecrock@0.8.12; text entry and colouring still work. Tracked in #704.Notes for Reviewers
1.0.7.mdafter this merges.tag-release.ymltag 1.0.6 and draft its GitHub Release, which then needs publishing by hand.patch-packagefails the install if a patch no longer matches, so a future Kerebron bump has to updatepatches/in the same change.main.🤖 Generated with Claude Code