Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(proposal): merge dev into main (#351)
* fix(DEV-12191): fix 'All Statuses' filter font size * fix(DEV-12191): feat spread filter controls and make them responsive * docs(changeset): Fix table filters layout, fix 'Status' filter font size * chore: refactor filters to deduplicate code and solve appearance without a theme applied * chore: fix eslint warning * fix: due date value being clipped * chore: better props interface name * chore: better props interface names * fix(DEV-12180): prevent marking invoices due today as overdue (#281) * fix(DEV-12180): prevent marking invoices due today as overdue * docs(changeset): * chore(DEV-12180): modify is overdue upload test cases * chore(DEV-12180): modify test cases * Update isInvoiceOverdue.ts * Delete .changeset/real-pens-cross.md * docs(changeset): * fix CounterpartCell should be used for all Counterpart columns * chore: use CounterpartCell for all tables * feat: Company logos to Coloured icons with letters * feat: CounterpartsTable - Improve status styles to look like on other page * docs(changeset): Add coloured avatars for counterparts in tables, improve look of Counterparts table. * fix text vertical centering in <Select> * chore: rename interface to adhere to naming rules * chore: reverse unintentional InvoiceCounterpartName.tsx change * fix: fix interface name * fix(DEV-12393): fix false positive error message in SDK for payment reminders (#286) * fix(DEV-12393): Fix False Positive Error Message in SDK for Payment Reminders * docs(changeset): * fix(DEV-12393): new changes * feat(DEV-12417): table empty state not content to display or error message cases (#287) * chore(DEV-12417): skeleton * chore(DEV-12417): case for second line description * chore(DEV-12417): move render outide of component * chore(DEV-12417): fix type system * chore(DEV-12417): make component more generic * style(DEV-12417): correct state for action button label * chore(DEV-12417): fill data grid comp * chore(DEV-12417): allow pasing custom classnames * chore(DEV-12417): implement in payables * chore(DEV-12417): actions passed to payables * chore(DEV-12417): correct docs * chore(DEV-12417): approval policy coverage with data grid empty * chore(DEV-12417): counterparts with data grid empty * chore(DEV-12417): products with data grid empty * docs(changeset): Table empty state (filters applied, not content to display) * chore(DEV-12417): upload trans * chore(DEV-12417): type check * chore(DEV-12417): type check * chore(DEV-12417): change window reload -> query refetch * chore(DEV-12417): predefine hardcoded values * chore(DEV-12417): predefine hardcoded values * chore(DEV-12417): simlify logic * chore(DEV-12417): fix linting * fix CounterpartCell should be used for all Counterpart columns * feat: Invoice details should open immediately after creation * feat: persist form values between page reloads * chore: refactor hook * feat: preview email before sending * feat: validate form before showing a preview * fix: fix display of invoice previews * fix: double scrollbar * feat: new simplistic form design * feat: change form scheme to represent recipients * fix: use the same state across all forms to avoid overloading of the localstorage * fix useCounterpartContactList doesn't return contacts for individual counterparts * fix duplicate type definition * chore: add explanation for the code * chore: add explanation for the code * fix types * fix hooks order changed * feat: basic recipient selector * feat: update translations * feat(DEV-12417): cover no data grid logic for receivables and tags (#289) * chore(DEV-12417): cover no data grid logic for receivalbes and tags * docs(changeset): feat(DEV-12417): cover no data grid logic for receivalbes and tags * chore(DEV-12417): extra test * chore(DEV-12417): fix linting stuff * chore(DEV-12417): extra test case * chore(DEV-12417): extra test coverage * chore(DEV-12417): solve merge conflicts * chore(DEV-12417): upload trans * chore(DEV-12417): enahncements based on conditions * chore(DEV-12417): upload trans * feat(DEV-12417): enhance approval policies with no data/error states and dropdown improvements (#290) * chore(DEV-12417): improvements for handling dropdown * chore(DEV-12417): extra coverage for approval policies * docs(changeset): * chore(DEV-12417): upload trans * chore(DEV-12417): fix linting stuff * feat: styles for RecipientSelector * docs(changeset): Add the capability to change invoice recipient and preview invoice email before sending. * feat: update translations * chore: reverts unexpected commit * fix: CounterpartCell should respect parent text styles * feat: UserCell component for displaying user that created invoice * feat: display 'unspecified' when counterpart wasn't specified * feat: display country and city next to counterpart * fix: overdue and status chips should be of the same size * docs(changeset): Add country and city name next to counterpart name in tables. * chore: update translations * fix(DEV-12417): empty state disabled filters (#293) * fix(DEV-12417): empty state disabled filters * chore(DEV-12417): add for invoices table * chore(DEV-12417): add case for credit notes * chore(DEV-12417): add case for approval requst table * chore(DEV-12417): add logic for quotes table * chore(DEV-12417): other tables coverage * docs(changeset): * chore(DEV-12417): fix linting * chore(DEV-12417): upload trans * fix(DEV-12417): counterpart dialogs * fix(DEV-12417): for approval request * chore(DEV-12417): fix for empty state * chore(DEV-12417): other empty state cases * chore(DEV-12417): upload trans * chore(DEV-12417): skip test * chore: addresses issues * fix: removes excessive variables * chore: unnecessary type check * chore: fix randomly falling unit test * chore: update clerk version * docs(changeset): * chore: update lock file * chore(proposal): API version to 2024-05-25 (#314) * chore(upgrade): api version upgrade to 2024-05-25 * chore: new translations * docs(changeset): chore(upgrade): api version upgrade to 2024-05-25 * feat(DEV-12593): Merge create/preview steps of invoice creation into a single flow (#312) * feat: Create invoice form button should be 'Next step' instead of 'Create' * fix: Contacts loading indicator shouldn't be visible all the time * fix: Contacts loading indicator shouldn't be visible all the time * chore: update testing-library dependency to solve 'act is deprecated' warning * fix typechecks * fix: ProductsTable has incorrect HTML markup * feat: incomplete test * fix counterpart address handler * feat: force virtuosotable to have some height * fix: fixes the test * fix: suppress 'An update to ... inside a test was not wrapped in act' warnings * chore: rolls back testing-library version update * fix: restores previous logic of triggerClickOnAutocompleteOption * chore: moves test to CreateReceivables.test.tsx * chore: trying to fix the test on the server * chore: removes unused function * docs(changeset): Open newly created invoice for preview immediately after creation. * chore: code fixes according to review suggestions --------- Co-authored-by: ivannikitin <[email protected]> * feat(DEV-12589): Summary cards (#311) * chore(DEV-12589): cherry picked main logic summary cards * chore(DEV-12589): add mocks * docs(changeset): feat(DEV-12589): Summary cards and API update to 2024-05-25 * chore(DEV-12589): update themes file * chore(DEV-12589): extra missing types * chore(DEV-12589): missing status chip * chore(DEV-12589): fix typings * chore(DEV-12589): change unit tests * chore(DEV-12589): fix tests * chore(DEV-12589): cleanups * style(DEV-12589): cleanups from hardcoded styles * style(DEV-12589): refactor to follow more mui approach * chore(DEV-12589): refactor summary tests * style(DEV-12589): more refactor for all items * style(DEV-12589): move some styles to theme * style(DEV-12589): move more stuff to theme * style(DEV-12589): support more theme customizing * chore(DEV-12589): cleanups * chore(DEV-12589): fix linting and types * chore: upload translation * chore(DEV-12589): fix type check * style: get only summary card theme * Delete .changeset/tidy-months-dream.md * docs(changeset): feat: Summary cards added for payables with theme customisation * chore(DEV-12589): extract only summary * style(DEV-12589): update monite.ts * chore(DEV-12589): better cherry picking * chore(DEV-12589): better cherry picking * chore: upload translation * chore: remove validation requirement for `entity_vat_id_id` * feat: use tax value for us entity during invoice creation * chore: add US entity tax check to update for US * feat(DEV-12508): hide VAT ID for US entities in invoice * fix(DEV-12284): fix min width for the tax value in the AR items * refactor(DEV-12598): encapsulate entity check logic * docs(changeset): encapsulate entity check logic * feat: update validation logic for invoice creation for us entity * refactor: update optional validation fields for US entity checks * chore * feat(DEV-12182): display warning when ocr data mismatch (#317) * chore(DEV-12182): prepare helper function * chore(DEV-12182): test on predefined case error * feat(DEV-12182): finalise mismatch data logic * chore: add from theme customisation * fix(DEV-12182): linting * docs(changeset): feat: display warning when ocr data mismatch * fix(proposal): analytics query to continusly spawn on every render (#318) * fix: analytics query to continusly spawn on every render * docs(changeset): * feat(DEV-12600): add support for body_text and subject_text in recurrence form (#321) * feat(DEV-12600): add support for body_text and subject_text in recurrence form * feat: add body_text and subject_text fields to recurring invoice update * docs(changeset): add support for body_text and subject_text when creating or updating recurring invoices * feat(DEV-12699): disable summary via theme customisation (#319) * style(DEV-12699): filters container fix * style(DEV-12699): disabling theme dynamically * chore(DEV-12699): enable disalbe summary cards * docs(changeset): feat(DEV-12699): disable summary cards via theme customisation * style(DEV-12699): change skeleton high * feat(DEV-12655): overdue ap flag new design (#322) * style(DEV-12655): overdue ap flag new design * feat(DEV-12655): check status for both receivable and payable * docs(changeset): feat(DEV-12655): overdue ap flag new design * chore(DEV-12655): upload trans * chore(DEV-12655): modify test cases * chore(DEV-12655): cleanups * feat(DEV-12285): add memo field to invoice creation and update (#308) * feat(DEV-12285): add memo field to invoice creation and update * chore: update translations * docs(changeset): feat(DEV-12285): implement memo field for creating and updating invoice * feat(DEV-12363): move order of columns - extend config to pass order (#324) * feat(DEV-12363): prepare column config ordering * chore(DEV-12363): field order status * docs(changeset): feat: Move order of columns - extend config to pass order * feat: email invoice details * chore: update translations * feat(DEV-12410): ability for partners to remove tags (#325) * feat(DEV-12410): ability for partners to remove tags * docs(changeset): feat(DEV-12410): ability for partners to remove tags * docs(changeset): improvements to email invoice functionality * chore(proposal): temporary disable jobs sync gitlab (#330) * chore(proposal): temporary disable jobs sync gitlab * docs(changeset): * chore(proposal): bump rollup from 3.29.4 to 3.29.5 (#331) * chore(deps-dev): bump rollup from 3.29.4 to 3.29.5 Bumps [rollup](https://github.com/rollup/rollup) from 3.29.4 to 3.29.5. - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v3.29.4...v3.29.5) --- updated-dependencies: - dependency-name: rollup dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * docs(changeset): --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitaly Kuprin <[email protected]> * chore(proposal): bump express from 4.18.2 to 4.20.0 (#332) * chore(deps-dev): bump express from 4.18.2 to 4.20.0 Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.20.0. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/master/History.md) - [Commits](expressjs/express@4.18.2...4.20.0) --- updated-dependencies: - dependency-name: express dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * docs(changeset): --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitaly Kuprin <[email protected]> Co-authored-by: Vitaly Kuprin <[email protected]> * chore(proposal): bump vite from 5.1.4 to 5.1.8 (#333) * chore(deps-dev): bump vite from 5.1.4 to 5.1.8 Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.4 to 5.1.8. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.1.8/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.1.8/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * docs(changeset): --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitaly Kuprin <[email protected]> Co-authored-by: Vitaly Kuprin <[email protected]> * chore(proposal): bump ejs from 3.1.9 to 3.1.10 (#334) * chore(deps): bump ejs from 3.1.9 to 3.1.10 Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10. - [Release notes](https://github.com/mde/ejs/releases) - [Commits](mde/ejs@v3.1.9...v3.1.10) --- updated-dependencies: - dependency-name: ejs dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * docs(changeset): --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitaly Kuprin <[email protected]> * chore(proposal): bump undici from 5.28.3 to 5.28.4 (#336) * chore(deps): bump undici from 5.28.3 to 5.28.4 Bumps [undici](https://github.com/nodejs/undici) from 5.28.3 to 5.28.4. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.28.3...v5.28.4) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * docs(changeset): --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitaly Kuprin <[email protected]> * chore(proposal): bump webpack from 5.78.0 to 5.94.0 (#335) * chore(deps): bump webpack from 5.78.0 to 5.94.0 Bumps [webpack](https://github.com/webpack/webpack) from 5.78.0 to 5.94.0. - [Release notes](https://github.com/webpack/webpack/releases) - [Commits](webpack/webpack@v5.78.0...v5.94.0) --- updated-dependencies: - dependency-name: webpack dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * docs(changeset): --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vitaly Kuprin <[email protected]> * chore(deps): bump express from 4.18.2 to 4.21.0 (#337) Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.21.0. - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.0/History.md) - [Commits](expressjs/express@4.18.2...4.21.0) --- updated-dependencies: - dependency-name: express dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * feat(DEV-12179): custom Tabs for Payables (#328) * fix(DEV-12655): days overdue fix * chore(DEV-12179): upload new trans * chore(DEV-12179): prepare typings system * chore(DEV-12179): prepare for custom filtering * chore(DEV-12179): allow to pass custom filter * fix(DEV-12179): trans for overdue and pass default monite theme * chore(DEV-12179): custom filter skeleton * chore(DEV-12179): separate complexity * chore(DEV-12179): correctly map object key values * chore(DEV-12179): custom filter query * chore(DEV-12179): fix broken types * style(DEV-12179): improve styling for custom summary * chore(DEV-12179): cleanups * docs(changeset): feat(DEV-12179): custom Tabs for Payables * chore(DEV-12179): more cleanups * chore(DEV-12179): chore cleanups * Update monite.ts * chore(DEV-12179): update trans * Update packages/sdk-react/src/components/payables/PayablesTable/Filters/SummaryCardsFilters.tsx Co-authored-by: Precious OSSAI <[email protected]> * chore(DEV-12179): some naming fixes * chore(DEV-12179): extra type for payable state enum * chore(DEV-12179): rename filtering conditions * chore(DEV-12179): one day plural * chore(DEV-12179): change the prop naming * chore(DEV-12179): update trans * chore(DEV-12179): rename fields * docs(DEV-12179): provide docs for components --------- Co-authored-by: Precious OSSAI <[email protected]> * feat(DEV-12177): extended wildcard search for payables (#320) * chore(DEV-12177): just one extra query added * docs(changeset): feat(DEV-12177): extended wildcard search for payables * Update hungry-glasses-arrive.md * chore(DEV-12177): new query params * chore(DEV-12177): add sort param * chore(DEV-12177): wildcard search * refactor: email invoice details * refactor(DEV-12330): disable current implementation of approval policy form * refactor(DEV-12330): reuse triggers' extraction * fix(DEV-12330): fix triggers' list name * feat(DEV-12330): view trigger details * feat(DEV-12330): view script details * feat(DEV-12330): edit trigger * feat(DEV-12330): edit script * feat(DEV-12330): create a new approval policy * fix(DEV-12330): fix default script values when edit * feat(DEV-12331): add create/update tags trigger * feat(DEV-12331): add delete approval policy feature * refactor(DEV-12331): add form reset and reuse this functionality * refactor(DEV-12331): refactor components' composition * feat(DEV-12331): add counterpart trigger * feat(DEV-12331): add amount trigger * feat(DEV-12331): add amount condition * feat(DEV-12331): add currency condition * fix(DEV-12331): fix currency autocomplete search * fix(DEV-12331): fix tags operand * fix(DEV-12284): fix tags operand * feat(DEV-12284): amount condition with currency * feat(DEV-12284): display all types of rules in table * feat(DEV-12284): display all types of rules in details view * feat(DEV-12284): add rules data to form * feat(DEV-12284): add create/edit/delete rules to form * refactor(DEV-12284): refactor prev values handling * chore(DEV-12284): update openapi spec * refactor(DEV-12284): delete custom user component * fix(DEV-12284): fix cancel details callback * fix(DEV-12284): fix counterpart fixture * docs(changeset): feat(DEV-12284): add Approval Policies builder component * chore(DEV-12284): update openapi schema and apply related changes * fix(DEV-12284): fix dialog title * fix(DEV-12284): fix lint warnings * test(DEV-12284): fix tests for approval policies table * test(DEV-12284): fix tests for approval policies details * test(DEV-12284): decrease the threshold for tests in sdk * fix(DEV-12284): fix roles rule if there is one role in the list * fix(DEV-12284): fix button blocking if a mutation is in progress * feat(DEV-12588): update api schema.json * feat(DEV-12588): add basic validation * refactor(DEV-12588): remove unnecessary triggerKeys * refactor(DEV-12588): add one watch function for all values * chore(DEV-12588): translations * fix(DEV-12588): remove unused import * fix(proposal): custom style cards enhanced (#340) * fix: mini enhanced styles * docs(changeset): * RELEASING: Releasing 5 package(s) Releases: @monite/[email protected] @team-monite/[email protected] @team-monite/[email protected] @monite/[email protected] @monite/[email protected] * chore(release): change target branch for release beta version * RELEASING: Releasing 5 package(s) Releases: @monite/[email protected] @team-monite/[email protected] @monite/[email protected] @team-monite/[email protected] @monite/[email protected] * Revert "chore(release): change target branch for release beta version" This reverts commit 2b55515. * chore(DEV-11611): update sdk-drop-in documentation (#310) * chore: update sdk-drop-in documentation * docs(changeset): chore(DEV-11611): update iframe docs --------- Co-authored-by: Vitaly Kuprin <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: ivannikitin <[email protected]> Co-authored-by: Ivan Nikitin <[email protected]> Co-authored-by: saladNights <[email protected]> Co-authored-by: Precious OSSAI <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information