Commit graph

349 commits

Author SHA1 Message Date
Krzysztof Wolski
8a339fc31b
Introduce react hook form macaw bindings (#469)
* Add components and update the configuration

* Export components to be used in apps
2023-05-22 17:47:33 +02:00
Krzysztof Wolski
ce8d9deb81
Products Feed: Convert EditorJS product descriptions to plain text (#489)
* Cache query cursors for the product feed

* Fix missing first page of products

* Add S3 upload

* Explain sze limit on multipart upload

* Change the name of function

* Update the dependencies

* Revert api response size override

* Fix multi part upload

* Remove duplicated code

* Add channel name to the file URL

* Render EditorJS formatted descriptions as plaintext.
SEO Description field will be removed

* Add changeset

* Improve tests and allow escaped signs
2023-05-22 13:00:41 +02:00
Krzysztof Wolski
238f2b5d01
Cache query cursors for the product feed and support s3 (#478)
* Cache query cursors for the product feed

* Fix missing first page of products

* Add S3 upload

* Explain sze limit on multipart upload

* Change the name of function

* Update the dependencies

* Revert api response size override

* Fix multi part upload

* Remove duplicated code

* Add channel name to the file URL
2023-05-22 12:22:28 +02:00
Lukasz Ostrowski
4801803ea0
Sentry missing config (#481)
* Add Sentry config to Emails & Messages app

* Add Sentry config to Product Feed app

* Add Sentry config to CRM app

* ADd changeset

* Clean up sentry boilderplate
2023-05-21 18:28:17 +02:00
Adrian Pilarczyk
dd799e6993
refactor: use resolveOptionalOrThrow (#480)
* refactor: 🚚 move tax-line-resolver to taxjar-calculate-taxes-map

* feat:  add resolveOptionalOrThrow util

* build: 👷 add changeset

* fix: 🐛 fix shipping line bug & add handleWebhookError

* build: 👷 update changeset

* refactor: ♻️ add optional error argument
2023-05-19 10:57:17 +02:00
Lukasz Ostrowski
a5df092828
Release apps (#483)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-18 15:04:11 +02:00
Lukasz Ostrowski
5e903aed00
Metadata Migrations script (#453)
* Create a package

* wip

* wip

* wip

* wip

* Move migration script to invoices

* Add migration script

* Update SDK to fix getAll method

* Add restoring migration script

* Add migrations consts

* Add changesets

* cr fixes
2023-05-18 14:55:52 +02:00
Lukasz Ostrowski
f76d8fe8da
Release apps (#473)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-18 14:55:30 +02:00
Lukasz Ostrowski
99c307d1cb Add debug message for contentful - ping 2023-05-18 11:07:01 +02:00
Lukasz Ostrowski
7c9a9a2890 Add debug logs for CMS 2023-05-18 10:49:44 +02:00
Adrian Pilarczyk
ba7c3de471
feat: add basic breadcrumbs component (#470)
* feat:  add empty packages/ui

* feat: ⚗️ move taxes app-grid to packages/ui

* build: ⬆️ upgrade macaw-ui in packages/ui

* add app sdk

* feat:  add basic breadcrumbs component

* refactor: ♻️ simplify breadcrumbs api

* Update packages/ui/src/breadcrumbs.tsx

Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>

* refactor: 🔥 next-env.d.ts

* refactor: ♻️ address breadcrumbs feedback

* chore: 🔥 remove eslint disable

* build: 👷 add changeset

---------

Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2023-05-18 09:37:51 +02:00
Lukasz Ostrowski
c4063188ca
Update app-sdk to 0.38.0 (#464) 2023-05-17 18:57:09 +02:00
Lukasz Ostrowski
f9ca488dd6 Fix TextLink component 2023-05-17 18:53:49 +02:00
Przemysław Łada
1995f507a0
Extend release workflow with tagging and releasing on GitHub (#477)
* Add github:release script

* Change release worflow
2023-05-17 15:00:51 +01:00
Krzysztof Wolski
2de2a40af1
Parallel products feed data fetching (#465)
* Parallel products feed data fetching

* Create strong-peas-begin.md
2023-05-17 13:26:36 +02:00
Adrian Pilarczyk
51134a5a8b
fix: returning 0 for line price if item is not taxable (#476)
* fix: 🐛 returning 0 for line price if item is not taxable

* build: 👷 add changeset
2023-05-17 12:49:10 +02:00
Lukasz Ostrowski
e751459b4d
Add TextLink component (#468)
* feat:  add empty packages/ui

* feat: ⚗️ move taxes app-grid to packages/ui

* build: ⬆️ upgrade macaw-ui in packages/ui

* build: ⬆️ upgrade macaw even harder

* add app sdk

* Fix app-sdk version

* Add TextLink

* Add TextLink

* Change method name

* Cleanup

---------

Co-authored-by: Adrian Pilarczyk <adrianpilarczyk314@gmail.com>
2023-05-16 21:07:08 +02:00
Lukasz Ostrowski
24615cf7c1
Add SemanticChip shared component (#471)
* feat:  add empty packages/ui

* feat: ⚗️ move taxes app-grid to packages/ui

* build: ⬆️ upgrade macaw-ui in packages/ui

* build: ⬆️ upgrade macaw even harder

* add app sdk

* Fix app-sdk version

* Add SemanticChip

* update lock

---------

Co-authored-by: Adrian Pilarczyk <adrianpilarczyk314@gmail.com>
2023-05-16 20:41:52 +02:00
Adrian Pilarczyk
403bcf87ec
Add packages/ui shared package - root branch (#467)
* feat:  add empty packages/ui

* feat: ⚗️ move taxes app-grid to packages/ui

* build: ⬆️ upgrade macaw-ui in packages/ui

* build: ⬆️ upgrade macaw even harder

* add app sdk

* Fix app-sdk version

* refactor: 🔥 remove usage in taxes

* refactor: 🔥 remove changes in turbo.json

* refactor: ♻️ address feedback

* build: ⬆️ unify next macaw-ui version in apps (#472)

* build: ⬆️ unify next macaw-ui version in apps

* Create tricky-islands-remember.md

---------

Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>

---------

Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2023-05-16 19:36:53 +02:00
Lukasz Ostrowski
4fe2682e45
Release apps (#463)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-16 09:28:24 +02:00
Adrian Pilarczyk
70bf546e28
fix: charge taxes setting (#466)
* fix: 🐛 respect pricesEnteredWithTax setting

* build: 👷 add changeset
2023-05-16 09:17:59 +02:00
Lukasz Ostrowski
1fd0960562
Release 2023-05-15
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-15 17:32:04 +02:00
Adrian Pilarczyk
72adeb3b13
replace failureRetry/failureNoRetry webhook response with failure (#462)
* refactor: ♻️ replace failureRetry/failureNoRetry webhook response with failure

* build: 👷 add changeset

* refactor: ♻️ address feedback
2023-05-15 11:52:14 +02:00
Lukasz Ostrowski
842b7b9cdb
Change test script to be "test" instead "test:ci" so all tests are executed properly (#437) 2023-05-15 11:03:04 +02:00
Adrian Pilarczyk
b4ddb02efb
fix: quantity not respected (#460)
* fix:  fix failing map tests

* fix: 🐛 use totalPrice instead of unitPrice to fix quantity

* build: 👷 add changeset
2023-05-12 14:49:27 +02:00
Adrian Pilarczyk
0c039f59dc
feat: make companyCode optional (#458)
* feat:  make companyCode optional

* fix: 🐛 return empty string if no companyCode in order-fulfilled

* build: 👷 add changeset
2023-05-12 10:51:00 +02:00
Adrian Pilarczyk
9ecb6291a5
fix: 🚑 channels not showing (#455)
* fix: 🚑 get first 100 of channels

* build: 👷 add changeset
2023-05-12 10:01:12 +02:00
Lukasz Ostrowski
b0eb078eea Fix broken build in invoices 2023-05-11 12:21:12 +02:00
Lukasz Ostrowski
ee1a4afd25 Fix address form not loading 2023-05-11 12:15:01 +02:00
Lukasz Ostrowski
8b22b1c1f8
Fix logs (#452)
* Add pino and pino-pretty to every package, to fix logger failing

* Fix taxes child logger

* Fix Search child logger

* Update examples .env

* changeset
2023-05-10 16:57:20 +02:00
Lukasz Ostrowski
ccd8250e2f Add changeset 2023-05-09 13:19:58 +02:00
Lukasz Ostrowski
1b3680465f
Invoices redesign to Macaw Next (#445)
* Removed old macaw and material

* Add trpc router that fetches shop address info

* Config page layout with header and address

* display default addres

* Draft channels list

* add v2 config model

* Render address overrides

* Render address overrides ui

* connect address form

* reset address form

* implement removing conifg

* connect dashboard sites

* update webhook

* Add ConfigV1 to ConfigV2 transformer

* Cleanup v1 router, abstract v2

* Implement runtime migrations

* Implement migration service in controllers

* test for configuration service

* test for app cofnig

* draft test for router

* refactor webhook

* Unify Address schema to single one

* Extractr data fetching from form
2023-05-09 12:17:54 +02:00
Lukasz Ostrowski
a3d87be3f4
Release 2023-05-05
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-05 08:47:22 +02:00
Lukasz Ostrowski
830cfe92ce
Extract logger (#439)
* Extract logger

* Replace logger with shared one

* Replace CRM logger with shared one

* Replace E&M logger with shared one

* Replace invoices logger with shared one

* Replace Products Feed logger with shared one

* Replace Search logger with shared one

* Replace Taxes logger with shared one

* Uninstall pino from apps direct dependency

* Update docs

* Update changeset

* Bumped Klaviyo typescript version to hopefully unblock the build

* Change packageManager field to pnpm 8.2.0

* removed package manager field from klaviyo package.json
2023-05-05 08:15:47 +02:00
Lukasz Ostrowski
b56894fa14
Fix tests (#438) 2023-05-04 09:54:27 +02:00
Lukasz Ostrowski
40bed99316
Webhooks optimization (#434)
* Disable webhooks in manifest and create graphql operations

* Add webhook enabler service

* Add webhooks to subscription events

* Disable webhooks when webhok operation fail

* display webhooks status

* Display failed deliveries

* Use react query in webhooks-status, refetch it when configu updated

* Extracted main instructons

* Better webhook instructions

* Optimize webhooks fetching from subscription

* Test for WebhooksAcivityToggler

* Changeset

* Test for webhook status handler WIP

* Test wip

* Rewrite test
2023-04-29 11:30:48 +02:00
Adrian Pilarczyk
3347a305cd
feat: add shipping tax code (#424)
* feat:  add shippingTaxCode

* build: 👷 add changeset
2023-04-26 14:40:46 +02:00
Adrian Pilarczyk
9eacc88b53
feat: align avatax with plugin (#414)
* refactor: 🚚 OrderLineFragmentFragment -> OrderLineFragment

* refactor: 🚚 getLine... to getTaxBaseLine...

* refactor: ♻️ temporarily remove usage of getTaxBaseLineTaxCode

* feat:  add shipping as line to avatax-order-created

* feat:  add description to order-created lines

* feat:  add itemCode to avatax-order-created line

* feat:  add tests for avatax maps

* feat:  add basic discounts logic

* docs: 🔥 remove comment

* build: 👷 add changeset

* fix: 🐛 shipping amount
2023-04-26 13:40:51 +02:00
Lukasz Ostrowski
aa27f9d6ef
Release apps (#429)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-26 13:30:05 +02:00
Lukasz Ostrowski
b33da7a70a
Improve copy in Search app (#428) 2023-04-26 12:20:08 +02:00
Lukasz Ostrowski
da3da9d8b0
Release apps (#423)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-26 09:17:12 +02:00
Lukasz Ostrowski
112bed4a0b
Add test for CUSTOMER_CREATED webhook in CRM app (#422)
* Add test for CUSTOMER_CREATED webhook in CRM app

* remove log
2023-04-25 18:57:17 +02:00
Lukasz Ostrowski
fc7a70f598
Search redesign to Macaw 2.0 (#420)
* Redesign

* Better form

* Remove searchKey

* Update macaw

* Test setup

* fix build

* Create curly-jars-doubt.md

* Unify vitest to (hopefully) fix build

* fix lock

* update macaw and review fixes

* fix build
2023-04-25 18:20:20 +02:00
Lukasz Ostrowski
cad39760c9
Release apps (#413)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-24 11:22:18 +02:00
Dawid
fc0664885e
CMS visual fixes (#417)
* CMS visual fixes

* Create sour-deers-camp.md
2023-04-24 11:18:02 +02:00
Adrian Pilarczyk
56b27b2e21
fix: tax not calculating (#412)
* fix: 🐛 disable autocomplete on country-select

* fix: 🐛 invalid response format bug

* build: 👷 add changeset

* docs: 💡 add comment with improvement idea
2023-04-23 13:18:20 +02:00
Lukasz Ostrowski
8424989dad
Release apps (#389)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-21 12:04:30 +02:00
Adrian Pilarczyk
84e9ca5d66
feat: add country select (#410)
* feat:  add country-select

* feat:  add taxjar address-factory

* feat:  add validateAddress methods to [provider]-client

* build: 👷 add changeset
2023-04-21 07:55:43 +02:00
Krzysztof Wolski
ede7a2e808
Notify event webhook for customer emails (#408)
* Support Notify webhook for account operations

* Fix the comment

* Do not expose internal types of the event

* Remove debug message
2023-04-19 15:56:45 +02:00
Dawid
a3636f73ef
Fix CMS app issues (#386)
* Fix CMS app visual issues

* Add provider configuration instance ping status

* Skip update webhooks processing if issuing principal is this CMS app

* Fix provider configuration form validation

* Create old-dingos-hide.md
2023-04-18 18:46:28 +02:00