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

refactor: change to use 'cost' not 'usd_cost' for the data property from cost api #1706

Conversation

WANZARGEN
Copy link
Member

@WANZARGEN WANZARGEN commented Aug 29, 2023

To Reviewers

  • Skip (style, chore, ci ONLY)
  • Not that difficult

Type of Change

  • New feature
  • Bug fixes
  • Feature improvement
  • Refactor
  • Others (performance improvement, CI/CD, etc.)

Affects to

  • Packages

    • core-lib
    • mirinae
    • etc
  • Apps

    • storybook
    • web

Checklist

  • Did you check the lint and type?
  • Did you document the changes?
    • Changes in mirinae should be reflected in storybook.
  • Did you test the app after the package changes?

Description

Please review in order by commits.

  1. Updated files that uses cost api to use 'cost' property, not 'usd_cost' property.
  • For easy updating after the api change, added comments and conversion process if needed.
  1. Refactored budget directory structure.
  • Renamed BudgetPage to BudgetMainPage.
  • Separated shared modules into shared/ directory.
  • Separated api model types to model.ts file.

Things to Talk About

@vercel
Copy link

vercel bot commented Aug 29, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 29, 2023 0:54am

notification_type: BudgetNotificationsType;
}

export interface BudgetModel {
Copy link
Member

Choose a reason for hiding this comment

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

praise: wow..!!!!!!!!!

Copy link
Member

@yuda110 yuda110 left a comment

Choose a reason for hiding this comment

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

LGTM!!! what a huge work...

Copy link
Member

@sulmoJ sulmoJ left a comment

Choose a reason for hiding this comment

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

LGTM!

@WANZARGEN WANZARGEN merged commit 833a121 into cloudforet-io:feature-cost-analysis-enhancement Aug 30, 2023
sulmoJ pushed a commit to sulmoJ/console that referenced this pull request Oct 4, 2023
…rom cost api (cloudforet-io#1706)

* refactor(cost): change cost chart and helpers from usd_cost to cost

Signed-off-by: Wanjin Noh <[email protected]>

* refactor(budget): separate models from type.ts

Signed-off-by: Wanjin Noh <[email protected]>

* refactor(budget): separate shared modules into shared dir, rename budget-main

Signed-off-by: Wanjin Noh <[email protected]>

* fix: fix type name

Signed-off-by: Wanjin Noh <[email protected]>

* refactor(budget): change to use cost not usd_cost

Signed-off-by: Wanjin Noh <[email protected]>

---------

Signed-off-by: Wanjin Noh <[email protected]>
sulmoJ pushed a commit to sulmoJ/console that referenced this pull request Oct 4, 2023
…rom cost api (cloudforet-io#1706)

* refactor(cost): change cost chart and helpers from usd_cost to cost

Signed-off-by: Wanjin Noh <[email protected]>

* refactor(budget): separate models from type.ts

Signed-off-by: Wanjin Noh <[email protected]>

* refactor(budget): separate shared modules into shared dir, rename budget-main

Signed-off-by: Wanjin Noh <[email protected]>

* fix: fix type name

Signed-off-by: Wanjin Noh <[email protected]>

* refactor(budget): change to use cost not usd_cost

Signed-off-by: Wanjin Noh <[email protected]>

---------

Signed-off-by: Wanjin Noh <[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.

3 participants