@meyicloud/meyi-cost-ui 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Reusable React UI package for AWS cost overview, monthly/yearly trends,
4
4
  service/account/region breakdowns, standard and comparison reports, scheduled
5
- AI report history and downloads, CSV/PDF exports, budgets, and budget status.
5
+ AI report history and downloads plus standard CSV/PDF cost exports.
6
6
 
7
7
  The package is intended to run inside an authenticated host application. It
8
8
  does not contain AWS credentials, query AWS directly, perform login, or decide
@@ -24,7 +24,7 @@ flowchart LR
24
24
  Host[External React application] --> Route[Authenticated /cost/* route]
25
25
  Route --> Page[CostPage]
26
26
  Page --> Router[Package router]
27
- Router --> Features[Overview / Reports / Budgets]
27
+ Router --> Features[Overview / AI Analysis / Reports / Sources]
28
28
  Features --> Hooks[Feature hooks]
29
29
  Hooks --> Service[costService]
30
30
  Service --> API[Configured Axios client]
@@ -39,7 +39,6 @@ src/
39
39
  |-- features/
40
40
  | |-- overview/ Dashboard, cards, charts, and loading state
41
41
  | |-- reports/ Filters, standard/compare reports, tables, export
42
- | `-- budgets/ Budget form, list, and hooks
43
42
  |-- services/cost.ts Backend API boundary
44
43
  |-- api.ts Axios configuration and auth interceptor helper
45
44
  |-- CostPage.tsx Public embeddable component
@@ -140,7 +139,7 @@ Build the UI package before building the host when using a file dependency.
140
139
 
141
140
  ### 1. Add an authenticated wildcard route
142
141
 
143
- The route must accept child paths such as `/cost/reports` and `/cost/budgets`.
142
+ The route must accept child paths such as `/cost/reports` and `/cost/analysis`.
144
143
  The exact wildcard syntax depends on the host router.
145
144
 
146
145
  ```tsx
@@ -189,7 +188,8 @@ apply authentication and tenant resolution before the cost endpoints.
189
188
 
190
189
  ### 4. Add navigation and plugin enablement
191
190
 
192
- The package exports `costNavItems` for Overview, Reports, and Budgets. The host
191
+ The package exports `costNavItems` for Overview, AI Analysis, Reports, Sources,
192
+ and CUR Discovery. The host
193
193
  may map these entries into its sidebar. Tenant-level installation, role checks,
194
194
  and dynamic menu visibility remain host responsibilities.
195
195
 
@@ -236,7 +236,6 @@ The UI consumes these routes below `${apiBase}/cost`:
236
236
  - `GET /reports`
237
237
  - `GET /tags`
238
238
  - `GET /analysis/status`, `GET /analysis/latest`, and `POST /analysis`
239
- - `GET /budgets`, `POST /budgets`, and `DELETE /budgets/:id`
240
239
  - `GET /budget-alert-dismissals` and `POST /budget-alert-dismissals`
241
240
 
242
241
  Use the matching cost server version whenever API response contracts change.
@@ -253,7 +252,7 @@ Use the matching cost server version whenever API response contracts change.
253
252
  2. Install or refresh the package in the host.
254
253
  3. Build the host frontend.
255
254
  4. Verify direct navigation and refresh for `/cost`, `/cost/reports`, and
256
- `/cost/budgets`.
255
+ `/cost/analysis`.
257
256
  5. Verify authenticated requests reach `/api/v1/cost` with the correct tenant.
258
257
  6. Test loading, empty, error, monthly/yearly, graph/list, report filters,
259
258
  compare mode, pagination, and PDF/CSV export states.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { CostPage, type CostPageProps } from './CostPage.js';
2
2
  export { configureApi, attachAuthInterceptors, api } from './api.js';
3
3
  export { createRouteTree, createCostRouter } from './router.js';
4
- export type { CostOverview, CostBreakdownItem, CostReport, CostBudget, CostTrend, CostSummary, CostPeriod, CostProvider, CurDataStatus, CostAwsSource, CostAnalysis, CostAnalysisStatus, CostAnalysisFacts, CostAnalysisSchedule, CostAnalysisReport, CostAnalysisFrequency, } from './types.js';
4
+ export type { CostOverview, CostBreakdownItem, CostReport, CostTrend, CostPeriod, CostProvider, CurDataStatus, CostAwsSource, CostAnalysis, CostAnalysisStatus, CostAnalysisFacts, CostAnalysisSchedule, CostAnalysisReport, CostAnalysisFrequency, } from './types.js';
5
5
  export declare const costNavItems: {
6
6
  title: string;
7
7
  url: string;