Skip to content

Commit 6e3e39e

Browse files
authored
Json form (#53)
* JSON editor mode on forms * update error message
1 parent 81cc7c0 commit 6e3e39e

7 files changed

Lines changed: 527 additions & 12 deletions

File tree

package-lock.json

Lines changed: 27 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@radix-ui/react-icons": "^1.3.1",
2020
"@radix-ui/react-label": "^2.1.8",
2121
"@radix-ui/react-separator": "^1.1.8",
22-
"@radix-ui/react-slot": "^1.2.2",
22+
"@radix-ui/react-slot": "^1.2.4",
2323
"@radix-ui/react-toast": "^1.2.2",
2424
"@radix-ui/react-tooltip": "^1.2.6",
2525
"@reduxjs/toolkit": "^2.5.0",
@@ -28,6 +28,7 @@
2828
"@tanstack/react-table": "^8.20.5",
2929
"class-variance-authority": "^0.7.1",
3030
"clsx": "^2.1.1",
31+
"json-edit-react": "^1.29.0",
3132
"lucide-react": "^0.458.0",
3233
"react": "^18.3.1",
3334
"react-dom": "^18.3.1",

src/app/explorer/update_form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function UpdatePage(props: UpdatePageProps) {
3434
}, [resourceId, props.schema])
3535

3636
const handleSuccess = () => {
37-
toast({ description: `Updated ${resourceInstance?.properties['id']}` });
37+
toast({ description: `Updated ${resourceInstance?.properties['path']}` });
3838
navigate(-1);
3939
};
4040

0 commit comments

Comments
 (0)