Skip to content

Commit

Permalink
Merge branch 'main' into delete-multiple-product-test
Browse files Browse the repository at this point in the history
  • Loading branch information
wojteknowacki authored Dec 5, 2023
2 parents a9e6af4 + 3086f43 commit caef1e4
Show file tree
Hide file tree
Showing 26 changed files with 211 additions and 167 deletions.
5 changes: 5 additions & 0 deletions .changeset/curvy-houses-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Fix sentry upload and custom version scripts
5 changes: 5 additions & 0 deletions .changeset/modern-spiders-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Emit release for sentry from workflow
5 changes: 5 additions & 0 deletions .changeset/pink-hornets-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": minor
---

Add Category and Collections columns to the product list datagrid.
5 changes: 5 additions & 0 deletions .changeset/six-eggs-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Bump @adobe/css-tools from 4.3.1 to 4.3.2
5 changes: 5 additions & 0 deletions .changeset/stupid-experts-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Stop deploying dashboard to demos
6 changes: 6 additions & 0 deletions .github/workflows/deploy-cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Set sentry release
run: |
HASH=$(git rev-parse --short HEAD)
CURRENT_VERSION=$(jq -r .version package.json)
RELEASE="${CURRENT_VERSION}-${HASH}"
echo "SENTRY_RELEASE=${RELEASE}" >> $GITHUB_ENV
- name: Package
timeout-minutes: 15
run: |
Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/deploy-demo-staging.yaml

This file was deleted.

56 changes: 0 additions & 56 deletions .github/workflows/deploy-demo.yaml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/deploy-master-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
run: |
HASH=$(git rev-parse --short HEAD)
CURRENT_VERSION=$(jq -r .version package.json)
echo "CUSTOM_VERSION=${CURRENT_VERSION}-${HASH}" >> $GITHUB_ENV
RELEASE="${CURRENT_VERSION}-${HASH}"
echo "CUSTOM_VERSION=${RELEASE}" >> $GITHUB_ENV
echo "SENTRY_RELEASE=${RELEASE}" >> $GITHUB_ENV
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/deploy-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ jobs:
# Add commit hash to basic version number
run: |
set -x
hash=$(git rev-parse --short HEAD)
echo "CUSTOM_VERSION=${VERSION}-${hash}" >> $GITHUB_ENV
HASH=$(git rev-parse --short HEAD)
CURRENT_VERSION=$(jq -r .version package.json)
RELEASE="${CURRENT_VERSION}-${HASH}"
echo "CUSTOM_VERSION=${RELEASE}" >> $GITHUB_ENV
echo "SENTRY_RELEASE=${RELEASE}" >> $GITHUB_ENV
- name: Setup Node
uses: actions/setup-node@v3
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
environment=$(echo $VERSION | sed -n 's#\([0-9]\+\).\([0-9]\+\).*#saleor-staging-v\1\2#p')
echo "ENVIRONMENT=${environment}" >> $GITHUB_ENV
- name: Set sentry release
run: |
HASH=$(git rev-parse --short HEAD)
VERSION=$(jq -r .version package.json)
echo "SENTRY_RELEASE=${VERSION}-${HASH}" >> $GITHUB_ENV
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down
8 changes: 8 additions & 0 deletions locale/defaultMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,10 @@
"context": "apps section name",
"string": "Apps"
},
"9qKFTA": {
"context": "Product category",
"string": "Category"
},
"9scTQ0": {
"context": "section header",
"string": "Product Attributes"
Expand Down Expand Up @@ -6670,6 +6674,10 @@
"context": "channel name",
"string": "Channel Name"
},
"j08fR9": {
"context": "Product collections",
"string": "Collections"
},
"j0ugM4": {
"context": "Manage and Update your warehouse information",
"string": "Exchange Rates"
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
"test:watch": "jest --watch src/",
"lint": "eslint \"src/**/*.@(tsx|ts|jsx|js)\" --fix",
"lint:check-progress": "eslint-nibble \"src/**/*.@(tsx|ts|jsx|js)\"",
"prebuild": "./scripts/sentry-init.sh && npm run build-types",
"prebuild": "npm run build-types",
"postbuild": "./scripts/sentry-upload.sh",
"predev": "npm run build-types",
"release": "echo $npm_package_version | xargs git tag && git push --follow-tags",
Expand Down
8 changes: 0 additions & 8 deletions scripts/sentry-init.sh

This file was deleted.

2 changes: 2 additions & 0 deletions scripts/sentry-upload.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

if [[ -z "${SENTRY_ORG}" ]]; then
echo "Sentry not definied. Skipping uploading..."
else
Expand Down
4 changes: 3 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export type ProductListColumns =
| "description"
| "availability"
| "price"
| "date";
| "date"
| "productCategory"
| "productCollections";

export interface AppListViewSettings {
[ListViews.APPS_LIST]: ListSettings;
Expand Down
8 changes: 8 additions & 0 deletions src/fragments/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ export const productFragment = gql`
name
hasVariants
}
category @include(if: $includeCategories) {
id
name
}
collections @include(if: $includeCollections) {
id
name
}
channelListings {
...ChannelListingProductWithoutPricing
pricing @include(if: $hasChannel) {
Expand Down
12 changes: 11 additions & 1 deletion src/graphql/hooks.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2371,6 +2371,14 @@ export const ProductWithChannelListingsFragmentDoc = gql`
name
hasVariants
}
category @include(if: $includeCategories) {
id
name
}
collections @include(if: $includeCollections) {
id
name
}
channelListings {
...ChannelListingProductWithoutPricing
pricing @include(if: $hasChannel) {
Expand Down Expand Up @@ -14213,7 +14221,7 @@ export type InitialProductFilterProductTypesQueryHookResult = ReturnType<typeof
export type InitialProductFilterProductTypesLazyQueryHookResult = ReturnType<typeof useInitialProductFilterProductTypesLazyQuery>;
export type InitialProductFilterProductTypesQueryResult = Apollo.QueryResult<Types.InitialProductFilterProductTypesQuery, Types.InitialProductFilterProductTypesQueryVariables>;
export const ProductListDocument = gql`
query ProductList($first: Int, $after: String, $last: Int, $before: String, $filter: ProductFilterInput, $search: String, $where: ProductWhereInput, $channel: String, $sort: ProductOrder, $hasChannel: Boolean!) {
query ProductList($first: Int, $after: String, $last: Int, $before: String, $filter: ProductFilterInput, $search: String, $where: ProductWhereInput, $channel: String, $sort: ProductOrder, $hasChannel: Boolean!, $includeCategories: Boolean!, $includeCollections: Boolean!) {
products(
before: $before
after: $after
Expand Down Expand Up @@ -14269,6 +14277,8 @@ ${ProductListAttributeFragmentDoc}`;
* channel: // value for 'channel'
* sort: // value for 'sort'
* hasChannel: // value for 'hasChannel'
* includeCategories: // value for 'includeCategories'
* includeCollections: // value for 'includeCollections'
* },
* });
*/
Expand Down
Loading

0 comments on commit caef1e4

Please sign in to comment.