This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
Fix Tailwind content scanning to include JSON schema files - #34
Merged
Merged
Conversation
…prototype Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix JSON file handling in playground tailwind
Fix Tailwind content scanning to include JSON schema files
Jan 14, 2026
Contributor
|
✅ All checks passed!
|
hotlong
marked this pull request as ready for review
January 14, 2026 16:23
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Sep 5, 2026
* fix(fields): one home for the datetime display convention `formatDateTime` gains a named `'compact'` style — today's `DateTimeCellRenderer` face, byte-identical — and the cell renders through it instead of inlining its own pair of `Intl` option bags. The cell also reads `field` (it destructured `value` only), so `field.format` selects a datetime style the way it already did for `date`. `data-table`'s `formatCellValue` calls the same function for its datetime branch instead of a third, independently authored bag. `formatDateTime`'s signature is now `(value, style?, options?)`, matching `formatDate`; the `options` added in objectui#4272 moved to position three and every call site moved with it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3 * fix(core): formatDateTime keeps (value, options?); 'compact' rides in options.style Maintainer ruling B (objectui#7443, batch #34): the published signature formatDateTime(value, options?) is unchanged and the named 'compact' style is selected through options.style. DateDisplayOptions gains the optional key; the cell calls formatDateTime(date, { style, locale, t }) with the '||' default; the ten-plus in-repo call-site migrations the positional shape forced are reverted to origin/main byte for byte; every pin from ruling 1' is kept and an arity pin guards the signature. Changeset rewritten without the breaking paragraph. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KbJQ1y1J12nZxYzFWhP8Q3 --------- Co-authored-by: Claude <noreply@anthropic.com>
6 tasks
This was referenced Oct 6, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Tailwind was not scanning JSON schema files in the playground, causing classes defined in JSON to be excluded from the CSS bundle.
Changes
contentarray inapps/playground/tailwind.config.jsto include.jsonextensioncontentarray inexamples/prototype/tailwind.config.jsto include.jsonextensioncontent: [ "./index.html", - "./src/**/*.{js,ts,jsx,tsx}", + "./src/**/*.{js,ts,jsx,tsx,json}", "../../packages/components/src/**/*.{js,ts,jsx,tsx}", ],Context
The playground stores UI component schemas in JSON files (e.g.,
src/data/examples/forms/form-demo.json) with extensive Tailwind classes:{ "type": "div", "className": "min-h-screen bg-gradient-to-br from-indigo-50 via-purple-50 to-pink-50", "body": [...] }Without scanning these JSON files, Tailwind purges these classes from the production build, leaving components unstyled.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.