Skip to content

Sync @mieweb/ui With Upstream Main and Move Kerebron to 0.8.12 - #701

Merged
Dharp02 merged 6 commits into
mainfrom
chore/sync-mieweb-ui-main
Oct 13, 2026
Merged

Dharp02 merged 6 commits into
mainfrom
chore/sync-mieweb-ui-main

Conversation

@Dharp02

@Dharp02 Dharp02 commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #703
Closes #702

Summary

Brings the vendored @mieweb/ui up to date with mieweb/ui main (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

  • Library sync — merged mieweb/ui main into vendor/ui (feat/superchat-host-extension-points, pushed to the fork) and rebuilt vendor/mieweb-ui.tgz. Four merge conflicts in SuperChat, resolved to keep both our composerProps and upstream's new composer props (agents, model selector, streaming).
  • Kerebron 0.8.12, pinned exactly — @kerebron/* in package.json are 0.8.12 with no ^, because the patches below target that version.
  • Kerebron patches applied in the app — Kerebron is a peer dependency, so the app's copy is the one the editor runs, and upstream asks host apps to apply its fixes themselves. They are in patches/ (converted from upstream's pnpm format to patch-package), applied by a new postinstall step (scripts/apply-patches.cjs), with one COPY patches line in the Dockerfile. patches/README.md explains 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.
  • Link colour in your own Huddle message — in light mode a Markdown link in the user bubble was text-primary-800 on a bg-primary-800 bubble, so it was invisible. This was already broken on main; it turned up in the page sweep below. Fixed in the library (ChatBubble user variant: links inherit the bubble's text colour), so it goes upstream with the SuperChat PR.
  • Version 1.0.7 with release-notes/1.0.7.md.
  • Docs — CLAUDE.md and vendor/README.md updated; @mieweb/ui agent rules regenerated for 0.11.0 (init-agent).

Bundle size

Before After
Entry chunk (index-*.js) 1,424,815 B 484,130 B
dist/assets total 59,368 kB 60,540 kB (+2%)

#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-notes renders 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 main and 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 bluehive brand.

  • Rerun on 4ab1569: edit-post-works, edit-composer-remount, plan-first-clock-flow and composer-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 RangeError per 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

🤖 Generated with Claude Code

….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.
Copilot AI balanced review requested due to automatic review settings October 13, 2026 13:50
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

🗑️ Preview Environment Cleaned Up

The preview container for this PR has been deleted.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 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.

Comment thread scripts/apply-patches.cjs Resolved
…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).
Copilot AI balanced review requested due to automatic review settings October 13, 2026 13:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The large vendored dependency sync, binary artifact, and manually resolved upstream conflicts warrant final human review despite successful verification.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

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.
Copilot AI balanced review requested due to automatic review settings October 13, 2026 14:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The vendored binary sync and runtime dependency patches span substantial upstream editor behavior requiring final human review.

0 open findings

🧠 Review effort: Balanced

@SarkarShubhdeep SarkarShubhdeep left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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.
Copilot AI balanced review requested due to automatic review settings October 13, 2026 15:28
@Dharp02

Dharp02 commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

@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 1.0.7.md once this merges; I'll flag it on those PRs.

2. The release note claims — both checked in a browser now, in dark and light, and one needed a fix.

  • Editor links: readable in both themes. On main a link in the editor is the same colour as the text around it; here it is coloured.
  • Code blocks: coloured by language in light. In dark, variable names were dark grey on the dark editor and close to invisible, because upstream only re-asserted the dark palette for some tokens. Fixed in the library stylesheet in 4ab1569 (variable, property, function, type, namespace, tag) and re-checked. So the note is now accurate as written.

3. Evidence for the criteria

  • Editing an existing Huddle post: edit-post-works and edit-composer-remount pass on 4ab1569.
  • Clock in and out with plan and wrap-up: plan-first-clock-flow passes on 4ab1569 (17 e2e tests in that rerun, plus typecheck and 572 unit tests).
  • User-bubble link: white and underlined at rest and on hover, on the default brand and on bluehive.
  • Brighter inactive tab labels: intended upstream change, an accessibility contrast fix in mieweb/ui (e3478004, text-muted-foreground → text-neutral-600 dark:text-neutral-300).

One thing these checks turned up — typing in a code block throws a console RangeError on each keystroke once the code is longer than the content above it. Text entry and colouring still work. It is in Kerebron's code-block extension (@kerebron/extension-codecrock@0.8.12), not in this PR's code or our patches, so I've filed it as #704 and left it out of this PR.

Noted on #520: I'll close it by hand after this merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The installer does not fail when one required patch file is missing.

1 open finding

🧠 Review effort: Balanced

Comment thread scripts/apply-patches.cjs Resolved
…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.
Copilot AI balanced review requested due to automatic review settings October 13, 2026 15:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The broad upstream library sync and rebuilt binary package require final human validation despite the extensive reported testing.

0 open findings

1 resolved since last review

🧠 Review effort: Balanced

@Dharp02
Dharp02 merged commit 0813f3e into main Oct 13, 2026
9 checks passed
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.

Bring the Rich Editor and Component Library Up to Date With mieweb/ui Main Links in Your Own Huddle Message Are Invisible in Light Mode

3 participants