index.html, style.css, script.js), using Chart.js to visualize cost data.| Day | Task | Start Date | End Date | References |
|---|---|---|---|---|
| 2 | - Write web frontend (UI and logic): + Discuss the daily work plan with the team before starting. + Write index.html (page structure) and style.css (UI).+ Write script.js to call the API endpoint, process JSON, and draw charts using Chart.js.+ Draw charts: cost trends (threshold line + anomaly markers), top services, alert history, KPIs. + At the end of the day, summarize and share results with the team. | 13/07/2026 | 13/07/2026 | - Chart.js Documentation: https://www.chartjs.org/docs/latest/ - MDN Fetch API: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API |
| 3 | - Host frontend on AWS (S3 + CloudFront): + Discuss the daily work plan with the team before starting. + Create an S3 bucket (Web Hosting) and upload 3 UI files using Terraform. + Configure CloudFront (HTTPS) and Origin Access Control for security, blocking direct public access to S3. + Get the CloudFront link to access the Dashboard. + At the end of the day, summarize and share results with the team. | 14/07/2026 | 14/07/2026 | - Amazon CloudFront + S3: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/GettingStarted.SimpleDistribution.html - Terraform aws_cloudfront_distribution: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution |
| 4 | - Add Dashboard authentication with Amazon Cognito: + Discuss the daily work plan with the team before starting. + Create a Cognito User Pool, App Client, and Cognito Domain using Terraform. + Configure the API Gateway JWT Authorizer to only accept requests with valid JWTs. + Update CORS, only allowing the Dashboard’s CloudFront domain to call the API from the browser. + Integrate the Authorization Code Flow with PKCE login flow into script.js; add login and logout buttons.+ At the end of the day, summarize and share results with the team. | 15/07/2026 | 15/07/2026 | - Amazon Cognito Developer Guide: https://docs.aws.amazon.com/cognito/ - API Gateway JWT Authorizer: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-jwt-authorizer.html |
| 5 | - End-to-end testing and Dashboard refinement: + Discuss the daily work plan with the team before starting. + Access the Dashboard via the CloudFront link in the browser and log in using Cognito. + Verify the flow: browser to CloudFront/S3, Cognito authenticates and issues a JWT, Dashboard calls API Gateway, Lambda API reads data from S3. + Check that charts correctly display cost data and anomaly statuses. + Adjust the size of the donut chart for balance, add tooltips displaying amounts with the $ symbol.+ Add a light/dark mode UI toggle using CSS variables. + At the end of the day, summarize and share results with the team. | 16/07/2026 | 16/07/2026 | |
| 6 | - Add bilingual toggle (EN/VI) and finalize testing: + Discuss the daily work plan with the team before starting. + Build a bilingual English/Vietnamese dictionary for labels, titles, authentication messages, and charts. + Add a language switch button, update the UI, and redraw charts according to the selected language. + Retest the entire Dashboard in both languages, including login, data loading, charts, and light/dark mode. + At the end of the day, summarize and share results with the team. | 17/07/2026 | 17/07/2026 |
index.html, style.css, script.js) following the separation of concerns principle. The Dashboard uses the Chart.js library to visualize cost data with charts for daily cost trends, threshold lines, anomaly markers, service proportion, top costly services, and KPI metrics.$ symbol. Added a light/dark UI toggle using CSS variables, helping users choose a suitable interface and improving the user experience.