Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new sdk to current app #2579

Merged
merged 14 commits into from
Feb 12, 2025
Merged

add new sdk to current app #2579

merged 14 commits into from
Feb 12, 2025

Conversation

kattylucy
Copy link
Collaborator

@kattylucy kattylucy commented Jan 16, 2025

Integrate new sdk into out current app (reports and data tabs only)

  • Dev

@kattylucy kattylucy changed the base branch from main to reports January 16, 2025 09:57
@kattylucy kattylucy force-pushed the sdk_add_reports_to_app branch 4 times, most recently from 93d40a5 to 1111dff Compare January 24, 2025 10:21
Copy link

github-actions bot commented Jan 27, 2025

PR deployed in Google Cloud
URL: https://app-pr2579.k-f.dev
Commit #: 7191f80
To access the functions directly check the corresponding deploy Action

Copy link

github-actions bot commented Jan 27, 2025

PR deployed in Google Cloud
URL: https://pr2579-app-ff-production.k-f.dev
Commit #: 7191f80
To access the functions directly check the corresponding deploy Action

@kattylucy kattylucy force-pushed the sdk_add_reports_to_app branch from 53a9371 to a176b8c Compare January 27, 2025 19:02
@kattylucy kattylucy force-pushed the sdk_add_reports_to_app branch from fc5a202 to 3b36d12 Compare January 27, 2025 19:05
Copy link

socket-security bot commented Jan 28, 2025

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@kattylucy kattylucy force-pushed the sdk_add_reports_to_app branch from 8336c18 to 7dff8d0 Compare January 28, 2025 10:28
@kattylucy kattylucy force-pushed the sdk_add_reports_to_app branch from d69f969 to 3fe9057 Compare January 28, 2025 15:53
@kattylucy kattylucy force-pushed the sdk_add_reports_to_app branch from 89d04b6 to c2e3556 Compare February 4, 2025 09:06
@kattylucy kattylucy marked this pull request as ready for review February 4, 2025 09:06

// FORMAT FUNCTIONS FOR NEW SDK

