Skip to content

Commit

Permalink
Merge pull request #484 from team-monite/feat/DEV-13233-fe-kanmon-v-1…
Browse files Browse the repository at this point in the history
…-implementation

feat(DEV-13233): Financing V1
  • Loading branch information
PeCrio authored Dec 13, 2024
2 parents acc39f8 + bfdf00b commit eafa0e3
Show file tree
Hide file tree
Showing 68 changed files with 16,202 additions and 9,638 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-birds-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@monite/sdk-react': minor
---

feat(DEV-13306): add financing tab
5 changes: 5 additions & 0 deletions .changeset/eighty-pandas-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@monite/sdk-react': minor
---

feat(DEV-13301): finance an invoice
5 changes: 5 additions & 0 deletions .changeset/forty-onions-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@monite/sdk-react': minor
---

feat(DEV-13304): implement finance banner
5 changes: 5 additions & 0 deletions .changeset/healthy-roses-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@monite/sdk-react': minor
---

feat(DEV-13398): expose finance components
6 changes: 6 additions & 0 deletions .changeset/hungry-snakes-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@monite/sdk-react': minor
'@team-monite/sdk-demo': minor
---

feat(DEV-13399): add integrations page and finance application card
5 changes: 5 additions & 0 deletions .changeset/kind-impalas-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@monite/sdk-react': patch
---

feat(DEV-13428): add wrapper for finance faq
6 changes: 6 additions & 0 deletions .changeset/shy-otters-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@monite/sdk-react': minor
'@team-monite/sdk-demo': minor
---

feat(DEV-13399): add integrations page and finance application card
9 changes: 9 additions & 0 deletions packages/sdk-demo/src/apps/Base/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Products,
Tags,
Onboarding,
Integrations,
RolesAndApprovalPolicies,
} from '@monite/sdk-react';
import { Box } from '@mui/material';
Expand Down Expand Up @@ -94,6 +95,14 @@ export const Base = () => {
}
/>
<Route path={ROUTES.onboarding} element={<Onboarding />} />
<Route
path={ROUTES.integrations}
element={
<Gutter>
<Integrations />
</Gutter>
}
/>
<Route path="*" element={<Navigate to={ROUTES.counterparts} />} />
</Routes>
);
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-demo/src/apps/Base/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ export const ROUTES = {
receivables: '/receivables',
products: '/products',
onboarding: '/onboarding',
integrations: '/integrations',
rolesApprovals: '/settings/roles-approvals',
};
5 changes: 5 additions & 0 deletions packages/sdk-demo/src/components/Menu/consts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ export const getNavigationData = (
url: ROUTES.onboarding,
renderIcon: (props) => <LabelIcon {...props} />,
},
integrations: {
label: t(i18n)`Integrations`,
url: ROUTES.integrations,
renderIcon: (props) => <LabelIcon {...props} />,
},
},
},
});
4 changes: 4 additions & 0 deletions packages/sdk-demo/src/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ msgstr "Entity User ID"
msgid "Error: <0>{0}</0>"
msgstr "Error: <0>{0}</0>"

#: src/components/Menu/consts.tsx:66
msgid "Integrations"
msgstr "Integrations"

#: src/components/LoginForm/LoginForm.tsx:128
msgid "Login"
msgstr "Login"
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-react/generate-api-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ set -o errexit
yarn exec openapi-qraft src/api/schema.json --plugin tanstack-query-react --plugin openapi-typescript \
--output-dir src/api --clean --filter-services '**,!/portal/**' \
--operation-predefined-parameters \
'/**,!/auth/**,!/entities/**,!/entity_users/me,!/entity_users/my_entity,!/entity_users/my_role,!/events/**,!/mail_templates/**,!/webhook_subscriptions/**,!/webhook_settings/**,!/receivables/variables,!/settings/**,!/files/**,!/mailbox_domains/**,!/payable_purchase_orders/**,!/frontend/bank_account_masks,!/frontend/document_type_descriptions,!/frontend/person_mask,!/frontend/bank_accounts_currency_to_supported_countries,!/internal/**:header.x-monite-entity-id' \
'/**,!/auth/**,!/entities/**,!/entity_users/me,!/entity_users/my_entity,!/entity_users/my_role,!/events/**,!/mail_templates/**,!/webhook_subscriptions/**,!/webhook_settings/**,!/receivables/variables,!/settings/**,!/files/**,!/mailbox_domains/**,!/payable_purchase_orders/**,!/frontend/bank_account_masks,!/frontend/document_type_descriptions,!/frontend/person_mask,!/frontend/bank_accounts_currency_to_supported_countries,!/internal/**,!/payables/validations/**:header.x-monite-entity-id' \
'/**:header.x-monite-version' \
&& prettier --write src/api/**/**.ts
2 changes: 1 addition & 1 deletion packages/sdk-react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = {
statements: 96,
},
'./src/components/receivables': {
branches: 35,
branches: 30,
functions: 25,
lines: 60,
statements: 55,
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"react-infinite-scroll-component": "~6.1.0",
"react-international-phone": "~4.2.4",
"react-router-dom": "^6.3.0",
"react-script-hook": "~1.7.2",
"react-use": "^17.3.2",
"react-virtuoso": "~4.7.10",
"yup": "~0.32.11"
Expand Down
Loading

0 comments on commit eafa0e3

Please sign in to comment.