saleor-dashboard/src/orders/components/OrderDetailsPage/OrderDetailsPage.stories.tsx

374 lines
9.7 KiB
TypeScript
Raw Normal View History

Use graphql-codegen (#1874) * Use generated hooks in apps * Remove unused files * Use proper types in apps * Use generated hooks in attributes * Use generated hooks in auth module * Use generated hooks in categories * Use generated hooks in channels * Use generated types in collections * Remove legacy types from background tasks * Use generated hooks in customers * Use generated hooks in discounts * Use generated hook in file upload * Use generated types in gift cards * Use generated types in home * Use generated hooks in navigation * Use generated hooks in orders * Use generated hooks in pages * Use generated hooks in page types * Use generated hooks in permission groups * Use generated hooks in plugins * Use generated hooks in products * Use fragment to mark product variants * Improve code a bit * Use generated hooks in page types * Use generated types in searches * Use generated hooks in shipping * Use generated hooks in site settings * Use generated hooks in staff members * Use generated hooks in taxes * Place all gql generated files in one directory * Use generated hooks in translations * Use global types from new generated module * Use generated hooks in warehouses * Use generated hooks in webhooks * Use generated fragment types * Unclutter types * Remove hoc components * Split hooks and types * Fetch introspection file * Delete obsolete schema file * Fix rebase artifacts * Fix autoreplace * Fix auth provider tests * Fix urls * Remove leftover types * Fix rebase artifacts
2022-03-09 08:56:55 +00:00
import {
FulfillmentStatus,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
GiftCardEventsEnum,
Use graphql-codegen (#1874) * Use generated hooks in apps * Remove unused files * Use proper types in apps * Use generated hooks in attributes * Use generated hooks in auth module * Use generated hooks in categories * Use generated hooks in channels * Use generated types in collections * Remove legacy types from background tasks * Use generated hooks in customers * Use generated hooks in discounts * Use generated hook in file upload * Use generated types in gift cards * Use generated types in home * Use generated hooks in navigation * Use generated hooks in orders * Use generated hooks in pages * Use generated hooks in page types * Use generated hooks in permission groups * Use generated hooks in plugins * Use generated hooks in products * Use fragment to mark product variants * Improve code a bit * Use generated hooks in page types * Use generated types in searches * Use generated hooks in shipping * Use generated hooks in site settings * Use generated hooks in staff members * Use generated hooks in taxes * Place all gql generated files in one directory * Use generated hooks in translations * Use global types from new generated module * Use generated hooks in warehouses * Use generated hooks in webhooks * Use generated fragment types * Unclutter types * Remove hoc components * Split hooks and types * Fetch introspection file * Delete obsolete schema file * Fix rebase artifacts * Fix autoreplace * Fix auth provider tests * Fix urls * Remove leftover types * Fix rebase artifacts
2022-03-09 08:56:55 +00:00
OrderStatus,
PaymentChargeStatusEnum,
} from "@dashboard/graphql";
Introduce fulfillment creation API (#1241) * Display warehouse name for each fulfillment (#1259) * Hide no-stocks columns in fulfillment view (#1260) * Hide no-stocks columns in fulfillment view * Update tests * Refactor * Update tests * Add fulfillment settings card (#1242) * Add fulfillment setting card * Make fulfillment approvement naming consistent * Fix mutation bug * Update types * Trigger CI * Handle fulfillment acceptance on order details page (#1255) * Handle fulfillment acceptance on order details page * Make fulfillment approvement naming consistent * Update fulfillment schema and its usage * Render history events regarding waiting fulfillments (#1265) * Add awaiting for approval fulfillment order event * Fix warehouse name * Change fulfillment quantity calculation (#1267) * Change fulfillment quantity calculation * Fix warehouse name * Update messages * Trigger CI * Refactor * Fix refactor * Fix fulfillment for no variant * Allow creating fulfillments waiting for acceptance (#1248) * Fix fulfillment page style and typescript classname types perfomance issue * Allow creating fulfillments waiting for acceptance * Make fulfillment approvement naming consistent * Update schema * Add tooltip to fulfillment savebar * Update unpaid fulfillment creation restriction * Update fulfillment cration restriction * Update test snapshots * Add possibility to cancel "waiting" fulfillments (#1288) * Allow to cancel waiting fulfillments * Add delete button to fulfillment card * Update test snapshots * Handle waiting fulfillments on refund page (#1290) * Handle waiting fulfillments on refund page * Trigger CI * Trigger CI * Calculate quantity to refund on quantityToFulfill * Update changelog * Update snapshots Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-08-20 14:36:05 +00:00
import {
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
grantedRefunds,
ORDER_AMOUNT,
orderWithTransactions as order,
payments,
prepareMoney,
shopWithTransactions,
transactions,
} from "@dashboard/orders/fixtures";
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
import { OrderBothTypes } from "@dashboard/orders/types";
import Decorator from "@dashboard/storybook/Decorator";
2023-01-05 12:34:34 +00:00
import { storiesOf } from "@storybook/react";
import React from "react";
import OrderDetailsPage, { OrderDetailsPageProps } from "./OrderDetailsPage";
2019-06-19 14:40:52 +00:00
const props: Omit<OrderDetailsPageProps, "classes"> = {
2020-09-03 11:56:31 +00:00
disabled: false,
2019-06-19 14:40:52 +00:00
onBillingAddressEdit: undefined,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
onTransactionAction: () => undefined,
Introduce fulfillment creation API (#1241) * Display warehouse name for each fulfillment (#1259) * Hide no-stocks columns in fulfillment view (#1260) * Hide no-stocks columns in fulfillment view * Update tests * Refactor * Update tests * Add fulfillment settings card (#1242) * Add fulfillment setting card * Make fulfillment approvement naming consistent * Fix mutation bug * Update types * Trigger CI * Handle fulfillment acceptance on order details page (#1255) * Handle fulfillment acceptance on order details page * Make fulfillment approvement naming consistent * Update fulfillment schema and its usage * Render history events regarding waiting fulfillments (#1265) * Add awaiting for approval fulfillment order event * Fix warehouse name * Change fulfillment quantity calculation (#1267) * Change fulfillment quantity calculation * Fix warehouse name * Update messages * Trigger CI * Refactor * Fix refactor * Fix fulfillment for no variant * Allow creating fulfillments waiting for acceptance (#1248) * Fix fulfillment page style and typescript classname types perfomance issue * Allow creating fulfillments waiting for acceptance * Make fulfillment approvement naming consistent * Update schema * Add tooltip to fulfillment savebar * Update unpaid fulfillment creation restriction * Update fulfillment cration restriction * Update test snapshots * Add possibility to cancel "waiting" fulfillments (#1288) * Allow to cancel waiting fulfillments * Add delete button to fulfillment card * Update test snapshots * Handle waiting fulfillments on refund page (#1290) * Handle waiting fulfillments on refund page * Trigger CI * Trigger CI * Calculate quantity to refund on quantityToFulfill * Update changelog * Update snapshots Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-08-20 14:36:05 +00:00
onFulfillmentApprove: () => undefined,
2019-06-19 14:40:52 +00:00
onFulfillmentCancel: () => undefined,
onFulfillmentTrackingNumberUpdate: () => undefined,
2020-06-30 12:38:04 +00:00
onInvoiceClick: () => undefined,
2020-06-23 13:52:43 +00:00
onInvoiceGenerate: () => undefined,
onInvoiceSend: () => undefined,
2019-06-19 14:40:52 +00:00
onNoteAdd: undefined,
onOrderCancel: undefined,
onOrderFulfill: undefined,
Feature/order reissue (#910) * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Add change to changelog * Remove console.log * Update tests * Extract messages * Add utils functions for selecting only ulfulfilled order lines * Add optional value selection for line item * Update tests * Add optional rendering of unfulfilled items card and refactor a bit * Update displaying of items card title when refunded card * UUpdate utils, form data etc. not to include refunded items when calculating replaced items amount * Uppdate return items card not to display replace buttons for refunded items * Refactor and small fixes after review * Update extracted messages * Fix card title when no fullfilemtn id * wip * Initially stitch returns page. Update types, add mutation * remove unnecessary component display names * Add loading status from form submission & refactor * Add errors from response * Add errors from response and refactor * Remove comments * Add optional error adding when no data from return create request * Update messages * wip * Update snapshots * Remove unnecessary console.log * Add better typing for getParsedLineData function * Update & refactor card title to match cards both in return and order details * Add handling of new statuses to order details cards. Also refactor, and devide order fulfillment card into couple of smaller components * Update messages * Update schema to match api * Update types * Update status label component to match colors with new designs and order details cards * RUpdate and refactor order fulfillment card components to be reusable. Also add replaced status handling * Updayte card title component to handle all cases and statuses * Update oorder unfulfilled items card and order details page, reduce some of the boilerplate * Fix card title types and adjust returns card to match * Update messages * Update snapshots * RUpdate order fulfillment card with subtitles and buttons for returned status * Add onRefund to order fulfillment card * Fix typo and wrong message in card title * Add missing condition in return form submission utils to decice if to refund products * Update fulfillment subtitles row and tests * Update messages * Change naming and locations of OrderFulfillment and items card components * Update messages * U[pdate names of components again to even better ones * Update messages * changelog * Update schema and types so that order history event also includes user first and last name * Add extended timeline event and event header components. Move some of the logic to utils and add way to display links in the event header. * FFix types * Update messages * Change naming of isOfType -> isTimelineEventOfType and refactor extended timeline event messages selection to be less complicated * Add ids and update messages * Add ids and update messages some more * Update storybook decorator to work with react router context in components and tests * Refactor after review * Update messages * Add rredirecting to draft order * Add handling draft creation from replacement * Add related order to order event fragment and update lots and lots of types * Update extended timeline event to match related order type on order history event * Update fixtures * Refactor ExtendedTimelineEvent Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com> * Fix typing * Update messages * Fix missing history event for replacement draft created for replaced products * Update messages * Handle new statuses for returned and partially returned orders * Update messages * update snapshots * BBump empty line to rebuild ci * Change status to proper color * Change replaceable items in return for replace to be auto off instead of on * Add utils functions and make order details menu not show option to return items when there are returnable items in the order * Fix replace checkbox showing when previously hidden and clicked set maximal quantities * Fix return form invalid money values * Add default values to avoid returning of NaN in utils for return amount and refactor * Add ggeneral error alerts * Add eproduct error box component and style. style a lot. * Fixes * Fix lint * Add cannot refund error title + description * Extract messages * Refactor after review * Add better, nicer and fancier imports to product error cell * Use error color from palette in product error cell * Fix max refund when 0 for return * Add ddisable ability to refund products button so it's disabled when 0 products selected * Add class for order return form data parsing and add condition to not do refund when total captured on order is 0 * Update snapshots * Add condition for order lines quantity in order products table row * Fix return amount submit button * Add change to changelog Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
2021-01-20 16:16:43 +00:00
onOrderReturn: () => undefined,
2019-06-19 14:40:52 +00:00
onPaymentCapture: undefined,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
onMarkAsPaid: undefined,
2019-06-19 14:40:52 +00:00
onPaymentVoid: undefined,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
onPaymentRefund: undefined,
2019-06-19 14:40:52 +00:00
onProductClick: undefined,
onProfileView: () => undefined,
onShippingAddressEdit: undefined,
2020-09-03 11:56:31 +00:00
onSubmit: () => undefined,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
onAddManualTransaction: () => undefined,
2019-10-25 13:31:27 +00:00
order,
errors: [],
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
shop: shopWithTransactions,
saveButtonBarState: "default",
2019-06-19 14:40:52 +00:00
};
2023-01-05 12:34:34 +00:00
storiesOf("Orders / Order details", module)
2019-06-19 14:40:52 +00:00
.addDecorator(Decorator)
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
.add("pending", () => (
2019-06-19 14:40:52 +00:00
<OrderDetailsPage
{...props}
order={{
...props.order,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
transactions: [],
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
payments: [payments.pending],
2019-06-19 14:40:52 +00:00
}}
/>
))
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
.add("authorized", () => (
2019-06-19 14:40:52 +00:00
<OrderDetailsPage
{...props}
order={{
...props.order,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
transactions: [],
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
payments: [payments.authorized],
2019-06-19 14:40:52 +00:00
}}
/>
))
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
.add("completed", () => (
2019-06-19 14:40:52 +00:00
<OrderDetailsPage
{...props}
order={{
...props.order,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
transactions: [],
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
payments: [payments.completed],
2019-06-19 14:40:52 +00:00
}}
/>
))
.add("no payment", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
transactions: [],
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
payments: [],
totalAuthorized: prepareMoney(0),
2019-06-19 14:40:52 +00:00
}}
/>
))
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
.add("refunded", () => (
2019-06-19 14:40:52 +00:00
<OrderDetailsPage
{...props}
order={{
...props.order,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
transactions: [],
paymentStatus: PaymentChargeStatusEnum.FULLY_REFUNDED,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
payments: [payments.refunded],
2019-06-19 14:40:52 +00:00
}}
/>
))
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
.add("partial refund", () => (
2019-06-19 14:40:52 +00:00
<OrderDetailsPage
{...props}
order={{
...props.order,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
transactions: [],
paymentStatus: PaymentChargeStatusEnum.PARTIALLY_REFUNDED,
payments: [payments.partialRefund],
}}
/>
))
.add("rejected", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
transactions: [],
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
payments: [payments.rejected],
}}
/>
));
storiesOf("Views / Orders / Order details / transactions", module)
.addDecorator(Decorator)
.add("preauthorized", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: false,
totalAuthorized: prepareMoney(),
totalCharged: prepareMoney(0),
paymentStatus: PaymentChargeStatusEnum.NOT_CHARGED,
transactions: transactions.preauthorized,
2019-06-19 14:40:52 +00:00
}}
/>
))
Support for new transactions API (#2233) * Revert "🦄 Simple taxes (#2072)" This reverts commit 5c1a62171d94d00c3b457dc321c0d14900d4188f. * Revert "Revert "🦄 Simple taxes (#2072)"" This reverts commit 3c8289cba657debc676bb6ff677d9494cb308d19. * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7898: Split payments - transactions list #2234 commit 0742eee71765caa9c7084f6f3eb9be90808ff29c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:18:06 2022 +0200 Remove too long font size commit 2724965127b591e703acb966ecc50c018124cb3f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 15:03:35 2022 +0200 Replace custom styles with Typography component commit b94a616953bbef878bdd5d958eb6debda53aa524 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:54:39 2022 +0200 Fix formatting commit 2a2a22692473290b3b566d89e85b265f7b8e0670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:24:38 2022 +0200 Update messages commit bdde8a0d54429d0d2d01d619ddde8a88fd29f0e1 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:23:37 2022 +0200 Fix failing prettier check commit 2f98b3bccc59bdcd978cc9cee8bede76f45f47a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 14:07:46 2022 +0200 Remove !important from styles commit dfce53ba5add1e1a6b175caa2e1c5a03fa9dffe8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:46:08 2022 +0200 Refactor PR comments commit 43781d792603c59031c75164415443f3b68f86d0 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:02:11 2022 +0200 Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. commit 51e89a0f46059bd6d19513abee128503f818c2f8 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 9 13:01:15 2022 +0200 Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 9565cab4a408845de40882ee564c4c7e79a3d5d6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:13:11 2022 +0200 Update messages commit ebf3b7a5f7a2b49d571d4cd6df2f74027e3d8304 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 8 14:11:59 2022 +0200 Update snapshots commit 854b21d7af3f14e3f7c4e53812c2d30490e0a675 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 17:36:55 2022 +0200 Add copy icon to PspReference commit 0124657acf623870773abecdf03b9b5ae3381757 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 7 15:38:45 2022 +0200 Fix order saved when copying PSP reference commit adf151fb56d06d9ee12d13bdef1b324395a86b4a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 14:44:00 2022 +0200 Update snapshots, fix inline styles in PSP reference commit bfae5d9476e61e27b91ffa64e594a86b82e8f670 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:59:57 2022 +0200 Fix transactions table sizing on `md` screen sizing commit cdbb439f80534706a0a2e588f033ae94af04cb72 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 12:38:27 2022 +0200 Fix PSP reference sizing issues commit a2be62f8f2db11319c8843cdd4b6431d7518b389 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 6 10:06:28 2022 +0200 Add parameter to clear additional params in modals commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:42:46 2022 +0200 Update prettier to latest version (TS syntax parsing issues) commit 261879696f594b1e09b4a0c112dfce801b1cf6bd Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 5 15:39:08 2022 +0200 Add buttons to void or capture transactions commit ba89cca5ec3e5c61d9468f983ea7b7ab9eea8c14 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 14:13:13 2022 +0200 Add copy feature to psp reference pill commit 7f3ff30a2738bcfa773a5abce7e53828ce4b276e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:35:02 2022 +0200 Update snapshots commit 4bee083c839ca5d141b8845131dba506a0745a79 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:29:38 2022 +0200 Update messages commit c86431abb6015a28b1cfeddc91cda69cc0c3e06b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:16:37 2022 +0200 Fix transaction events list when no pspReference is provided commit a7127123556677206864aa3a9683c19645724a36 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:09:48 2022 +0200 Fix spacing between transactions commit dc224e2c7ebd2af438f2e997eb1ba3430ca5ffcc Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 2 12:06:32 2022 +0200 Highlight rows that have the same pspReference on hover commit 2e9aaed9599a5e5a0064c6140e6b6f48c0587850 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:33:06 2022 +0200 Update macaw to unreleased version commit a818c1b0ebeb4e17ea65aa6698c2c9d29be6cc2f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 17:21:24 2022 +0200 Fix transactions list table layout commit 50ae82b961f653dd8b2ba9b9cc4ece5c691fe39b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 1 16:34:52 2022 +0200 Use Intl.DateTimeFormat to format dates instead of moment.js commit c0f54100cb476637a8d0145ac00ccd5e017a9665 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Aug 31 17:21:34 2022 +0200 Add transaction events commit c34279d5c195734df604605481e3d84c5e81f764 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:53:01 2022 +0200 Fix alignment when amount is <10 commit d3362c24e8bcf0263582dbcc324c2fe403a6f72a Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:42:41 2022 +0200 Fix conditional display logic, add story for long numbers commit 73cce9edd5e25c2cca68411ccebdfd3918099ae5 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:27:18 2022 +0200 Fix IMoney to use new import commit b0cf154c94139be726451ce52b0e4421928ebf80 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 26 16:15:37 2022 +0200 Add order transactions component commit 87808f66482448d4301d13196be84cb55912d994 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:28:02 2022 +0200 Don't hide transaction balance when order is not confirmed commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7901: Split payments - order summary and payments balance #2310 commit 8d5be6ae4c46dffe9cca5e20cfe4b458d2cc7f2f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 14:17:20 2022 +0200 update snapshots commit 7b84da1566a92811e0cf3424085219221ff8876c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:10:40 2022 +0200 Refactor inlined functions to separate file commit 798c8cc87fda9ac48837013336d94291b5d87fb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 16:08:27 2022 +0200 Refactor tax amount turnary operator expression commit 001d16d3c4010489fbf8a2872d5d80195797ef7d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 16:15:12 2022 +0200 Apply suggestions from code review commit 274c6f9f68630d8c91a588a77975d8d519c84e24 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 28 16:07:46 2022 +0200 Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit ab13210f62b00dc68478ee94a30d5b0d5424cc09 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:21:46 2022 +0200 Hide "no payment" text when order has gift cards commit 9159cf1913cec93a7960ba8d5ad29914d11d7a63 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 13:11:52 2022 +0200 Fix "Copied" text doesn't fit on short psp reference commit a7eea637484c010b91b265df8eba5a729bec8e6b Merge: 97f128b1f 3ac5e6304 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 16:44:52 2022 +0200 Merge branch 'feature/split-payments' into split-payments/balance commit 3ac5e6304e2d114288ae21d7def120b7cb669887 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 97f128b1f7b9376708f3d98a1a5131d5c0acc2be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 11:46:29 2022 +0200 force deploy commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * SALEOR-7904: Split payments - Grant refund #2336 commit 4681481fc163683936a53fa8436a0eecad26f9c1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 16:49:45 2022 +0100 Update snapshots commit 0831c4f75670009bc0a17fe1e9dae94646927866 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Nov 2 15:24:43 2022 +0100 Pin macaw version commit b588948fa260509c5e13362b48f72d277897f7bb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Oct 17 17:31:53 2022 +0200 Fix refund card not working while loading commit fccd15c73b40231423e544256541ddc4ebc4b37a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 15:23:39 2022 +0200 Add exhaustiveness check to switch...case statemet commit 62e6c03b02bea5c2fb785e9cccbaf024b4ffa6cb Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:09:31 2022 +0200 Remove USD as default currency commit 586f91a6c87375544223dc666e1a358cbd3c814c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:08:30 2022 +0200 Refactor ProductCard event handlers into separate functions commit 8b242905c7b787102ef764adc5f574ab3e9c77de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:05:35 2022 +0200 Refactor fulfilment subtitle into helper function commit 1cdba397497e59aa89d2d4fb05816631e69f0ef6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 14:01:05 2022 +0200 Refactor payments summary logic commit 5ca4709d3e902186005901f1ee68c3cb2b80df64 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 13:10:58 2022 +0200 Refactor iterator spread to Array.from for more readability commit d47098ce8cdc0c8ec6b7f49e5a7476cfebde62b7 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Oct 7 10:52:59 2022 +0200 Update snapshots, messages commit 53228797377f7dfeb830eb2e7176ea70c4dd3fec Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:33:09 2022 +0200 Refactor ProductCard to use TableRowLink commit f08d2c717a04a4e45a59b0d80b95f7b949f3ebb1 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 16:32:49 2022 +0200 Disable hover effect when TableRow is not clickable commit 0a7c75223e0a7c4cf7e01eb6e3d6644090be8b08 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:52:05 2022 +0200 Refactor payments summary line into separate component commit e2bc2ec506e5045d08560c6105685665820830de Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:41:49 2022 +0200 Show granted, pending and refunded amounts commit f9a47a4c7c48e479f4748d4bf8d373d2d1e6d3ea Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:18:33 2022 +0200 Fix selected refund value calculated to NaN commit 43bd259208359d1c2862c5493a16758de6970430 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 15:16:41 2022 +0200 Don't prefill refund amount, disable submit when amount is 0 commit 41d461a40b09723f880200796eab4c6a0895969f Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:14:55 2022 +0200 Remove warning text in Refund Card commit 14cd616fdd8b6ae93b4563c87af33adf4b86c922 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Oct 6 14:13:54 2022 +0200 Fix spacing in the Refund Card commit 825bd16752795749fba20043772b3b862005da49 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 17:13:55 2022 +0200 Update snapshots commit 74427bb29a44cba6cb2c9b8d8db9997cfa6dd68b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:59:06 2022 +0200 Update messages commit ddc6f8d09ecf82763c9ab3b4e9ed282863a5c970 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:52:36 2022 +0200 redeploy commit ee6341347ba95e06e18760a40b1c9aa03a0794a4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:47:02 2022 +0200 Improve loading state of grant refund view, add input labels commit 186caa1d243c2c9a92b4badb99a07f8275d61000 Merge: 319f2094b d21e75ead Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 16:17:57 2022 +0200 Merge branch 'feature/split-payments' into split-payments/grant-refund commit d21e75ead0a9222c3ab7884b73c00c652a605ea4 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Oct 5 14:35:00 2022 +0200 SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> commit 90c55d5775e7acdbbe0dc75014effa09776bae8e Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 319f2094bb5f61be7de3d1f329a04d7556aaa9c6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Oct 5 10:47:13 2022 +0200 Add edit grant refund view commit f01a0692308030466260f54a372f57a272ff7d6a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 12:58:44 2022 +0200 Fix form leave confirm dialog commit e3844037a67577a5b6407a65df4a20c58fca8835 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Oct 4 10:40:42 2022 +0200 Handle form submission commit a7472a526fb5ba869bca03b418242cab6cc33036 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Oct 3 15:57:35 2022 +0200 Write query for grant refund view, add product card commit 9942a125458f4185cce6c6338b1f28f505792c82 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Sep 30 17:01:19 2022 +0200 Calculate shipping cost, refactor refund card into component commit 351901c3072450b98bde03d45eba119336b3cb2a Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 30 15:07:42 2022 +0200 Add grant refund form and price calculation logic commit b19854d8ef77fc3449e041986008799b63c4ba21 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:21 2022 +0200 Add grant refund create mutation commit df0ad7c78d75ea38ee6349f226c573f833c53800 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Wed Sep 28 15:49:01 2022 +0200 Add OrderGrantRefundPage commit afc496add5038224e4a971bcaadfc60a5a17bd10 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Tue Sep 27 15:58:17 2022 +0200 Add granted refunds list commit 3d78fbf28318733b71c423e0e0f359d85002bf07 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Mon Sep 26 13:37:48 2022 +0200 Add grant refund to order query commit b97d93d8930cb2063772bace0ad5c779852a5c5c Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:08:27 2022 +0200 Fix TS errors commit b679bc91b670661c205ed2bd9c5b209d777173cc Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:35 2022 +0200 Update snapshots commit a6f3d3c50a46325011bba242b431cbf3cb81ac8b Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:21 2022 +0200 Update messages commit 99ec7ca736666b669eb215e463362fd2fe27c690 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 16:00:08 2022 +0200 Fix story - gift card commit 3c254dce2386dcbe544810948a86c5cf128d4cb4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:34:07 2022 +0200 Improve loading layout commit b1adf9d580d39b3301a8f56d0677a5ccf9608126 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 15:05:37 2022 +0200 Display message in payment card when there are no transactions commit e9bb8b22a95c7e2416ed5e457db7cbddc004fa3d Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 14:11:35 2022 +0200 Handle gift cards edge case: lowered total amount commit 115f56fb6f9e44f7f8bbec84d110a8e1c2af47d2 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Fri Sep 23 13:56:41 2022 +0200 Filter out payments that are inactive and don't contain any transaction commit e790aadca2a13fcccb8bb3a3c52967b90856c3e4 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:57:24 2022 +0200 Remove order level actions, move buttons to payment level commit fd4a158c5aba32f4a7ed31daa54bc37274d1cdbe Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:31:23 2022 +0200 Simplify OrderAddTransaction button commit 6b298357933033df42745d6db465617963b181d6 Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:26:40 2022 +0200 Hide grant refund and send refund when there is no payment commit b3c6532d299932bceafcbe48b06aaaf693dc21be Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 16:14:10 2022 +0200 Add Stories for payments in order, fix edge cases for payments commit 2db8efe628df5c647d36f2b97a48a40bd7c98eaf Author: Jonatan Witoszek <jonatan.witoszek@saleor.io> Date: Thu Sep 22 14:46:54 2022 +0200 Add payments displayed as transactions in order details commit 3751cbf4fecf22c6624d39ca894190abb77363a6 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 21 14:03:42 2022 +0200 Add gift card Storybook example, fix spacing between OrderTransaction commit 77a1647c0c7afe38298778372cace06e2dc428fb Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 17:00:18 2022 +0200 Remove gift card from OrderSummaryCard commit 85a4894d28d88c386a9b61fe09b517ac7ff8ad60 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 20 16:58:25 2022 +0200 Display gift cards as transactions in order details commit 1e36a176bab8c57c527f5e19ae05e46cf0cefa03 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 14:13:47 2022 +0200 Fix logic for displaying "Mark as paid" button commit 5aeca84a40c8d0a6df03315b56e48dcc1fc39cab Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:18:24 2022 +0200 Fix order details page when loading commit a6dc8f13ded5a4d7f5bf0b0778bb52c31b97028f Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Thu Sep 15 13:11:50 2022 +0200 Add "Mark as paid" / Add transaction button commit 7ad01b66dc4b639ae24bbc58a4364eee89e4cf4c Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 16:52:38 2022 +0200 Fix logic of showing / hiding capture & authorize amounts commit b4328e4cbf09290f5d1a29ecc3ca88f33fb83142 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Wed Sep 14 13:17:27 2022 +0200 Style payment + summary cards in order, style summary card commit e4bdd44beea265899dbc70db6470ca9307becb5b Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 15:25:54 2022 +0200 Add payments to order query, add more Storybook cases for orders commit 67dc47d5c19125442f1cf954b9b7d4b4e7d3eff7 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Tue Sep 13 10:53:26 2022 +0200 Add new OrderPayment card commit 093490a01bff3fd7aaaac270d74742a22e0b8885 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 14:46:35 2022 +0200 Refactor OrderPayment -> OrderSummaryCard commit 7eb73e2650d9602ef635a4b6b8a4aefd4ad89730 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Mon Sep 12 10:51:05 2022 +0200 Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> commit 6818c88b5b26be901ec56fae3302d5ba7b5fa504 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:22:47 2022 +0200 Update lockfile commit 9046b5f56cc293516e578c527abda4a30a66b079 Author: Jonatan Witoszek <jonatanwitoszek@gmail.com> Date: Fri Aug 12 17:20:50 2022 +0200 Update GraphQL schema * Fix TS issues * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * SALEOR-7900 - Grant refund: Send refund view (#2359) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Update snapshots, messages * Add new page [wip] * Fix refund card not working while loading * Add new page [wip] * Refactor order transaction component structure * [WIP] Send refund page * Add button to set max amount of refund * Update GraphQL schema * Update components after changing GraphQL schema * Add manual refunds * Disable refunds when transaction doesn't have appropriate actions * Update macaw * Update messages * Update snapshots * SALEOR-7904: Split payments - Grant refund (#2336) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * Add grant refund to order query * Add granted refunds list * Add OrderGrantRefundPage * Add grant refund create mutation * Add grant refund form and price calculation logic * Calculate shipping cost, refactor refund card into component * Write query for grant refund view, add product card * Handle form submission * Fix form leave confirm dialog * Add edit grant refund view * Improve loading state of grant refund view, add input labels * redeploy * Update messages * Update snapshots * Fix spacing in the Refund Card * Remove warning text in Refund Card * Don't prefill refund amount, disable submit when amount is 0 * Fix selected refund value calculated to NaN * Show granted, pending and refunded amounts * Refactor payments summary line into separate component * Disable hover effect when TableRow is not clickable * Refactor ProductCard to use TableRowLink * Update snapshots, messages * Refactor iterator spread to Array.from for more readability * Refactor payments summary logic * Refactor fulfilment subtitle into helper function * Refactor ProductCard event handlers into separate functions * Remove USD as default currency * Add exhaustiveness check to switch...case statemet * Fix refund card not working while loading * Pin macaw version * Update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> * Remove OrderRefund view * Update messages * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * SALEOR-7901: Split payments - order summary and payments balance (#2310) * Update GraphQL schema * Update lockfile * Split payments - transactions list (#2234) * Don't hide transaction balance when order is not confirmed * Add order transactions component * Fix IMoney to use new import * Fix conditional display logic, add story for long numbers * Fix alignment when amount is <10 * Add transaction events * Use Intl.DateTimeFormat to format dates instead of moment.js * Fix transactions list table layout * Update macaw to unreleased version * Highlight rows that have the same pspReference on hover * Fix spacing between transactions * Fix transaction events list when no pspReference is provided * Update messages * Update snapshots * Add copy feature to psp reference pill * Add buttons to void or capture transactions * Update prettier to latest version (TS syntax parsing issues) * Add parameter to clear additional params in modals * Fix PSP reference sizing issues * Fix transactions table sizing on `md` screen sizing * Update snapshots, fix inline styles in PSP reference * Fix order saved when copying PSP reference * Add copy icon to PspReference * Update snapshots * Update messages * Fix typo Co-authored-by: Michał Droń <dron.official@yahoo.com> * Revert "Update prettier to latest version (TS syntax parsing issues)" This reverts commit 5784b47ee20e8d77d8ebf63557769fa27b9a2562. * Refactor PR comments * Remove !important from styles * Fix failing prettier check * Update messages * Fix formatting * Replace custom styles with Typography component * Remove too long font size Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor OrderPayment -> OrderSummaryCard * Add new OrderPayment card * Add payments to order query, add more Storybook cases for orders * Style payment + summary cards in order, style summary card * Fix logic of showing / hiding capture & authorize amounts * Add "Mark as paid" / Add transaction button * Fix order details page when loading * Fix logic for displaying "Mark as paid" button * Display gift cards as transactions in order details * Remove gift card from OrderSummaryCard * Add gift card Storybook example, fix spacing between OrderTransaction * Add payments displayed as transactions in order details * Add Stories for payments in order, fix edge cases for payments * Hide grant refund and send refund when there is no payment * Simplify OrderAddTransaction button * Remove order level actions, move buttons to payment level * Filter out payments that are inactive and don't contain any transaction * Handle gift cards edge case: lowered total amount * Display message in payment card when there are no transactions * Improve loading layout * Fix story - gift card * Update messages * Update snapshots * Fix TS errors * force deploy * Fix "Copied" text doesn't fit on short psp reference * Hide "no payment" text when order has gift cards * Apply suggestions from code review Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Apply suggestions from code review * Refactor tax amount turnary operator expression * Refactor inlined functions to separate file * update snapshots Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix types after merge * Remove comment * Refactor common messages * Refactor inline formatted message * Resolve CR * Update src/utils/errors/transaction.ts Co-authored-by: Michał Droń <dron.official@yahoo.com> * Refactor money format function * Fix EditorJS TS issues * Fix Apollo & apollo-upload-client type mismatch * Add loading state to OrderSendRefund * Fix messages * Fix storybook not building * Fix stories, update snapshots, fix currency formatting Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> * Fix grant refund page not loading * Replace classnames with clsx * Add missing fields to transactions list, new psp reference design (#2769) * Add modal to create manual capture transactions in OrderDetails (#2880) * Add manual capture transaction mutation * Add manual transaction capture modal * Refactor common elements of manual transaction into shared component * Rewrite OrderManualTransactionForm to export form components separately * Add tests for OrderManualTransactionForm hook * Add tests to OrderManualTransactionForm Form component * Fix polly recording ids, read replay / record config from env vars * Add missing messages * Remove refund functionality in Return & Replace (#2876) * Refactor messages * Remove old compoennts related to return + refund functionality * Refactor return & replace internal components structure * Add new submit card to OrderReturn * Replace onRefundPayment with href * add missing test * Update messages * Fix TS errors after merge * Update imports @saleor -> @dashboard * Update dashboard OrderDetails after changes in core (#2933) * Fix TS errors after merge * Update transaction events to use new `type` field * Remove unused styles * Fix table row hover effect * Update messages * Add "createdBy" to order transaction fixtures * Add "createdBy" to TransactionEvent list * Fix crash when transaction event has invalid data * Add styles for PspReference link * Update messages * Add no events message to transaction events list * Add PSP Reference field to manual transactions, update mutations * Remove hiding from add manual transaction button * Fix styling of ManualRefundCard * Fix TS error * Rename OrderPayment -> OrderPaymentSummaryCard * Add pending amounts to OrderPaymentSummaryCard * Refactor PaymentsSummary * Add tests for OrderAddTransaction * Extract messages * Add tests for PaymentSummary calculation * Add tests to EventCreatedBy * Add tests to EventItem * Add tests for transaction event status mapping * Fix TS error * Update schema * Add missing fields to TransactionItem fragment * Add missing fields to OrderTransaction * fixup! Update schema * Fix CR comments * Update imports @saleor -> @dashboard, fix types * Fix CR comments * Fix Jest wrong timezone when run locally * Fix EventItem test using invalid date * Add feature flags to split payments PR (#3044) * Remove transactions related changes from GraphQL files * Fix issues with build-types, when feature flags are used * Generate transactions only GraphQL files * Update GraphQL imports * Fix issue with dependencies * Restore deleted views * Add feature flags to OrderReturn * Add feature flags to OrderSendRefund * Add feature flag to OrderDetailsPage * Add feature flag check in new order routes * Update messages * Fix TS error * Add tests for OrderPaymentOrTransaction * Update schema * Use different query for order when FF is enabled * Fix failing CI * Fix CR * fixup! Merge branch 'feature/split-payments' into split-payments/feature-flag * Regenerate types after merge * Transactions small fixes (#3110) * Fix transaction action modal not closing on scucess * Fix layout shift on OrderSendRefund * Update schema behind feature flag * Update types * Add missing props * Fix order event types * Update OrderDetails to fix spacing in new macaw redesign * Update GrantRefund page with new pages layout * Update SendRefundPage with new page layout * Update transactions feature flag schema * Rollback fetch-schema to default values * Add opacity to transactions that cannot be refunded * Fix return & replace button message * Add missing messages * Add tooltip with event message * Add missing status: info for transaction events * Add markAsPaidStrategy configuration to ChannelDetails (#3239) * Fix fulfilment titles, use the same text from OrderDetails * Add back old payments UI (#3238) * Remove Refund button from fulfilments in order with transactions * Show old payments UI if order has payments * Respect channel's markAsPaidStrategy when displaying new UI * Rename onPaymentPaid to onMarkAsPaid prop * Update messages * CR * Update snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshotsUpdate snapshots * Resolve TS errors * Fetch transaction ids in old order query to fix detection * run e2e * fix test should be able to update shipping zone. TC: SALEOR_0808 * CR: Remove funny comment --------- Co-authored-by: Michał Droń <dron.official@yahoo.com> Co-authored-by: Dawid <tarasiukdawid@gmail.com> Co-authored-by: Anna Szczech <anna.m.szczech@gmail.com>
2023-03-09 15:51:19 +00:00
.add("pending", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: false,
paymentStatus: PaymentChargeStatusEnum.PENDING,
transactions: transactions.pendingCharge,
}}
/>
))
.add("success", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: true,
totalAuthorized: prepareMoney(0),
totalCharged: prepareMoney(),
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
transactions: transactions.chargeSuccess,
}}
/>
))
.add("partial capture", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: true,
totalAuthorized: prepareMoney(ORDER_AMOUNT - 10),
totalCharged: prepareMoney(10),
paymentStatus: PaymentChargeStatusEnum.PARTIALLY_CHARGED,
transactions: transactions.chargePartial,
}}
/>
))
.add("failed", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: false,
paymentStatus: PaymentChargeStatusEnum.REFUSED,
transactions: transactions.chargeFail,
}}
/>
))
.add("refund requested", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: true,
totalAuthorized: prepareMoney(0),
totalCharged: prepareMoney(),
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
transactions: transactions.refundRequested,
}}
/>
))
.add("refund granted", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: true,
grantedRefunds,
totalGrantedRefund: prepareMoney(),
totalAuthorized: prepareMoney(0),
totalCharged: prepareMoney(),
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
transactions: transactions.chargeSuccess,
}}
/>
))
.add("refund completed", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: true,
grantedRefunds,
totalRefunded: prepareMoney(),
totalAuthorized: prepareMoney(0),
totalCharged: prepareMoney(0),
paymentStatus: PaymentChargeStatusEnum.FULLY_REFUNDED,
transactions: transactions.refundCompleted,
}}
/>
))
.add("partial refund completed", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
isPaid: true,
grantedRefunds,
totalRefunded: prepareMoney(10),
totalAuthorized: prepareMoney(0),
totalCharged: prepareMoney(ORDER_AMOUNT - 10),
paymentStatus: PaymentChargeStatusEnum.PARTIALLY_REFUNDED,
transactions: transactions.refundPartial,
}}
/>
))
.add("paid with giftcard", () => (
<OrderDetailsPage
{...props}
order={
{
...props.order,
isPaid: true,
transactions: [],
paymentStatus: PaymentChargeStatusEnum.FULLY_CHARGED,
// gift cards are treated as dicounts
total: {
net: prepareMoney(0),
gross: prepareMoney(0),
tax: prepareMoney(0),
__typename: "TaxedMoney",
},
giftCards: [
{
__typename: "GiftCard",
id: "R2lmdENhcmQ6Ng==",
last4CodeChars: "43FA",
events: [
{
__typename: "GiftCardEvent",
id: "R2lmdENhcmRFdmVudDo1",
type: GiftCardEventsEnum.ISSUED,
orderId: null,
date: "2022-09-20T13:00:42.676174+00:00",
balance: {
__typename: "GiftCardEventBalance",
initialBalance: prepareMoney(),
currentBalance: prepareMoney(),
oldInitialBalance: null,
oldCurrentBalance: null,
},
},
{
__typename: "GiftCardEvent",
id: "R2lmdENhcmRFdmVudDo2",
type: GiftCardEventsEnum.USED_IN_ORDER,
orderId: props.order.id,
date: "2022-09-20T13:04:20.017419+00:00",
balance: {
__typename: "GiftCardEventBalance",
initialBalance: null,
currentBalance: prepareMoney(0),
oldInitialBalance: null,
oldCurrentBalance: prepareMoney(),
},
},
],
},
],
} as OrderBothTypes
}
/>
));
storiesOf("Views / Orders / Order details", module)
.addDecorator(Decorator)
.add("default", () => <OrderDetailsPage {...props} />)
.add("loading", () => <OrderDetailsPage {...props} order={undefined} />)
2019-06-19 14:40:52 +00:00
.add("cancelled", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
2020-07-01 14:58:29 +00:00
fulfillments: props.order.fulfillments.map(fulfillment => ({
2019-06-19 14:40:52 +00:00
...fulfillment,
status: FulfillmentStatus.CANCELED,
2019-06-19 14:40:52 +00:00
})),
status: OrderStatus.CANCELED,
2019-06-19 14:40:52 +00:00
}}
/>
))
.add("fulfilled", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
status: OrderStatus.FULFILLED,
2019-06-19 14:40:52 +00:00
}}
/>
))
.add("partially fulfilled", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
status: OrderStatus.PARTIALLY_FULFILLED,
2019-06-19 14:40:52 +00:00
}}
/>
))
.add("unfulfilled", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
status: OrderStatus.UNFULFILLED,
2019-06-19 14:40:52 +00:00
}}
/>
))
.add("no shipping address", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
shippingAddress: null,
2019-06-19 14:40:52 +00:00
}}
/>
))
.add("no customer note", () => (
<OrderDetailsPage
{...props}
order={{
...props.order,
customerNote: "",
2019-06-19 14:40:52 +00:00
}}
/>
));