Skip to content

Commit

Permalink
Make checkbox visible in datagrid (#4306)
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch authored and andrzejewsky committed Oct 11, 2023
1 parent bd3290b commit fd94279
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 30 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-pants-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

Add visible checkbox in datagrids
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"@editorjs/list": "^1.7.0",
"@editorjs/paragraph": "^2.8.0",
"@editorjs/quote": "^2.4.0",
"@glideapps/glide-data-grid": "5.2.1",
"@glideapps/glide-data-grid-cells": "^5.2.1",
"@glideapps/glide-data-grid": "5.3.0",
"@glideapps/glide-data-grid-cells": "^5.3.0",
"@graphiql/plugin-explorer": "^0.1.12",
"@graphiql/react": "^0.15.0",
"@graphiql/toolkit": "^0.8.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const AttributeListDatagrid = ({
<Datagrid
readonly
loading={disabled}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={true}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const CategoryListDatagrid = ({
loading={disabled}
columnSelect={sort !== undefined ? "single" : undefined}
verticalBorder={col => col > 0}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
availableColumns={visibleColumns}
rows={categories?.length ?? 0}
getCellContent={getCellContent}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const CategoryProductListDatagrid = ({
actionButtonPosition="right"
loading={disabled}
verticalBorder={false}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
availableColumns={visibleColumns}
rows={products?.length ?? 0}
getCellContent={getCellContent}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const CollectionListDatagrid = ({
<Datagrid
readonly
loading={loading}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={hasRowHover}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const CustomerListDatagrid = ({
<Datagrid
readonly
loading={loading}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={hasRowHover}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const SaleListDatagrid = ({
<Datagrid
readonly
loading={disabled}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={hasRowHover}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const VoucherListDatagrid = ({
<Datagrid
readonly
loading={disabled}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={true}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const GiftCardsListDatagrid = () => {
<Datagrid
readonly
loading={loading}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={true}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const OrderDraftListDatagrid = ({
<DatagridChangeStateContext.Provider value={datagridState}>
<Datagrid
readonly
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
freezeColumns={1}
hasRowHover={hasRowHover}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/components/PageListDatagrid/PageListDatagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const PageListDatagrid = ({
<Datagrid
readonly
loading={loading}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={hasRowHover}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export const ProductListDatagrid: React.FC<ProductListDatagridProps> = ({
<Datagrid
readonly
loading={loading}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={hasRowHover}
onColumnMoved={handlers.onMove}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const ShippingZoneListDatagrid = ({
<Datagrid
readonly
loading={disabled}
rowMarkers="checkbox"
rowMarkers="checkbox-visible"
columnSelect="single"
hasRowHover={true}
freezeColumns={1}
Expand Down

0 comments on commit fd94279

Please sign in to comment.