Codex/fase 6 - #11
Merged
Merged
Codex/fase 6#11
Conversation
Aggregate persisted sessions, energy readings, and invoices in service-layer calculations. Add date, station, and user filters with access control, a configurable emission factor, Pydantic response schemas, tests, and API contract documentation.
- Add typed API client for auth, sessions, energy, billing, and analytics - Persist and restore authenticated sessions - Protect admin and user routes and handle 401/403 responses - Add loading, empty, and error states with flow tests
- Connect KPIs, charts, history, and filters to the existing APIs. - Show peak risk only when a valid demand forecast is available. - Enable alert acknowledgement and cover loading, error, and empty states with tests.
Show the current charging session, session history, and invoices with loading, empty, and error states. Calculate in-progress cost estimates on the backend using the session’s captured tariff, while using the closed invoice as the final cost. Add access and session flow tests.
Add an end-to-end test covering power redistribution, solar usage, alerts, billing, and dashboard updates. Aggregate concurrent energy readings by tick in the admin charts, and document the delivered scope and remaining limits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementando fase 6 de desenvolvimento na branch
main