export function formatDecimal(decimalVal: any, displayDecimals: number, currency?: string): string {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export function formatDecimal(decimalVal: any, displayDecimals: number, currency?: string): string {
export function formatDecimal( amount: CurrencyBalance | TokenBalance | Price | Rate | Decimal | number,
, displayDecimals = 2, currency?: string): string {

Would love to see this function types like the other formatting options we had. There will be some type conflicts with Rate/Perquintill but I think you can circumvent the problem by writing the functions in a new file e.g formatting-sdk.ts. Then we can likely also keep the names formatBalance, formatBalanceAbbreviated and formatPercentage (I don't think formatDecimal really conveys what the function does)

@@ -29,7 +29,7 @@
"@centrifuge/centrifuge-js": "workspace:*",
"@centrifuge/centrifuge-react": "workspace:*",
"@centrifuge/fabric": "workspace:*",
"@centrifuge/sdk": "^0.0.0-alpha.0",
"@centrifuge/sdk": "latest",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's pin down the version so we don't accidentally include updates that we're not ready for yet

Comment on lines 72 to 74
?.filter(
(tx) => tx.transactionType !== 'PROPOSED' && tx.transactionType !== 'ADDED' && tx.transactionType !== 'REMOVED'
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we move this filter to the sdk?

Move filter to sdk and specify the sdk version
Copy link
Collaborator

@sophialittlejohn sophialittlejohn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing!!! 🔥🔥🔥

Let's get this merged after this current release to give product enough time to test it before it goes live

@kattylucy
Copy link
Collaborator Author

No problem. I will merge it into your reports branch and we can release from there!

@kattylucy kattylucy merged commit 3891d33 into reports Feb 12, 2025
12 checks passed
@kattylucy kattylucy deleted the sdk_add_reports_to_app branch February 12, 2025 04:46
kattylucy added a commit that referenced this pull request Feb 12, 2025
* Use Centrifuge SDK in cashflow report

* Remove unused cashflow chart files

* Fix asset purchases/asset financings

* Use first offical alpha release of sdk

* add new sdk to current app (#2579)

* Upgrade SDK

* Add hook

* Add formatting and utils

* Add to reports

* wip[

* Fix bugs based on new sdk release

* Add reports to query

* Remove console

* Fix formatting options

* Fix imports

* Fix formatting

* Fix percentage function

* Feedback changes

Move filter to sdk and specify the sdk version

* fix bug on report type

---------

Co-authored-by: Guillermo Perez <[email protected]>
Co-authored-by: Katty Barroso <[email protected]>
sophialittlejohn added a commit that referenced this pull request Feb 17, 2025
* Use Centrifuge SDK in cashflow report

* Remove unused cashflow chart files

* Fix asset purchases/asset financings

* Use first offical alpha release of sdk

* add new sdk to current app (#2579)

* Upgrade SDK

* Add hook

* Add formatting and utils

* Add to reports

* wip[

* Fix bugs based on new sdk release

* Add reports to query

* Remove console

* Fix formatting options

* Fix imports

* Fix formatting

* Fix percentage function

* Feedback changes

Move filter to sdk and specify the sdk version

* fix bug on report type

---------

Co-authored-by: Guillermo Perez <[email protected]>
Co-authored-by: Katty Barroso <[email protected]>
sophialittlejohn added a commit that referenced this pull request Feb 17, 2025
* Use Centrifuge SDK in cashflow report

* Remove unused cashflow chart files

* Fix asset purchases/asset financings

* Use first offical alpha release of sdk

* add new sdk to current app (#2579)

* Upgrade SDK

* Add hook

* Add formatting and utils

* Add to reports

* wip[

* Fix bugs based on new sdk release

* Add reports to query

* Remove console

* Fix formatting options

* Fix imports

* Fix formatting

* Fix percentage function

* Feedback changes

Move filter to sdk and specify the sdk version

* fix bug on report type

---------

Co-authored-by: Guillermo Perez <[email protected]>
Co-authored-by: Katty Barroso <[email protected]>
sophialittlejohn added a commit that referenced this pull request Feb 17, 2025
* ci: Review GHA pipeline (#2620)

* upgrade 3rd party action versions and configure dependabot

* remove catalyst and cleanup unused functions deployments

* Make sure prod deploy uses the right tag to pull artifacts

* Adding more owners for bus factor purposes

* Simplify and fix prod deploy to allow for rollbacks

* notify slack of staging failed jobs

* upgrade node to v20 (v18 deprecated in April)

* disable e2e tests automatic triggers

* Improve PR comment adding the functions URL

---------

Co-authored-by: sophian <[email protected]>

* Redemption flow fixes (#2626)

- Change logic around the redeem flow
- Remove rounded number from clain button

* Use new Centrifuge SDK in cashflow report (#2549)

* Use Centrifuge SDK in cashflow report

* Remove unused cashflow chart files

* Fix asset purchases/asset financings

* Use first offical alpha release of sdk

* add new sdk to current app (#2579)

* Upgrade SDK

* Add hook

* Add formatting and utils

* Add to reports

* wip[

* Fix bugs based on new sdk release

* Add reports to query

* Remove console

* Fix formatting options

* Fix imports

* Fix formatting

* Fix percentage function

* Feedback changes

Move filter to sdk and specify the sdk version

* fix bug on report type

---------

Co-authored-by: Guillermo Perez <[email protected]>
Co-authored-by: Katty Barroso <[email protected]>

* Fix bug on pool creation demo (#2629)

* Take stepper outside form context

* Fix infinite loop bug

* Hide scrolling on menu bar (#2631)

* Fix token amount calculation (#2634)

* Persist to, from and groupBy filters and fix linter warnings (#2635)

---------

Co-authored-by: Guillermo Perez <[email protected]>
Co-authored-by: Katty Barroso <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants