feat: add an AWS Budgets view

Aperta
#159 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
57/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
aws, rust
Ambito
cli, cloud

Direzione di ricerca

Start after issue #116 is merged. Read docs/recipes/README.md and docs/recipes/add-a-service.md, then inspect src/aws/account.rs for the account ID and src/aws/clients.rs for client setup. Follow the recipe to add the Budgets view and its model, pivots, status handling, tests, and listed documentation updates; done means all checklist items pass, including the six-budget AWS check.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

size: M

Why

Fells has six monthly budgets (control plane, portal-auth, sms-otp, and one per product). Glance should show spend against each without opening Billing.

Follow docs/recipes/add-a-service.md.

Steps

  1. Follow docs/recipes/add-a-service.md. aws-sdk-budgets is already a dependency; add the client to AwsClients, pinned to us-east-1 like pricing.
  2. describe_budgets needs the account ID, which the account overview already has from STS.
  3. Model BudgetInfo: name, limit, actual spend, forecasted spend, time unit, percent used.
  4. Columns: name, limit, actual, forecast, used percent.
  5. Console: https://console.aws.amazon.com/billing/home#/budgets/details?name=<name>. CLI: aws budgets describe-budget --account-id <account-id> --budget-name <name>.
  6. Palette entry budgets. Tags can be an empty Tags for now; say so in the PR.

Where to look

  • docs/recipes/add-a-service.md
  • src/aws/account.rs (account ID)
  • src/aws/clients.rs

Done when

  • Budgets view reachable from the command palette
  • Rows carry tags: Tags
  • Describe, console pivot, and CLI pivot work on the selected row
  • A denied or failed fetch shows a status, not an empty table
  • Unit tests for the model helpers and the DescribableResource URLs and CLI command
  • README, docs/architecture.md, docs/aws-service-roadmap.md, and AGENTS.md updated
  • Changeset added (minor)
  • cargo fmt --all, cargo clippy --all-targets -- -D warnings, and cargo test --all pass, with output pasted in the PR

Check against AWS

Open the view. You should see six budgets.

Blocked by

#116. Start this after that is merged.

Size: M. Read docs/recipes/README.md before starting.

Lingua principale
Rust
Stelle
2
Fork
0
Merge medio
4h 8m
PR unite (30g)
8

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fells-code/seamless-glance

Tutte le issue di fells-code/seamless-glance

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.