diff --git a/docs/data/toolpad/studio/concepts/page-properties.md b/docs/data/toolpad/studio/concepts/page-properties.md
index 31ce9a23625..424f75ae845 100644
--- a/docs/data/toolpad/studio/concepts/page-properties.md
+++ b/docs/data/toolpad/studio/concepts/page-properties.md
@@ -8,7 +8,7 @@
### Options
-The possible options for the the display mode are:
+The possible options for the display mode are:
- **App shell**: Pages with their display mode set to this value will render within the navigation sidebar on the left, allowing for easy navigation between all pages.
@@ -52,7 +52,7 @@ Page parameters allow you to pass external data into the Toolpad Studio page sta
### Setting parameters
-You can set page parameters from the Page tab in the **Inspector panel** on right. You can add multiple parameters along with a default value for each.
+You can set page parameters from the Page tab in the **Inspector panel** on the right. You can add multiple parameters along with a default value for each.
### Using parameters
diff --git a/docs/data/toolpad/studio/concepts/queries.md b/docs/data/toolpad/studio/concepts/queries.md
index 0bf82c26492..92692b91789 100644
--- a/docs/data/toolpad/studio/concepts/queries.md
+++ b/docs/data/toolpad/studio/concepts/queries.md
@@ -24,7 +24,7 @@ Queries allow you to bring backend data to your Toolpad Studio page. They are ca
You can use this option to enable or disable the query from running
-Queries may be programatically re-fetched via the `refetch` function available on these query objects. For example, for a query named `getOrders`, you can add
+Queries may be programmatically re-fetched via the `refetch` function available on these query objects. For example, for a query named `getOrders`, you can add
```js
getOrders.refetch();
@@ -34,7 +34,7 @@ in the `onClick` binding of a Button component.
## Actions
-Actions allow performing updates to remote data sources (edit, update, delete) on a user interaction. Actions are not automatically called, they must be programtically called a JavaScript expression in a binding. For example, for a query named `createCustomer`, we can add
+Actions allow performing updates to remote data sources (edit, update, delete) on a user interaction. Actions are not automatically called, they must be programmatically called a JavaScript expression in a binding. For example, for a query named `createCustomer`, we can add
```js
createCustomer.call();
diff --git a/docs/data/toolpad/studio/how-to-guides/connect-to-databases.md b/docs/data/toolpad/studio/how-to-guides/connect-to-databases.md
index 92ce1bb6811..869776ba18d 100644
--- a/docs/data/toolpad/studio/how-to-guides/connect-to-databases.md
+++ b/docs/data/toolpad/studio/how-to-guides/connect-to-databases.md
@@ -3,7 +3,7 @@
Toolpad Studio allows you to connect to any database, fast.
You can write a custom function to connect to any database that you need to.
-You can focus on writing database queries, while the data fetching and displaying is handled by Toolpad Studio.
+You can focus on writing database queries, while the data fetching and displaying are handled by Toolpad Studio.
## Connecting to MySQL
From 576be7c338adeaed5356422e2a9a99e2a3e3d717 Mon Sep 17 00:00:00 2001
From: Olivier Tassinari
Date: Wed, 5 Feb 2025 23:54:36 +0100
Subject: [PATCH 04/15] [core] Page should have h1 (#4641)
---
packages/toolpad-core/src/SignInPage/SignInPage.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/packages/toolpad-core/src/SignInPage/SignInPage.tsx b/packages/toolpad-core/src/SignInPage/SignInPage.tsx
index 5a5c489d992..8789ced513c 100644
--- a/packages/toolpad-core/src/SignInPage/SignInPage.tsx
+++ b/packages/toolpad-core/src/SignInPage/SignInPage.tsx
@@ -332,6 +332,7 @@ function SignInPage(props: SignInPageProps) {
) : (
Date: Mon, 10 Feb 2025 09:17:41 +0100
Subject: [PATCH 05/15] fix: typos in documentation files (#4666)
Signed-off-by: Maxim Evtush <154841002+maximevtush@users.noreply.github.com>
---
examples/core/auth-nextjs-email/README.md | 2 +-
test/integration/data-grid/custom.spec.ts | 2 +-
test/integration/undo-redo/basic.spec.ts | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/core/auth-nextjs-email/README.md b/examples/core/auth-nextjs-email/README.md
index 5b8b2c95b21..804f8ed65b9 100644
--- a/examples/core/auth-nextjs-email/README.md
+++ b/examples/core/auth-nextjs-email/README.md
@@ -20,7 +20,7 @@ docker run --name postgres -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgre
npx prisma migrate dev --schema=./src/prisma/schema.prisma
```
-5. You also need to supply the following enviroment variables for the email server to work:
+5. You also need to supply the following environment variables for the email server to work:
```bash
EMAIL_SERVER_HOST=
diff --git a/test/integration/data-grid/custom.spec.ts b/test/integration/data-grid/custom.spec.ts
index ea5b953319a..d2629327805 100644
--- a/test/integration/data-grid/custom.spec.ts
+++ b/test/integration/data-grid/custom.spec.ts
@@ -29,7 +29,7 @@ test('Code component cell', async ({ page }) => {
).toBeVisible();
await expect(editorModel.pageRoot.getByText('field: "customField"')).toBeVisible();
- // Can use cusom component for id field
+ // Can use custom component for id field
await expect(editorModel.pageRoot.getByText('[id:0]')).toBeVisible();
});
diff --git a/test/integration/undo-redo/basic.spec.ts b/test/integration/undo-redo/basic.spec.ts
index 444f97c6422..3dc6c557cb7 100644
--- a/test/integration/undo-redo/basic.spec.ts
+++ b/test/integration/undo-redo/basic.spec.ts
@@ -77,6 +77,6 @@ test('test batching text input actions into single undo entry', async ({ page })
// Undo changes
await page.keyboard.press('Control+Z');
- // Asssert that batched changes were reverted
+ // Assert that batched changes were reverted
await expect(input).toHaveValue('some value');
});
From 9ed67d0cb78421d86854d846542ef402b8276a05 Mon Sep 17 00:00:00 2001
From: Bharat Kashyap
Date: Mon, 10 Feb 2025 23:49:20 -0800
Subject: [PATCH 06/15] [docx] Fix codeblock typo (#4668)
---
docs/data/toolpad/core/integrations/react-router.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/data/toolpad/core/integrations/react-router.md b/docs/data/toolpad/core/integrations/react-router.md
index 933af08b05d..7547a810d67 100644
--- a/docs/data/toolpad/core/integrations/react-router.md
+++ b/docs/data/toolpad/core/integrations/react-router.md
@@ -334,7 +334,7 @@ import DashboardIcon from '@mui/icons-material/Dashboard';
import ShoppingCartIcon from '@mui/icons-material/ShoppingCart';
import { ReactRouterAppProvider } from '@toolpad/core/react-router';
import { Outlet, useNavigate } from 'react-router';
-import type { Navigation, Session } from '@toolpad/core';
+import type { Navigation } from '@toolpad/core';
import {
firebaseSignOut,
signInWithGoogle,
From b7077eb31658a8be7131b123e99621e79f2cb142 Mon Sep 17 00:00:00 2001
From: Prakhar Gupta <92228082+prakhargupta1@users.noreply.github.com>
Date: Tue, 11 Feb 2025 13:51:17 +0530
Subject: [PATCH 07/15] [docs] Remove the planned components (#4667)
---
docs/data/toolpad/core/pages.ts | 20 --------------------
1 file changed, 20 deletions(-)
diff --git a/docs/data/toolpad/core/pages.ts b/docs/data/toolpad/core/pages.ts
index 4e8d6831433..d178c4b369e 100644
--- a/docs/data/toolpad/core/pages.ts
+++ b/docs/data/toolpad/core/pages.ts
@@ -84,11 +84,6 @@ const pages: MuiPage[] = [
pathname: '/toolpad/core/react-page-container',
title: 'Page Container',
},
- {
- pathname: '/toolpad/core/react-notification-center',
- title: 'Notification Center',
- planned: true,
- },
],
},
{
@@ -103,16 +98,6 @@ const pages: MuiPage[] = [
pathname: '/toolpad/core/react-account',
title: 'Account',
},
- {
- pathname: '/toolpad/core/react-sign-up-page',
- title: 'Sign-up Page',
- planned: true,
- },
- {
- pathname: '/toolpad/core/react-rbac',
- title: 'RBAC',
- planned: true,
- },
],
},
{
@@ -124,11 +109,6 @@ const pages: MuiPage[] = [
title: 'CRUD',
planned: true,
},
- {
- pathname: '/toolpad/core/react-stat-card',
- title: 'Stats Card',
- planned: true,
- },
],
},
{
From 3967dce65921f847cee0b3abbd9c754a985204dd Mon Sep 17 00:00:00 2001
From: Gil Obradors
Date: Tue, 11 Feb 2025 10:15:49 +0100
Subject: [PATCH 08/15] [DashboardLayout] link `line-heigth` to `font-size` in
`AppTitle` (#4648)
Signed-off-by: Gil Obradors
---
packages/toolpad-core/src/DashboardLayout/AppTitle.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/packages/toolpad-core/src/DashboardLayout/AppTitle.tsx b/packages/toolpad-core/src/DashboardLayout/AppTitle.tsx
index e0876019187..4c393e01b51 100644
--- a/packages/toolpad-core/src/DashboardLayout/AppTitle.tsx
+++ b/packages/toolpad-core/src/DashboardLayout/AppTitle.tsx
@@ -37,6 +37,7 @@ export function AppTitle(props: AppTitleProps) {
fontWeight: '700',
ml: 1,
whiteSpace: 'nowrap',
+ lineHeight: 1,
}}
>
{title}
From 09a1f82978a81586224fc524c9558c86e36dffea Mon Sep 17 00:00:00 2001
From: Remi Kristelijn
Date: Tue, 11 Feb 2025 11:19:48 +0100
Subject: [PATCH 09/15] fix: package.json pretty print Closes #4643 (#4644)
Co-authored-by: Bharat Kashyap
---
packages/create-toolpad-app/src/generateProject.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/create-toolpad-app/src/generateProject.ts b/packages/create-toolpad-app/src/generateProject.ts
index 0ea3b8e7641..82f9b3d9cb1 100644
--- a/packages/create-toolpad-app/src/generateProject.ts
+++ b/packages/create-toolpad-app/src/generateProject.ts
@@ -62,7 +62,7 @@ export default function generateProject(
[
'package.json',
{
- content: JSON.stringify(packageJson(options)),
+ content: JSON.stringify(packageJson(options), null, 2),
},
],
]);
From d27e3a984bc482c2927a9a56baa07dfdab4a7c55 Mon Sep 17 00:00:00 2001
From: Bharat Kashyap
Date: Tue, 11 Feb 2025 23:11:51 -0800
Subject: [PATCH 10/15] [docs] Improve outdated installation instructions
(#4633)
---
.../toolpad/core/introduction/installation.md | 67 +++++++++++++------
1 file changed, 47 insertions(+), 20 deletions(-)
diff --git a/docs/data/toolpad/core/introduction/installation.md b/docs/data/toolpad/core/introduction/installation.md
index a53251c4146..64cf7873af3 100644
--- a/docs/data/toolpad/core/introduction/installation.md
+++ b/docs/data/toolpad/core/introduction/installation.md
@@ -64,7 +64,7 @@ yarn create toolpad-app
-2. Follow the instructions presented. Once the installation ends, run:
+2. You will be asked to choose amongst your preferred frameworks (Next.js/Vite), routers and authentication providers. Once the installation ends, run: