Skip to content

Commit f531182

Browse files
Feature: Modernized the playground ui (#4811)
* Feature: Modernized the playground ui Modernized the playground UI to allow for more real-estate for the actual form - Updated the `SampleSelector` to render the samples inside of a `Drawer` on the left side of the screen, that when closed just shows the selected sample name - Refactored the theme and subtheme selector from `Headers` into the `Editors` component, moving that and the existing content into an `Accordion` - Renamed the `Headers` component to `OptionsDrawer` moving all of the remaining content into a permanent right-side drawer - Also consolidated the two live settings schemas and uiSchemas into a single schema and uiSchema - Also moved the buttons above the live settings schema form - Updated `Playground` and `Sample.ts` to fix the imports due to the file rename - Updated the `ThemeSelector` and `SubthemeSelectors` to add click handlers to stop the click propagation - Updated `CopyLink` to make it wider and change the title to `Share Playground` - Updated `Playground` to change the fragment into a `Box` flexed, with 100%, adding the `SampleSelector` directly - Also added a second `Box` width 100% around the `Editors`, `Divider`, and `DemoFrame` - Moved the renamed `OptionsDrawer` below the second `Box` - Updated `Footer` to absolutely position the Netlify badge to the left of the Options Drawer # Conflicts: # packages/playground/src/components/OptionsDrawer.tsx # Conflicts: # packages/playground/src/components/OptionsDrawer.tsx * - Updated screenshots to remove playground controls and to make sure all themes showed them in the README * - Updated the documentation's animated playground GIF * - Updated the `CHANGELOG.md` # Conflicts: # CHANGELOG.md * - Better animated gif * - Update images * - Updated playground's `index.tsx` to switch to non-deprecated APIs
1 parent 4e8236f commit f531182

37 files changed

+351
-208
lines changed

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,15 @@ it according to semantic versioning. For example, if your PR adds a breaking cha
1515
should change the heading of the (upcoming) version to include a major version bump.
1616
1717
-->
18-
# 6.0.0
18+
# 6.0.0-beta.24
19+
20+
## @rjsf/antd
21+
22+
- Updated the `README.md` to show the theme snapshot with the latest theme UI from the playground, making it a link to the theme
23+
24+
## @rjsf/chakra-ui
25+
26+
- Updated the `README.md` to show the theme snapshot with the latest theme UI from the playground, making it a link to the theme
1927

2028
## @rjsf/core
2129

@@ -25,6 +33,9 @@ should change the heading of the (upcoming) version to include a major version b
2533
## Dev / docs / playground
2634

2735
- Updated the libraries to the latest ones that aren't problematic
36+
Updated the playground to modernize the UI using MUI components
37+
- Updated the documentation to switch to using an animated gif based on the latest modernized playground UI
38+
- Updated the `README.md` in all themes to show the theme snapshot with the latest theme UI from the playground, making it a link to the theme
2839

2940
# 6.0.0-beta.23
3041

packages/antd/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747

4848
Ant Design theme, fields and widgets for `react-jsonschema-form`.
4949

50+
[<img src="./screenshot.png" alt="product-screenshot" width="800" />](https://rjsf-team.github.io/@rjsf/antd)
51+
5052
### Built With
5153

5254
- [react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form/)

packages/antd/screenshot.png

21 KB
Loading

packages/chakra-ui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
## About The Project
5050

51-
[![@rjsf/chakra-ui Screen Shot][product-screenshot]](https://rjsf-team.github.io/@rjsf/chakra-ui)
51+
[<img src="./screenshot.png" alt="product-screenshot" width="800" />](https://rjsf-team.github.io/@rjsf/chakra-ui)
5252

5353
Exports `chakra-ui` theme, fields and widgets for `react-jsonschema-form`.
5454

packages/chakra-ui/screenshot.png

-239 KB
Loading

packages/core/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747

4848
Core logic and classic Bootstrap 3 theme for `react-jsonschema-form`.
4949

50+
[<img src="./screenshot.png" alt="product-screenshot" width="800" />](https://rjsf-team.github.io/@rjsf/core)
51+
5052
### Built With
5153

5254
- [react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form/)

packages/core/screenshot.png

1.54 KB
Loading

packages/daisyui/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ This package integrates [DaisyUI](https://daisyui.com/), [Tailwind CSS](https://
1212

1313
## Screenshots
1414

15-
![DaisyUI Form Example 1](daisy-screenshot1.png)
16-
![DaisyUI Form Example 2](daisy-screenshot2.png)
15+
[<img src="./screenshot.png" alt="product-screenshot" width="800" />](https://rjsf-team.github.io/@rjsf/daisyui)
1716

1817
## Features
1918

-545 KB
Binary file not shown.
-122 KB
Binary file not shown.

0 commit comments

Comments
 (0)