[PAGE LAYOUTS] Add widgets validation (#16635)

- Add widget validation
- Remove 'None' option for primary axis group by
- Fix error message parsing by passing the operation type in
`useMetadataErrorHandler`
This commit is contained in:
Raphaël Bosi
2026-01-07 16:00:13 +01:00
committed by GitHub
parent 701a713042
commit 4faed25624
71 changed files with 4004 additions and 1220 deletions
@@ -21,9 +21,12 @@ export const SaveDashboardSingleRecordAction = () => {
const { closeCommandMenu } = useCommandMenu();
const handleClick = async () => {
await savePageLayout();
closeCommandMenu();
setIsPageLayoutInEditMode(false);
const result = await savePageLayout();
if (result.status === 'successful') {
closeCommandMenu();
setIsPageLayoutInEditMode(false);
}
};
return <Action onClick={handleClick} />;