feat(mcp): add shared MCP App widget kit - #475
Merged
Merged
Conversation
Extract reusable view widgets into a private workspace package and opt consuming packages into its Tailwind sources without bloating unrelated views.
dsklyar
commented
Aug 25, 2026
| function formatMetric(value: number, format: MetricFormat | undefined): string { | ||
| const resolved = format ?? MetricFormat.Compact; | ||
| if (resolved === MetricFormat.Percent) { | ||
| return new Intl.NumberFormat('en', { |
Contributor
Author
There was a problem hiding this comment.
Need to explore derivation of locale from MCP harness
This was referenced Aug 25, 2026
@transcend-io/airgap.js-types
@transcend-io/cli
@transcend-io/design-tokens
@transcend-io/internationalization
@transcend-io/privacy-types
@transcend-io/sdk
@transcend-io/type-utils
@transcend-io/utils
@transcend-io/mcp
@transcend-io/mcp-server-admin
@transcend-io/mcp-server-assessment
@transcend-io/mcp-server-base
@transcend-io/mcp-server-consent
@transcend-io/mcp-server-discovery
@transcend-io/mcp-server-docs
@transcend-io/mcp-server-dsr
@transcend-io/mcp-server-inventory
@transcend-io/mcp-server-preferences
@transcend-io/mcp-server-workflows
commit: |
Honor the host OS instead of freezing or exempting animations in the shared theme.
These tokens are used by every view, so the comments should describe the layout primitive rather than the inventory dashboard that motivated the values.
A host sizes the iframe to its own panel, so a breakpoint never reports the display width. Claude's inline panel measures just under `lg`, which stacked three metric cards that had room to sit side by side.
The classes already show the row is container-sized; the Claude-panel anecdote does not belong on the component or in the shared README.
giacaglia
approved these changes
Aug 26, 2026
htunnicliff
approved these changes
Aug 26, 2026
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.
Summary
@transcend-io/mcp-ui-commonkit (Grid,Heading,MetricCard,ProgressBar,Spinner) withmakeEnumvariants. Spinner is a LogoSpinner-style port with its own CSS, inlined by the view build.discoverMcpAppViewsto@sourcethe kit only when a package declares it, so hello-world and other views do not pick up its CSS.lg, andmax-w-viewtokens. Card surfaces stay on Transcend light tokens (status colors have no dark palette yet). Comments describe the primitives, not a specific dashboard. Views follow the host/OSprefers-reduced-motionsetting.Test plan
pnpm run --dir dev/mcp-ui-common typecheck:uipnpm vitest run scripts/mcp-app-views.test.ts scripts/mcp-app-build.test.tspnpm run check:depspnpm run check:changesetStack
Foundation for #476. This PR should merge first.
Demo(s) of components based on the dashboard stacked #476.
Screen.Recording.2026-08-25.at.17.03.03.mov