Repository navigation
Remove Blueprint - #55
Merged
Merged
Conversation
Hoist v91 removes Blueprint and @xh/hoist/kit/blueprint (xh/hoist-react#4995). - Imported popover from @xh/hoist/cmp/popover, tooltip from @xh/hoist/cmp/tooltip and dialog from @xh/hoist/desktop/cmp/dialog. - Replaced the thread list row menu's Popper.js offset modifier, which Hoist's PopoverProps does not take, with a side-aware CSS translate on the menu's popover. - Updated the CHANGELOG, v3 upgrade notes and D112, which named Blueprint's popover.
Replaces the CSS translate workaround now that xh/hoist-react#4995 makes offset public on PopoverProps. An app's own popoverProps.offset still overrides it.
Hoist 91 removes @xh/hoist/kit/blueprint. The kit takes popover from @xh/hoist/cmp/popover, tooltip from @xh/hoist/cmp/tooltip and dialog from @xh/hoist/desktop/cmp/dialog.
- Ran hoist-react's codemod-bp6-classes.mjs over the kit, and renamed the three textarea selectors it reports by hand to xh-text-area. - Selectors that paired an xh-* class with a bp6-* one repeat the xh-* class, which keeps their specificity. - ChatPanel's popover placement spec reads the xh-popover__content-wrapper--* modifiers.
Takes phase 1's Hoist imports and ChatThreadList offset change, so this branch adds only the bp6-* to xh-* class rename on top of it.
- ChatComposer and ChatScopeChip: a button's tooltip is now a Hoist Tooltip, not a native title. The specs hover the button and read the tooltip. - ChatMessageView: the feedback Send button is rendered anew when its tooltip goes away, so the spec queries it again before clicking. - ChatPanel: the popover's side now reflects where Floating UI places it. The spec gives jsdom a viewport with the pill's target mid-screen, so the popover takes the side the pill asks for.
# Conflicts: # desktop/cmp/chat/ChatPanel.spec.ts
Hoist releases the Blueprint removal as v92, so the kit needs v92 and ships the change as v4. The breaking changes move from the released 3.0 entry to a changelog fragment and new v4 upgrade notes. Raise the @xh/hoist peer floor, build against the next snapshot, and drop the last Blueprint mentions from comments.
This was referenced Nov 28, 2026
Closed
Picks up 92.0.0-SNAPSHOT.1795915883954, published from hoist-react develop after xh/hoist-react#5003 merged.
amcclain
added a commit
to xh/toolbox
that referenced
this pull request
Nov 29, 2026
Moves Toolbox off Blueprint, to pair with xh/hoist-react#5003, which removes Blueprint from hoist-react. Merge together with it, with xh/hoist-chat-kit#55 and with xh/hoist-dev-utils#87. This PR replaces #965 and #967. - Dialogs use `dialog` from `@xh/hoist/desktop/cmp/dialog`, with Blueprint's `usePortal` dropped. - Tooltips use `tooltip` from `@xh/hoist/cmp/tooltip`, with `placement` renamed to `position`. `MeetXhWidget` moves its click handler and hover styling onto the avatar image, as Hoist's tooltip has no `targetProps`. - Button labels move from `title` to `ButtonProps.tooltip`, which shows them in a Hoist `Tooltip`. - The app menu builds its module items from `MenuItem` configs, with the favorite star as each item's `rightElement`. - The mobile Popover page uses the shared `popover` from `@xh/hoist/cmp/popover`. - The Docs tab's key combo and the Favicons slider label use Hoist's `xh-*` classes in place of `bp6-*` ones. No `bp6-*` class or `--bp-*` variable is left in `client-app/src`. - The DateInput playground shows the control at its default width. --------- Co-authored-by: lbwexler <lbwexler@xh.io>
lbwexler
pushed a commit
to xh/hoist-react
that referenced
this pull request
Nov 29, 2026
…5050) Button often stops a utility component from being shared across platforms, because desktop and mobile each had their own. With Blueprint's styles gone, this PR makes Button one component for both platforms and revisits it as a whole. Companions: xh/hoist-chat-kit#56 and xh/toolbox#980. All three build on the Blueprint removal (#5003, xh/hoist-chat-kit#55 and xh/toolbox#981), which has merged to develop, and all three now target develop. **Button** - `Button` and `ButtonGroup` move to `@xh/hoist/cmp/button`. Both platforms render a native `<button>`. Mobile used a `div` with the button role, which had no keyboard focus or native `disabled`. In a block container a mobile button now sizes to its content, as on desktop. - `MenuButton` and the preconfigured buttons both platforms had their own copy of also move there: `FeedbackButton`, `LogoutButton`, `OptionsButton`, `RefreshButton`, `RestoreDefaultsButton`, `ThemeToggleButton`, `ColAutosizeButton` and `ExpandCycleButton`. They take desktop's defaults on both platforms. - The platform button and menu packages no longer re-export shared buttons, and `@xh/hoist/mobile/cmp/menu` is gone. Old imports fail to build. The v92 upgrade notes have a new step that lists the moves. - A mobile `MenuButton` titles its menu with a `MenuHeading`, as desktop does. `title` keeps its `ButtonProps` meaning. - A mobile button shows no `tooltip`. Its text still names an icon-only button for assistive tech. - Buttons take the app's `font-feature-settings` through a new `--xh-button-font-feature-settings` variable, as inputs do. - One token-driven stylesheet of about 510 lines replaces 3,063 lines across both platforms. It uses single-class selectors, so app CSS on `.xh-button` is easier to write. Some component rules that the old doubled selectors outranked now apply. The changelog lists them. - New `size` prop, which takes the shared `ComponentSize`. A compact Toolbar sets the same CSS variables. - A ButtonGroup's `intent`, `minimal`, `outlined` and `size` reach every Button within it through context, including those rendered by wrappers such as `RecordActionButton`. Buttons in a popover opened from the group keep their own. - New `loading` prop, `true` or a `TaskObserver`. The spinner replaces the icon or covers the content. The button keeps its size, keeps focus on desktop, and ignores clicks. - New `SplitButton`, on desktop and mobile: a primary button and an arrow button that opens a menu. - A collapsible `Card` header is now one component for both platforms, built on the shared Button. - `AppMenuButton` gets a default `aria-label` of "App menu". It had no accessible name. **How to verify** - `pnpm test` covers sizes, group props, loading and SplitButton in `cmp/button/Button.spec.ts`. - xh/toolbox#980 adds sizes, loading and SplitButton to the desktop Buttons panel and the mobile Button page. - Run Toolbox's client inline against this branch and hoist-chat-kit `button-redesign`. Route sweeps of 118 desktop and 49 mobile routes found no button errors. - A computed-style matrix of 4,800 desktop and 1,920 mobile button states matched the #5003 baseline, apart from the changes the changelog lists. A later before/after measure of every mobile button found that only buttons placed directly in a block container changed: they now size to their content. - `@xh/package-template` still imports `button` from `@xh/hoist/desktop/cmp/button`, so Toolbox's build fails until it is updated.
lbwexler
pushed a commit
that referenced
this pull request
Nov 29, 2026
Updates the kit for the hoist-react button redesign. It pairs with xh/hoist-react#5050 as #55 paired with xh/hoist-react#5003, and goes with xh/toolbox#980. - Import `Button`, `MenuButton` and the other shared buttons from `@xh/hoist/cmp/button`. - Draw chip hover and press in the kit's own CSS. Hoist's new button rules no longer outrank a chip's background, so composer pills and follow-up chips had lost both states. - Remove the margin resets on button children. Hoist spaces them with `gap`. CI and the pre-commit typecheck fail until xh/hoist-react#5050 merges and publishes a new `@xh/hoist` snapshot. Then update the lockfile to that snapshot. Until then, verify against a hoist-react `claude/button-redesign` checkout. Tests pass with `XH_INLINE_HOIST=true XH_HOIST_REACT_PATH=<hoist-react checkout> pnpm test`. In Toolbox, hover the composer pills and the Generative UI card chips in both themes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the kit off Blueprint, to pair with xh/hoist-react#5003, which removes Blueprint in Hoist v92. The kit needs v92 for this, so it ships as kit v4. Pairs with xh/toolbox#981. This PR replaces #44.
Popover,TooltipandDialog.ChatThreadListProps.rowMenuPropstakes Hoist'sPopoverProps, withoffsetin place of Popper.jsmodifiers.xh-*classes in place of Blueprint'sbp6-*ones, renamed with hoist-react'scodemod-bp6-classes.mjs.@xh/hoistpeer floor to v92 and builds against thenextsnapshot.How to verify
next. Commits skip the pre-commit typecheck for the same reason.claude/blueprint-selector-rename, typecheck, lint and all specs pass.remove-blueprintwith both libraries inline:xh-server start client --inline-client --inline-package @xh/hoist-chat-kit=<this checkout>. Every Chat Kit page renders with nobp6-*classes or console errors.Checklist
developbranch as of last change.changelog.d/, or determined not required.breaking-changelabel + changelog fragment if so.