Commit graph

297 commits

Author SHA1 Message Date
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
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
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
7ff2d7cfa7
Change turborepo config to use local turbo.json (#353)
* Change turborepo config to use local turbo.json

* update lock to 6.0

Update turbo to 1.9.0

Move global envs to build script envs
2023-04-13 12:44:27 +02:00
Lukasz Ostrowski
8cf219308e
Add dark mode (#371) 2023-04-13 10:26:09 +02:00
Dawid
bec8d812e8
Bulk product export to CMS providers (#351)
* Add sync all channel products feature

* Implement batch create and delete product variants CMSes sync methods

* Fix pnpm-lock file

* Update UI

* Update imports

* Add fetch rate limit to Contentful provider

* Small refactor of functions

* Update logging
2023-04-12 16:10:32 +02:00
Lukasz Ostrowski
9730edb971 Add link to docs 2023-04-06 14:35:45 +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
3acc1553a8
Introduce CRM App (#292)
* Add template

Cleanup

Update queries

Basic mailchimp client

Add Oauth flow

remove next auth

* Auth flow, mailchimp button

* Basic layouts

* session saver for appbridge

* ideas drop

* basic iframe flow

* iframe flow - with post message

* saving token in backend

* saving token in backend

* Extracted settings manager

* Refactor audience router

* Remove old macaw ui

* Nav and layout

* display lists and wip add customer

* Metadata updater

* Allow iframe to NOT have app layout

* Add segment coming soon

* App layout

* Add removing config button

* Add iframe

* Fix postmessages

* Display lists

* webhook settings

* Connect webhook

* remove comment

* batch customer adding client

* Update macaw

* Fetching customers component

* Add bulk sync

* add temp ts-ignore until macaw is fixed

* Improve ui

* redesign

* Extract sections

* Redesign mailchimp login

* Refactor sections

* Extract mailchimp list picker

* Add name mapping

* WIP tags, extracted colocated queries to folders

* Wip - not working CustomerUpdated subs

* Add instructions

* Fix webhook config state

* Add external links

* envs

* Protected Oauth handler

* Fix instructions

* Squash some todos

* Instructions update with gql

* empty trygger

* Add env validation

* Fix error message

* Update macaw and remove todos

* Add metadata manager test

* Replace Mailchimp enum to lowercase

* Update oauth routes

* Fix typo

* Add loader to removing config box

* Update labeler to include CRM app

* Apply suggestions from CR

* Fix linter
2023-04-06 09:26:56 +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
Dawid
2f94183dc6
Product data updates in CMS variant objects (#324) 2023-03-24 13:36:59 +01:00
Dawid
84df6acf9c
CMS UI and webhook updates (#319)
* CMS UI updates

* Fix/improve verification against existing product variant in cms providers

* Mock urql client in tests

* Mark optional text with asterisk
2023-03-22 18:18:57 +01:00
Timur Carpeev
8f2d5e8960
Update README.md (#318) 2023-03-20 18:23:57 +01:00
Lukasz Ostrowski
cbc31d3c2e
[vercel deploy]
Release 2023-03-20
2023-03-20 12:36:28 +01:00
Dawid
ab0dec5814
CMS providers update (#309)
* CMS providers update

* Strapi provider update

* Add channel listing update issue note to readme

* Update provider operations logs

* Update contribution guide and fields instructions

* Fix external links opening
2023-03-20 12:21:19 +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
Dawid
ec067b9699
CMS setup tests fix (#294) 2023-03-16 12:13:16 +01:00
Dawid
a07f337992
Add CMS hub app (#262)
* Add CMS hub app

* Cleanup

* Refactor CMS product variants webhooks

* Test utils 1

* Remove legacy code

* Add .env example

* Update types

* Remove unused code

* Fix cms client opertions settings test

* Fix pnpm-lock file

* Bump typescript to 4.9, support satisfies expressions
2023-03-16 11:17:00 +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
Krzysztof Wolski
40e2299693
Fix the blinking of the forms and wrong redirection after removing the conf (#284)
* Fix the blinking of the forms and wrong redirection after removing the configuration
2023-03-15 11:38:36 +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
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
Krzysztof Wolski
1af3996e39
Add emails and messages app (#236)
* Add emails and messages app
2023-03-09 09:14:29 +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
1c04327bd6 fix: 🐛 address pr feedback 2023-03-07 12:07:11 +01:00
Adrian Pilarczyk
d63e88bdb6 build: ⬆️ app-sdk to 0.34.0 2023-03-07 11:46:21 +01:00
Adrian Pilarczyk
9138d7debd refactor: ♻️ use app-sdk syncwebhook 2023-03-07 11:31:44 +01:00
Adrian Pilarczyk
0d75d3a311 build: ⬆️ upgrade app-sdk 2023-03-07 11:08:00 +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
Adrian Pilarczyk
9f0dd813a4
feat: add taxes app (#223)
* feat:  add taxes app

* chore: 🔥 remove files, use monorepo ones instead

* chore:  add all env vars to .env.example

* refactor: 🔧 use saleor eslint config

* build: ⬆️ app-sdk, remove vercel from apl

* refactor: ♻️ remove providers/index, infer taxProviders from providerConfig

* refactor: ♻️ use tuples to use objects

* refactor: 🚚 move types to taxes module

* refactor: ♻️ tax-prepare-data -> tax-line-resolver

* refactor: get isInFrame from apps-shared

* build: ⬆️ next

* feat:  add appRegister allowlist

* Update apps/taxes/src/pages/api/manifest.ts

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* Update apps/taxes/src/pages/api/manifest.ts

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* chore: 💡 improve comments

* refactor: 🔥 app-dashboard-link

* docs: 📝 add taxes to readme

* refactor: 🔥 app-main-bar

* refactor: ♻️ align saleor-app.ts with the rest

* refactor: ♻️ use defaultValues

* chore: ♻️ misc

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-03-02 12:01:17 +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
Lukasz Ostrowski
3e612cad1c
Add Sentry to data-importer (#226) 2023-03-01 15:24:16 +01:00
Lukasz Ostrowski
2d23480c61
Remove TitleBar from apps and shared package (#209)
* Remove TitleBar from apps and shared package

* Invoices: add manifest homepage and support urls
2023-02-28 20:18:34 +01:00
Lukasz Ostrowski
5efe136ab7
Invoices: Bump sdk to 0.33 and update register handler errors (#222) 2023-02-28 14:12:31 +01:00
Lukasz Ostrowski
55c8f1afcb
Invoices: validate Saleor version and fail if lower than declared (#220)
* Invoices: validate Saleor version and fail if lower than decalred

* Fix package lock

* Replace tiny-invariant error to custom one to get explicit error message
2023-02-28 12:56:48 +01:00
github-actions[bot]
4331708334
Release apps [2023-02-28] (#201)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-28 12:17:48 +01:00
Lukasz Ostrowski
e746cf9af4
Slack: Fallback missing user name and last name in message (#219)
* Slack: Fallback missing user name and lastname in message

* Slack: Add billing address and user email
2023-02-28 09:52:33 +01:00
Lukasz Ostrowski
4e4257d788
Safely parse first channel from the list, if no channels exist (#196) 2023-02-27 09:29:12 +01:00
Lukasz Ostrowski
63275866a1
Inverting colors dark mode in Data Importer (#202) 2023-02-27 09:28:46 +01:00
Lukasz Ostrowski
289b42f40d
Remove VercelAPL config and readmes (#203)
* Remove VercelAPL trace

* Update .changeset/curly-zoos-worry.md

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* Update .changeset/curly-zoos-worry.md

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-02-23 12:42:17 +01:00
Lukasz Ostrowski
1da5be3be1
Prepare app for production (#145)
Prepare data importer for production

---------

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

Fix prod resolving

Add icon

Improve styles
2023-02-23 07:22:37 +00:00
github-actions[bot]
f628461028
Release apps 2023-02-23T16:00
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-22 16:03:26 +01:00
Przemysław Łada
b33bfd35af
Add Saleor Monitoring app (#189)
* initial commit

* Remove pre-commit-config

* Update gitignore

* Update README

* Add better config for monitoring app (#190)

---------

Co-authored-by: Lukasz Ostrowski <lukasz.ostrowski@saleor.io>
2023-02-22 12:23:04 +01:00
Lukasz Ostrowski
1c9b2c487a
Change apps names to be more readable by humans (#183) 2023-02-22 09:41:15 +01:00
Lukasz Ostrowski
a819acced8 Revert "fix: dark mode (#184)"
This reverts commit 3054572566.
2023-02-22 09:36:48 +01:00
Yousaf Ishaq
3054572566
fix: dark mode (#184) 2023-02-22 09:31:59 +01:00
Lukasz Ostrowski
b3178b2d56
Improve Invoices App UI (#182)
* Improve Invoices App UI

* Create clean-onions-sparkle.md

* Update apps/invoices/src/modules/app-configuration/ui/address-form.tsx

Co-authored-by: Adrian Pilarczyk <admin@peelar.dev>

---------

Co-authored-by: Adrian Pilarczyk <admin@peelar.dev>
2023-02-21 15:31:52 +01:00
Lukasz Ostrowski
ea850d34ab
Improve css and remove unused search components (#181) 2023-02-21 12:24:37 +01:00
Lukasz Ostrowski
5fc88ed6b7
Update UI to match new dashboard style (#138)
* Extract macaw theme palette to shared package

* Use MacawThemeProvider from shared package

* Fix maca theme provider props

* Update invoices app ui

* Add noSSRwrapper to packages shared

* Use external theme provider in data importer

* Use external theme provider in slack

* Improve margin in TitleBar

* Update colors in Klaviyo

* revert search to use local theme provider

* revert slack to use local theme provider

* Rewrite TitleBar to css modules

* Add unique jss classes prefix for Klaviyo

* Update apps/search/src/pages/_app.tsx

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>

* Update shy-gorillas-shop.md

---------

Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
2023-02-21 11:34:30 +01:00
Lukasz Ostrowski
ca3a0305f2
Add products feed app (#161)
* Add products feed app from another repo

* Improve codebase

* Create sweet-ears-tease.md

* Apply cr changes
2023-02-17 14:27:43 +01:00
github-actions[bot]
120f2a5b28
Release apps (#155)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-15 13:49:45 +01:00
Lukasz Ostrowski
b874d1065b
Update sdk (#160) 2023-02-15 13:01:19 +01:00
Krzysztof Wolski
c786483f8b
Search: Split webhook subscription query (#151)
* Split the search subscription query

* Add changeset
2023-02-15 12:32:33 +01:00
github-actions[bot]
3f16a32c53
Release invoices@1.3.0, search@1.0.2 [vercel-deploy]
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-13 17:21:58 +01:00
Krzysztof Wolski
ce17e45abe
Fix missing attribute values in products (#147)
* Fix missing attribute values in products
2023-02-13 17:08:20 +01:00
Lukasz Ostrowski
c1dab0ba18
Make content cards not sticky, for better support of smaller screens (#148)
* [Invoices] Remove sticky containers for better support of small screens

* Change loader to be circular instead linear
2023-02-13 16:17:30 +01:00
github-actions[bot]
846ad44d89
Release apps (#144)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-10 16:35:24 +01:00
Lukasz Ostrowski
0219561dd9
Remove firstName and lastName from billing address of the company and form (#143)
* [Invoices] Remove firstName and lastName from billing address of the company and form

* Fix fixtures
2023-02-10 16:29:54 +01:00
github-actions[bot]
945f69b9f7
Release apps (#136)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-10 15:08:06 +01:00
Lukasz Ostrowski
081d15e168
Add prettier on pre-commit & reformat codebase (#137)
* Run prettier on project

* Install lint-staged

* Add Husky
2023-02-10 11:13:59 +01:00
Lukasz Ostrowski
9f843b2d31
Extract TitleBar and AppIcon to shared package and implement it in apps (#134)
* Update imports from apps-shared package

* Extract main bar and app icon

* Remove graphql generated

* Implement AppIcon and MainBar in data importer and invoices

* Change name to TitleBar

* Use TitleBar and AppIcon from shared package

* Use title bar from shared in search

* Refactor slack to use TitleBar from shared package

* Make TitleBar sticky

* Run codegen before cicd tests

* Add generate script
2023-02-09 18:41:23 +01:00
Lukasz Ostrowski
260a57c6fc Change Klaviyo icon to K 2023-02-09 15:57:53 +01:00
Lukasz Ostrowski
96fc53d6c3 Remove vercel handling from Slack APL 2023-02-09 15:56:52 +01:00
github-actions[bot]
7ff28a2481
Release apps (#118)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-09 12:18:58 +01:00
Lukasz Ostrowski
36ea52fa4e Fix slack build 2023-02-09 12:03:28 +01:00
Lukasz Ostrowski
77538e49f7
Add slack app (#120)
* add slack app

* Update eslint

* Remove gitignore
2023-02-09 11:58:20 +01:00
Lukasz Ostrowski
4865d33d5d
Add Klaviyo (#112)
* Add Klaviyo

* Update schema

* Fix build

* Empty commit to trigger deploy
2023-02-09 10:41:54 +01:00
github-actions[bot]
8fe7238f98
Release apps (#110)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-08 13:19:55 +01:00
Lukasz Ostrowski
a641caf00f
Extract single shared package (#106)
* Extract isInIframe

* Fix SSR in trpc invoices

* Add changelog
2023-02-08 13:16:14 +01:00
github-actions[bot]
e43d5634a7
Release apps (#107)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-08 13:00:17 +01:00
Lukasz Ostrowski
21f0a60f07
Add search app (#108)
* Add Search App to apps

* Link eslint config to invoices

* Changesets
2023-02-08 09:28:14 +01:00
Lukasz Ostrowski
d13ece4b07 Fix eslint config 2023-02-07 21:14:25 +01:00
github-actions[bot]
e783e92749
saleor-app-invoices@1.1.0 (#104)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-07 21:02:42 +01:00
Lukasz Ostrowski
569a187890
Remove VercelAPL from SaleorApp (#103)
* Remove VercelAPL from SaleorApp

* Fix name for workflow
2023-02-07 20:54:03 +01:00
Lukasz Ostrowski
3092be00ff Update configs 2023-02-07 20:37:30 +01:00
Lukasz Ostrowski
cc0281c0ce Update deps 2023-02-07 20:28:40 +01:00
Lukasz Ostrowski
50049cd19e Add invoices app 2023-02-07 20:25:36 +01:00
github-actions[bot]
8f6098aefb
Release apps (#102)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-07 20:12:20 +01:00
Lukasz Ostrowski
7aabcdc9e3
Update deps (#101) 2023-02-07 20:09:51 +01:00
Lukasz Ostrowski
d27f7214a8 Move config files 2023-02-07 19:27:17 +01:00
Lukasz Ostrowski
340a03fc76 Add valid turbo config 2023-02-07 19:16:12 +01:00
Lukasz Ostrowski
073ce83e30 Add data-importer app 2023-02-07 19:11:39 +01:00