No description
Find a file
Paweł Chyła 8adadfb2ab
Static datagrid in order view (#3276)
* Init datagrid

* Product type and channels on datagrid

* Move get cell content to utils

* Add channels to storybook

* Add product description to datagrid

* Thubnail cell with avatar

* Translations

* Allow add new empty  product in datagrid

* Search product types

* useProductForm wth save  bar and exit modal

* Add description to product fixture

* Add loading placeholder

* Remove old column picker

* Sorting

* Remove old ProductList

* Update filter props

* Add header icons

* Add sort icons to datagrid column

* Show available channels

* Add price  and updatedAt columns

* Fix sorting, only sort on selected columns

* Sort by channel

* Allow delete name and product type

* Fix show not product found

* Extract mssages

* Product datagrid custom column picker

* Column picker in data grid in dirty hack for bug

* fix storybook props

* Restore Datagrid defalt column picker with custom render

* Add sort by attributes

* Use datagrid loading cells

* Fix product searching

* Show attributes before last updated

* Readonly all fields in datagrid

* Fix creating new datagrid row

* Remove add new procut button from datagrid

* Show only active sorted column

* Temp fix for column filter

* Fix column mismatch

* Add comments and spred props to ColumnPicker

* Cleanup

* Update avatar size and styles

* On row click with hover on row styles

* Use new theme

* Change placeholder image

* Draw rounded image with border

* Readonly product datagrid

* Use new theme colors in datagrid

* Add vertical borders control to datagrid

* Add empty column to add padding

* Add coursor to datagrid

* Restore vertical borders, fix cursor pointer

* Add custom freezed column

* Initial tooltip for column

* Move tooltip to datagrid

* Adjust datagrid colors style, add possibility to select column

* Change datagrid selected cells colors

* Fix typo and extract messages

* Base order  datagrid

* Cleanup Datagrid component

* Cleanup and code refactor

* Remove cursor pointer props from readonlyCell

* Use money cell for total column

* Add custom cell renderers and fix types

* Simple tags implemenrtion for status and payment col

* Add colors from theme

* Make tagCell more dynamic

* Refactor Datagrid file structure

* Add loading indicators

* Selecting column without cells in readonly

* Add sort icons to orders list

* Refactor after CR. fix typos

* Change color of selected colum cell on hover

* Improve selected header text contrast

* Move useColumnPickerColumns to hooks dir with tests

* Add less padding to column picker button

* Remove double border top

* Fix cursor pointer for tagCell and moneyCell

* useGetCellContent hook

* On loading show only one row

* Add missing darkmod color for warning tag

* Refactor columns in datagrid

* Add new macaw theme provider to storybook

* Fix  passing props in datagrid

* Trigger deployment

* Fix column picker in products

* useDatagridColumns

* Fix one more time

* Add column picker with default columns

* Change color for selected header change to textBrandDefault

* Remove unused code, move attributes colums as last

* Cleanup useDatagridColumns

* Improve DatagridProps

* Static datagrid for products (#3144)

* Migrate top nav of product list page to new MacawUI (#3290)

* feat: migrate top nav of product page

* feat: add proper deprecation links

---------

Co-authored-by: Michał Droń <dron.official@yahoo.com>

* Remove datagrid card paddding (#3310)

* Implement card view for product list (#3292)

* Add temporary view switcher

* Add basic product tile view

* Bump macaw-ui

* Add ellipsis

* Bump macaw-ui

* Add status dot & fix non-rectangular thumbnails

* Bump macaw-ui

* Add variable size placeholder icon

* Improve loader

* Fix top nav menu key error

* Add pagination

* Add unit tests

* Extract messages

* Extract status color to function

* CR Refactor

* Hold product view state in local storage (#3315)

* Remember view state for product list

* Use util status function for status dots

* Fix for empty column and hover in datagrid for product (#3324)

* Remove datagrid card paddding (#3310)

* Fix for empty column and hover in datagrid for product (#3324)

* Use themeValues from macaw (#3326)

* Upgrade macaw

* Use themeValues

* Use themeValues from macaw (#3326)

* Upgrade macaw

* Use themeValues

* Add empty column from datagrid, improve theme types

* Use theme type from typeof

* Filter empty column from default

* New product header (#3346)

* Extraxt messages

* Remve title left padding

* Fix switching view

* Add margin right to nav button

* Improve view switch

* Update switch view icons

* Add spacing to switch

* Add more space

* Add new filterbar to order list

* Code refactor and tests

* Extract messages

* Write unit tests

* Improve switch component

* Overwrite Pill styles

* Common method to get status color for pills

* Local Pill component POC

* Add ThemeProvider to test wrapper

* Extract messages

* Refactor Pill

* Fix Pill path

* Fix tests mocks

* Remove scrollbar and border bottom

* Add custom border to to datagrid

* Fix borders

* Fix border bottom

* Refactor and cleanup

* Remove not needed selectionActions code

* Move logic code t misc

* Fix scrollbar and zindex datagrid borders

* Fix product tiles condition

* Fix empty column when save column change

* Fix bottom line in layout overlap

* Keep first column in datagrid not removable

* Fix for not existing column

* Add loader over datagrid, fix problem with border top when empty text in variants

* Fix error color and change color in datagrid

* Filter presets select

* Fix delete tab name in modal, change order preset key

* Extract messages and apply cr fixes

* Keep active tab when filter and search change

* Apply filter in useColumnDefault

---------

Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: Michał Droń <droniu@droniu.dev>
2023-04-20 09:52:44 +02:00
.github fix release workflow for minor versions (#3366) 2023-04-19 14:05:27 +02:00
.husky Run tests on push to origin (#2791) 2022-12-12 11:22:39 +01:00
.tx Update translations (#1965) 2022-04-05 09:33:48 +02:00
assets Update Saleor icons and favicons (#3509) 2023-04-20 09:40:29 +02:00
cypress Add presets tests for products list view (#3506) 2023-04-18 11:54:23 +02:00
docs Appstore improvements for non-cloud dashboard (#3258) 2023-03-03 08:51:35 +01:00
lint/rules Add rule fixer 2019-12-03 16:23:42 +01:00
locale Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
nginx Update Dockerfile (#2523) 2022-11-16 16:01:34 +01:00
recordings/User_3768991250 Improve Polly.js config (#3040) 2023-02-06 14:05:45 +01:00
scripts Use schema-ast plugin to generate the graphql schema (#2538) 2023-03-14 08:48:33 +01:00
src Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
testUtils Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
.codeclimate.yml Initial commit 2019-06-19 16:40:52 +02:00
.dependency-cruiser.js Dependency testing (#3284) 2023-04-06 12:29:24 +02:00
.dockerignore Clean up storybook (#2941) 2023-01-05 13:34:34 +01:00
.env.template Appstore improvements for non-cloud dashboard (#3258) 2023-03-03 08:51:35 +01:00
.eslintrc.json Clean up storybook (#2941) 2023-01-05 13:34:34 +01:00
.gitattributes Set proper line endings for windows (#2665) 2022-11-25 10:25:04 +01:00
.gitignore Dependency testing (#3284) 2023-04-06 12:29:24 +02:00
.npmrc Upgrade node to 18 (#2533) 2022-11-15 15:41:46 +01:00
.nvmrc Upgrade node to 18 (#2533) 2022-11-15 15:41:46 +01:00
.prettierignore Add GraphiQL for defining subscription queries for webhooks (#2885) 2023-01-24 14:59:14 +01:00
.prettierrc Add trailing commas (#2062) 2022-06-21 11:36:55 +02:00
.release-it.json Add release-it script (#1034) 2021-03-30 14:37:12 +02:00
_redirects Enable Netlify redirects 2019-11-14 13:01:45 +01:00
apollo.config.js Update apollo config 2019-08-21 15:26:24 +02:00
app.json Update app.json (#2307) 2022-12-13 13:09:37 +01:00
babel.config.js Use esbuild-loader (#1983) 2022-05-05 09:54:28 +02:00
CHANGELOG.md Update subscription query with Event types only and improve Event picking (#3357) 2023-03-23 16:31:04 +01:00
CODEOWNERS Add codeowners (#3265) 2023-03-03 09:27:26 +01:00
csstypes.d.ts Update React to 17 and related packages (#2370) 2022-10-24 11:49:11 +02:00
cypress.config.js working visual tests - percy 1st attempt (#3400) 2023-03-28 12:59:33 +02:00
Dockerfile Allow docker to read introspection files (#3365) 2023-03-16 14:02:42 +01:00
eslint-local-rules.js Add local eslint rule to enforce naming styles 2019-12-03 16:09:57 +01:00
fetch-schema.yml Use schema-ast plugin to generate the graphql schema (#2538) 2023-03-14 08:48:33 +01:00
introspection.json Add author field to app details page (#3455) 2023-04-20 09:39:54 +02:00
introspection.transactions.json Support for new transactions API (#2233) 2023-03-09 16:51:19 +01:00
LICENSE Update LICENSE 2021-06-28 15:57:24 +02:00
lighthouserc.json Add circleci config and enhance our linters (#519) 2020-05-14 11:30:32 +02:00
lws.config.js merge changes 2021-02-11 15:17:00 +01:00
package-lock.json Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
package.json Static datagrid in order view (#3276) 2023-04-20 09:52:44 +02:00
react-intl.d.ts Attach permission variables to all queries (#1000) 2021-03-09 09:44:09 +01:00
README.md Refresh README.md (#2768) 2022-12-06 15:23:04 +01:00
schema.graphql Add author field to app details page (#3455) 2023-04-20 09:39:54 +02:00
schema.transactions.graphql Support for new transactions API (#2233) 2023-03-09 16:51:19 +01:00
static.json Configure Heroku integration 2019-09-22 14:30:10 +02:00
sw.js Fix service worker (#2760) 2022-12-01 11:55:46 +01:00
tsconfig.json Migrate to es2020 for TS (#3386) 2023-03-22 10:21:46 +01:00
types.d.ts Remove legacy Marketplace code and env variables that it was using (#3342) 2023-03-14 12:17:19 +01:00
vite.config.js Fix sourcemaps (#3375) 2023-03-17 11:28:17 +01:00

Saleor Dashboard

Saleor Dashboard

A GraphQL-powered, single-page dashboard application for Saleor.

Prerequisites

  • Node.js v18+
  • A running instance of Saleor

Development

  1. Clone the repository:
git clone https://github.com/saleor/saleor-dashboard.git
  1. Enter the project directory:
cd saleor-dashboard
  1. Install the dependencies:
npm i
  1. Configure the env vars as described in docs/configuration.md.

  2. Start the development server with:

npm run dev

Note: If you see CORS errors, check CORS configuration of your Saleor instance or CORS settings in the Cloud Console.

Docs