Commit graph

90 commits

Author SHA1 Message Date
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
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
Lukasz Ostrowski
2c0df91351
Apply recent ESLint rules on the codebase (#404)
* Add lint:fix script

* Reformat CRM app with eslint fix

* Apply eslint fix on data importer codebase

* Apply eslint fix on Invoices codebase

* Apply eslint fix on Klaviyo codebase

* Apply eslint fix on products-feed codebase

* Apply eslint fix on monitoring codebase

* Apply eslint fix on Search codebase

* Apply eslint fix on Slack codebase

* cleanup
2023-04-18 15:10:00 +02:00
Lukasz Ostrowski
57f6d41bc4
Update manifests to contain up to date author, homepage, support and privacy fields (#399) 2023-04-18 14:04:14 +02:00
Adrian Pilarczyk
453baf78a1
feat: finalize order process (#355)
* feat:  add dummy order-created

* refactor: 🔥 unused private-providers-configuration-service

* feat:  add dummy order-fulfilled

* refactor: 🚚 move provider-config

* refactor: 🚚 crudSettingsConfigurator -> crudSettingsManager

* refactor: ♻️ [tax-provider].ts -> [tax-provider]-webhook.service.ts

* feat:  add dummy createOrder

* refactor: ♻️ distinguish between salesOrder and salesInvoice in avatax

* refactor: 🚚 [provider]-calculate.ts to [provider]-transform.ts

* refactor: 🚚 ResponseTaxPayload to tax-provider-webhook.ts

* refactor: 🚚 ResponseTaxPayload -> CalculateTaxesResponse

* refactor: ♻️ webhooks with active-tax-provider.service.ts

* feat:  add skeleton orderCreate functionality

* refactor: ♻️ [provider]-transform.ts -> [provider]-[webhook]-transform.ts

* feat:  add order-fulfilled with avatax call

* refactor: ♻️ move getActiveTaxProvider to active-tax-provider

* refactor: 🏷️ export types for [provider]-client function args

* refactor: 🚚 UpdateAppMetadata -> UpdateMetadata

* feat:  fulfill order with id from metadata

* build: ⬆️ upgrade avatax

* feat:  commit transaction on fulfill in avatax

* fix: 🐛 return of webhooks to ensure valid retry behavior

* refactor: 🚚 [provider]-[webhook]-transform -> [provider]-[webhook]-map

* refactor: 🏷️ export types of avatax-calculate-taxes mapPayload

* refactor: ♻️ extract address-map to separate function

* refactor: ♻️ remove schema.ts

* refactor: ♻️ move addressSchema to channels-config.ts

* feat:  add tests & placeholder tests for avatax & taxjar maps

* refactor: ♻️ throw error if no metadata

* refactor: ♻️ change EXTERNAL_ID_KEY to PROVIDER_ORDER_ID_KEY

add comments

* refactor: ♻️ comments -> it.todo in tests

* refactor: 💡 add comment about shipping_item_code

* refactor:  add todo items for tests

* refactor: ♻️ remove export and add sumLines to taxJarOrderCreated

* refactor: ♻️ address-map with avatarAddressFactory

* docs: 💡 add comment about MOCKED_SALEOR_PAYLOAD

* refactor: ♻️ remove export of mapLines and add to avataxCalculateTaxes

* style: 🎨 add newline-after-var warn to eslint-config-saleor

* style: 🎨 autofix newline-after-var in taxes

* test:  restructure tests according to new naming in address-map

* refactor: ♻️ add shippingItemCode to avataxCalculateTaxes wrapper object

* refactor: 🚚 payloadProps -> payloadArgs

* refactor: ♻️ add Maps suffix to map wrapper objects

* refactor: ♻️ remove data: null from ActiveTaxProviderResult

* refactor: ♻️ maintain the object hierarchy in tests

* refactor: ♻️ refactor webhook responses with WebhookResponseFactory

* build: ⬆️ vitest

* test:  add tests for get-app-config-test

* test:  add tests for getActiveTaxProvider

* refactor: ♻️ use address fragment for taxBase and order

* refactor: ♻️ rename WebhookResponseFactory -> WebhookResponse

* style: 👷 add multiline-comment-style

* fix: 🐛 dummy test in get-app-config.test.ts

* refactor: ♻️ rename AddressFragment -> Address

* refactor: ♻️ use debug instead of error in webhook-response noRetry

* refactor: ♻️ refactor as variables in mutation

* build: 👷 add changeset

* refactor: ♻️ split changesets in two

* build: ⬆️ vite

* build: ⬆️ vite && vitest in all apps
2023-04-17 13:58:21 +02:00
Lukasz Ostrowski
1fef68b49e
Improves how Saleor version is validated during installation (Invoices) (#390)
* Extract SaleorVersionCompatibilityValidator + tests

* Use SaleorVersionCompatibilityValidtor in register handler

* Replace coerce with includePrerelease in saleor version matching

* Changelogs
2023-04-17 12:39:13 +02:00
Lukasz Ostrowski
2e518906d1
Extract useDashboardNotification (#362)
* Extract useDashboardNotification

Play with config to make app-sdk working in monorepo

bump pnpm

remove local locks

unify deps

Changesets

Replace appBridge.dispatch(Notification()) with shared useDashboardNotification package

Fix build

Update klaviyo packages

update deps

update deps - root next version

* update and ix

* Restore logic in cms
2023-04-14 17:40:49 +02:00
Lukasz Ostrowski
74174c4763
Update app-sdk to 0.37.3 (#375)
* Update app-sdk to 0.37.3

* update app-sdk to 0.37.3 latest
2023-04-14 12:33:22 +02:00
Lukasz Ostrowski
e167e72408
Update next to 13.3.0 (#388)
* Update next to 13.3.0

* Fix cms next version
2023-04-14 11:27:25 +02:00
Lukasz Ostrowski
51ec11ef41
Release apps (#357) - 2023-04-13
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-13 16:24:38 +02:00
Dawid
246b94360e
Provider configurations UI fixes (#374)
* Provider configurations UI fixes

* Create .changeset/nice-donkeys-stare.md
2023-04-13 13:27:06 +02:00
Lukasz Ostrowski
8cf219308e
Add dark mode (#371) 2023-04-13 10:26:09 +02:00
Lukasz Ostrowski
1da51639fa
Improve CMS app UX & UI (#349)
* Install apps-shared, render null if app is loading in the iframe

Redesign the app

Add notification toasts and imrpve instructions

Change channels list to select

Replace lists with select

* fix build

* Fix build
2023-04-06 12:56:44 +02:00
Lukasz Ostrowski
eca52ad058
Replace export default with named exports (#352)
* Update eslint config to prevent default exports

* exlucde vitest config from banned default exports

* Remove default exports from Monitoring App

* Replace default exports with named exports

* Fix klaviyo import path

* Replace default exports in CMS
2023-04-05 20:27:23 +02:00
Lukasz Ostrowski
f387a7b28b
Release apps (#346): 2023-03-30
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-30 14:11:43 +02:00
Adrian Pilarczyk
d55b2f9b2a
fix/333 taxes not calculated (#345)
* refactor: 🔊 improve logging in taxes

* refactor: 🔥 redundant channels call

* refactor: ♻️ get app config from payload

* build: add changeset

* refactor: 🔊 routers info -> debug

* refactor: 🔊 redact logs
2023-03-30 13:12:52 +02:00
Lukasz Ostrowski
741e9104ed
Release apps 2023-03-30
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-30 09:15:15 +02:00
Lukasz Ostrowski
907e618a5e
Setup Sentry for Taxes App (#343)
* Setup Sentry for Taxes App

* Remove sample_error page from Sentry in Taxes

* Fix next.config.js that fixes a build
2023-03-29 12:32:34 +02:00
Adrian Pilarczyk
aa8a96a0ba
fix/331 no provider available (#337)
* fix: 🐛 error while reading updated provider

* build: 👷 add changeset
2023-03-28 13:40:07 +02:00
Lukasz Ostrowski
d0af8bd420
CMS, E&M - Set requiredSaleorVersion to >=3.10 (#312) 2023-03-27 15:53:07 +02:00
Krzysztof Wolski
a811d307ae
Add cache to products feed (#327)
* Add cache to products feed

* Create .changeset/clean-dragons-jump.md

---------

Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2023-03-27 15:49:55 +02:00
Lukasz Ostrowski
37f924ece3
[vercel deploy]
Release 2023-03-27, E&M * PF
2023-03-27 11:20:39 +02:00
Krzysztof Wolski
9d625fc405
Improve configuration instructions (#322)
* Add helper texts

* Add instruction components

* Add changeset

* Fix new tab opening

* Update and move id generation to the single location

* Remove unused code

* Apply suggestions from code review

Co-authored-by: Dawid <tarasiukdawid@gmail.com>

---------

Co-authored-by: Dawid <tarasiukdawid@gmail.com>
2023-03-24 17:12:45 +01:00
Krzysztof Wolski
14ac6144c0
Update the sendgrid support (#321)
* Update the sendgrid support

* Add changeset
2023-03-24 15:33:48 +01:00
Krzysztof Wolski
f58043f72b
Add Google Category Mapping for the feed (#325)
* Add Google Category Mapping for the feed

* Update the link href
2023-03-24 15:02:40 +01:00
Krzysztof Wolski
5fad97c6d2
Update Feed App UI (#323)
* Update the Feed App UI
2023-03-24 14:45:22 +01:00
Lukasz Ostrowski
cbc31d3c2e
[vercel deploy]
Release 2023-03-20
2023-03-20 12:36:28 +01:00
Lukasz Ostrowski
b80df176e5
CMS: Add Sentry setup (#311) 2023-03-20 10:25:36 +01:00
Adrian Pilarczyk
ba40df0a10
chore/replace taxes readme (#303)
* refactor: 📝 replace readme with link to taxes docs

* refactor: 📝 replace the root level link to taxes

* build: 👷 add changeset
2023-03-17 10:26:43 +01:00
Lukasz Ostrowski
7cb3b892c4
Author field in manifests (#299)
* Update app-sdk to 0.37.0

* Add author field to manifest handler

* Fix build by fixing AppPermission in tRPC (use Permission instead) and replace domain with saleorApiUrl (compat with 0.37.1 sdk)

* Update app-sdk to 0.37.1
2023-03-16 19:09:26 +01:00
Krzysztof Wolski
a44aaf00a5
Add SMTP server auth (#300)
* Add SMTP server auth

* Add changeset
2023-03-16 19:07:24 +01:00
Lukasz Ostrowski
c952624dd9
[vercel deploy]
Release 2023-03-16

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-16 13:00:26 +01:00
Krzysztof Wolski
e93a4dc1c8
Update the GraphQL Code Generator version (#291)
* Add missing plugin

* Update GraphQL Code Generator
2023-03-16 10:22:33 +01:00
Lukasz Ostrowski
dab0f937dd
Invoices: Add debug logs and better temp pdf location (#265)
* Invoices: Add debug logs and better temp pdf location

* Fix test

* maybe fix test

* log debug test

* set local dirname

* wip

* wip

* wip
2023-03-15 09:38:13 +01:00
Krzysztof Wolski
3b694d16bc
Improve styles and layout of the emails app (#287)
* Use whole width of the screen

* Make template editor responsive

* Use whole screen in configuration view
2023-03-15 09:31:07 +01:00
Lukasz Ostrowski
36f42a72fc
[vercel deploy]
Taxes app

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-13 11:08:47 +01:00
Adrian Pilarczyk
b46a9f3e70
fix/split providers (#271)
* refactor: ♻️ add explicit return to services

* refactor: ♻️ use provider get method

* refactor: ♻️ move obfuscation logic to router & separate public service

* build: 💚 add changeset
2023-03-13 10:57:18 +01:00
Adrian Pilarczyk
56a4dbb3a3
refactor: 🚚 split avatax & taxjar into separate services (#264)
* refactor: ♻️ split into services

* docs: 💡 add comment about joining providers

* fix: 🐛 change name from avalara to avatax

* build: 👷 add changeset

* fix: 🐛 move return into catch
2023-03-10 13:04:25 +01:00
github-actions[bot]
5e28fce12e
[vercel deploy]
Invoices

* Release apps

* Update CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2023-03-10 09:50:15 +01:00
Lukasz Ostrowski
749941a58a
Update dependencies and fix eslint config (#255) 2023-03-09 14:01:18 +01:00
Lukasz Ostrowski
639dfc33ad
Improve invoices app loading strategy (#253)
* Invoices: Remove initial loading spinner and postpone NotifyReady event

* Remove graphql provider

* Remove unused Loader component
2023-03-09 13:06:45 +01:00
github-actions[bot]
56c92ef430
Release apps (#248)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-08 09:23:09 +01:00
Lukasz Ostrowski
dca82bb93c
Update app-sdk in apps to 0.34.0 and rewrite SaleorAsyncWebhook to modern api (#238)
* Data importer: disable sentry if not in env

* All packages: update app sdk to 0.34.0 version and update api
2023-03-07 16:21:46 +01:00
Adrian Pilarczyk
d136463ce6 build: ⬆️
upgrade sdk to 0.34.1
2023-03-07 13:00:39 +01:00
Adrian Pilarczyk
5151858240 ci: 👷 add changeset 2023-03-07 12:17:59 +01:00
Adrian Pilarczyk
7b9c2ed155 Revert "ci: 👷 add changeset"
This reverts commit 91a23988a5.
2023-03-07 12:07:26 +01:00
Adrian Pilarczyk
91a23988a5 ci: 👷 add changeset 2023-03-07 11:44:15 +01:00
github-actions[bot]
4b06fa17e7
[vercel deploy]
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-03 11:34:36 +01:00
Lukasz Ostrowski
2755ed2038 Improve styles 2023-03-03 10:03:56 +01:00
github-actions[bot]
62ddd41094
[vercel deploy]
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-02 11:53:58 +01:00