Commit ac37eda
chore: upgrade shadcn/ui components to preset b6rt8cvlC (React 19, Tailwind 4, new components) (#2207)
* Upgraded to React 19, Tailwind 4, new shadcn, build themes.data.json from index.css, cleaned up index.css, fonts.css, clarified data provider errors, added scripts to prepare for changing shadcn preset
* Apply shadcn preset via `npx shadcn apply --preset b6rt8cvlC` to re-add shadcn components from latest version as a new baseline
* chore: propagate shadcn preset CSS and package changes to extensions
* chore: re-apply project customizations to upgraded shadcn components
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* Adjust platform to upgraded shadcn
chore: rebuild platform-bible-react dist and themes after shadcn upgrade
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
docs: add SKIPPED-CUSTOMIZATIONS.md for shadcn upgrade review
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fixed rtl:tw: to tw:rtl:, fixed a few bugs with the shadcn components, fixed theme color stories not showing all the colors
Cleaned up radix imports, added spacing theme variable, fixed radius css variable usage
Moved new theme preset to
Paratext theme, fixed borders wrongly applying, misc cleanup
docs: add design spec for legacy HSL color var backwards compat
docs: add per-pass and total timing to legacy color var compat spec
docs: add React 19 backwards compatibility design spec
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: add transformLegacyColorVars helper for backwards-compat hsl→var transform
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: apply legacy hsl color var transform to WebView styles and content on load
Attempt to make React 19 and Tailwind 4 backwards-compatible with old extensions
Clean up, fix core storybook
Reverted skipLibCheck to false, applied lots of fixes accordingly
Fixed yalc messing up package-lock.json
fix: address review findings from /review-paratext
- Re-export public types `SelectTriggerProps` and `DropdownMenu*Props`
(9 type aliases) that were dropped by the upstream shadcn baseline
- Fix `handleDataProviderSubscriptionError` log regression: discriminate
three contexts ('retrieve-after-update' | 'retrieve-immediate' | 'callback')
with a switch + exhaustiveness check; restores per-path log messages
- Remove unused `sheet.tsx` + the just-scaffolded story (YAGNI; arrived
as a side effect of the shadcn preset apply, not exposed in index.ts)
- Remove stale AI-generated `CUSTOMIZATIONS.md`; update upgrade-shadcn
workflow to require regeneration via `/shadcn-customizations` if missing
- Add 48 tests for `apply-shadcn-preset.ts` helpers + 6 fixture-based
end-to-end pipeline tests; fix latent regex bug in `processLayerBase`
(`\s+$` → `\s*$`) that produced `}}` instead of `}\n}` in the common case
- Add 6 tests for new `platform-dock-layout-storage.util.ts` exports
(`findFirstWebViewDefinitionByType`, `loadLayout`)
- Fix pre-existing typo'd Tailwind classes in `tabs-vertical.tsx`
(`tw:flex-fit`, `tw:mlk-items-center`, bare `overflow-clip`)
- Rename `util.test.ts` → `utils.test.ts` to match implementation filename
- Remove unused `yjs` and `scheduler` devDependencies; refresh lockfile
- Add storybook variants for badge ghost/link/blueIndicator/mutedIndicator
- Rebuild platform-bible-react dist artifacts
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat: add /add-shadcn-component command and supporting script
- Extract shared shadcn file-transform helpers into shadcn-transform-utils.ts
(used by both apply-shadcn-preset.ts and the new add-shadcn-component.ts)
- Add scripts/add-shadcn-component.ts: adds a single shadcn component,
applies standard file transforms, runs format and lint-fix, and
auto-commits the baseline (matches apply-shadcn-preset.ts pattern).
Takes <component> <preset> as args.
- Add npm 'add-shadcn-component' script
- Fix get-latest-preset
- Add fast path to cn() compat shim: when the resolved class string
contains no `tw-` prefix (the dominant all-TW4 case), skip the
per-token normalize/restore round-trip and call
extendTailwindMerge({ prefix: 'tw' }) directly. Brings the all-TW4
case from ~8x slower than baseline to within ~1.5x; TW3-containing
strings still take the full slow path so dedup remains correct.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 66b825c commit ac37eda
369 files changed
Lines changed: 27549 additions & 30347 deletions
File tree
- .erb
- configs
- scripts
- .github/assets
- .husky
- lib
- .vscode
- extensions
- lib
- src
- hello-rock3
- src
- web-views
- hello-rock3-project
- webpack
- hello-someone
- src
- webpack
- legacy-comment-manager
- src
- webpack
- paratext-registration
- src
- components
- webpack
- platform-get-resources
- src
- webpack
- platform-lexical-tools
- src
- components/dictionary
- web-views
- webpack
- platform-scripture-editor
- src
- types
- webpack
- platform-scripture
- src
- checks
- checks-side-panel
- inventories
- find
- hooks
- webpack
- quick-verse
- src
- webpack
- webpack
- lib
- eslint-plugin-paranext/src/rules
- papi-dts
- platform-bible-react
- dist
- scripts
- src
- components
- advanced
- book-chapter-control
- comment-editor
- comment-list
- data-table
- editor
- editor-ui
- plugins/toolbar
- themes
- extension-marketplace
- footnote-editor
- footnotes
- inventory
- scope-selector
- scripture-results-viewer
- settings-components
- tab-toolbar
- basics
- demo/scripture-editor
- shadcn-ui
- context
- hooks/shadcn-ui
- stories
- advanced
- settings
- basics
- guidelines
- guides
- home
- shadcn-ui
- storybook
- types
- utils
- shadcn-ui
- platform-bible-utils
- dist
- src
- extension-contributions
- patches
- src
- @types/react-19-compat
- main
- renderer
- components
- dialogs
- docking
- overlays
- settings-tabs/settings-components
- services
- web-views
- styles
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
79 | 85 | | |
80 | 86 | | |
81 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
2 | 44 | | |
3 | 45 | | |
4 | 46 | | |
| |||
9 | 51 | | |
10 | 52 | | |
11 | 53 | | |
| 54 | + | |
| 55 | + | |
12 | 56 | | |
13 | 57 | | |
14 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
| |||
0 commit comments