weaveworks / weave-gitops-enterprise

This repo provides the enterprise level features for the weave-gitops product, including CAPI cluster creation and team workspaces.
https://docs.gitops.weave.works/
Apache License 2.0
160 stars 29 forks source link

[UI] Add "Estimate cost button" to templates form #1678

Closed foot closed 2 years ago

foot commented 2 years ago

User can click a button to get an estimate of the monthly cost of a template after it has been filled out, if the template is not filled out show the usual render errors about missing value for CLUSTER_NAME etc.

Tasks breakdown

Displaying the feature

Interaction

Showing estimate

UI Polish that would be nice

Appendix

For the curious, here are the supported currency values https://aws.amazon.com/premiumsupport/knowledge-center/supported-aws-currencies/

{
  "AUD": "Australian Dollar",
  "BRL": "Brazilian Real",
  "CAD": "Canadian Dollar",
  "CHF": "Swiss Franc",
  "CNY": "Chinese Yuan (China UnionPay and Bank Redirect)",
  "DKK": "Danish Krone",
  "EUR": "Euro",
  "GBP": "British Pound",
  "HKD": "Hong Kong Dollar",
  "JPY": "Japanese Yen",
  "KRW": "South Korean Won",
  "NOK": "Norwegian Krone",
  "NZD": "New Zealand Dollar",
  "SEK": "Swedish Krona",
  "SGD": "Singapore Dollar",
  "USD": "United States Dollar",
  "ZAR": "South African Rand"
}

image

foot commented 2 years ago

FIGMA https://www.figma.com/file/IVHnM9iyeFWpd11evtY8ux/Weave-GitOps?node-id=12717%3A65939

ahussein3 commented 2 years ago

@foot I'm resetting OnFormDataChange the estimate back to "$0.00USD" the default state. WDYT ?