Repository navigation
feat(content): add tight Result, neutral and small Alert, borderless sharp Banner - #1698
Merged
Merged
Conversation
…sharp Banner - Result: layout="tight" spaces the blocks by gap alone, with no padding, for a result in a box that clips. Its width is capped at the container, so content that cannot wrap no longer pushes it out. - Alert: theme="neutral" (disabled's gray card, regular text) and size="small" (t4 text, 1x padding). - Banner: a sharp banner drops its border, as a sharp Alert does. Each replaces styles Cube Cloud sets on these components by hand. Part of CUB-5386 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DY3cmFsm5eXyHP4d4
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 9efddc3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
📦 NPM canary releaseDeployed canary version 0.0.0-canary-4ec3051. |
Contributor
🧪 Storybook is successfully deployed!
|
Contributor
🏋️ Size limit report
Compared against main at 090c708 — run 44757017164, 2026-11-20T14:48:34Z. Third-party packages✅ No third-party package entered or left the bundle, and none grew more than 10 KB past its approved size. To see which modules changed, download the size-limit-statoscope-report artifact from this run and open report.html. |
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DY3cmFsm5eXyHP4d4
Shows the width cap the last commit added: in a frame narrower than 80ch the Result stays inside it and a path that can't wrap truncates. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7DY3cmFsm5eXyHP4d4
Merged
tenphi
pushed a commit
that referenced
this pull request
Nov 23, 2026
Resolves the harnesspm.lock.json conflict: main changed the uikit:docs hash for #1698's docs edits, and this branch excludes uikit:docs, so the entry goes. A fresh install and `harnesspm sync` on the merged tree change nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gr8S7FAHF2ZZjma1gHg43N
This branch was successfully deployed
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.
Describe changes
Cube Cloud styles
Result,AlertandBannerby hand in about 35 places, and its Tasty lint flags each one (tasty/no-protected-restyle). Most of them repeat one of four looks, so this PR gives each look a prop of its own:Resultlayout="tight"🧱 — for a result in a box that clips, such as a dashboard tile.gapalone (1xunless set).Icon: { padding: 0 }, Content: { margin: 0 }, Actions: { margin: 0 }style object (about 20 uses).Resultfits its container 📏 — its width is nowmax min(80ch, 100%)and itsContentis capped at100%.80ch.FITTED_RESULT_STYLES.Alerttheme="neutral"🩶 —disabled's gray card with the regular text color, for a note that carries no status.neutral, notdefault:themealready defaults tonote, sotheme="default"would mislead.theme="disabled"plus acoloroverride (5 places).Alertsize="small"🔡 —t4text and1xpadding, for an alert in a dense panel.mediumis the default and renders as before.Bannerdrops its border ✂️ — ashape="sharp"banner runs across the page or stacks with others, so like a sharpAlertit has no 1px edge.border="0"next toshape="sharp"(3 places).Each change shows in a story:
Resultlayout="tight"Result→ Tight (new): default vs tight in two clipping tilesResultfits its containerResult→ NarrowContainer (new): a 320px frame with a path that can't wrap; on the old width the Result grew to 602pxAlerttheme="neutral"Alert→ Themes (gainsneutral)Alertsize="small"Alert→ Sizes (new)Bannerwithout a borderBanner→ Stacked (its sharp banners lose the 1px edge)Tests:
alert.test.tsx: the neutral color and fill, the medium default, the small preset and padding.Result.browser.test.tsx: the tight layout's padding, gap and margins, the default layout keeping its room, the tight layout staying padding-free in a dialog, and the width cap. The width test fails on the old width.Banner.browser.test.tsx(new): 1px border by default, 0 when sharp.The lint plugin's defaults registry is regenerated (
pnpm audit-defaults):Alertgains thesizedefault and loses itspresetdefault, which is now a state map.Checklist
Part of CUB-5386
Other information
Checks run locally:
pnpm test✅ (the pre-push run passed in full; an earlier run timed out one Form workflow test at 5.2 s under load, which passes on its own; this PR does not touch Form)pnpm test:browserforResultandBanner✅pnpm test:types✅pnpm diagnostics:compilerandpnpm diagnostics:hooks --check✅ (no new diagnostics)pnpm audit-docs --component=Alertand--component=Result✅oxlintandprettieron the changed folders ✅ (two pixel-value warnings in stories this PR does not touch)🤖 Generated with Claude Code
https://claude.ai/code/session_01Gr8S7DY3cmFsm5eXyHP4d4