Feat/llm vision#8
Merged
Merged
Conversation
src/migrations/ holds ad-hoc historical-data fix scripts run locally against staging/prod data; they aren't meant to be version-controlled or re-run via CI. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
resolveVersionsSource/resolveMeterVersion previously only deferred to Property.meter_groups[entry] for submeters, falling back to the deprecated MeterGroup.versions/current_version for main meters. Since version tracking moved to the per-property entry, main-meter readings could resolve against stale/absent MeterGroup version data. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Apply the endDate in-memory filter whenever endDate is supplied instead of only when both startDate and endDate are present, so an endDate-only query no longer leaks cycles ending after it. - Rebuild getConsumption on top of buildJoinedData (the same version-aware consumption path used by every other report) instead of the raw, non-version-aware number frozen on cycle.billing_ids at cycle-creation time. - Bucket getBillingTrends by cycle start date to match getConsumption's grouping, so the same cycle no longer lands in different months across the two charts when it spans a month boundary. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds get_billing_reports, wrapping reportsService (summary, consumption, billing_trends, collection_status) as a chatbot tool so portfolio-wide questions (total revenue, collection rate, MoM trends, paid/pending/overdue breakdowns) are answered from the same source as the Reports page instead of the LLM summing per-property tool calls. Property identity in the consumption-by-property result is masked the same way as every other tool output. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Fetch all pages of billing cycles/billings via cursor pagination instead of a single capped page, so stat totals and the cycles table don't silently undercount once historical backfill pushes past 100 records. Add a 3/6/12-month range toggle and scope the Billed/ Collected/Outstanding stat boxes to the same range as the cycles table below them, and show reading units next to consumption. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replace the per-meter-group grouped sections with a single flat table supporting utility type, meter group, date range, and payment status filters plus client-side pagination. Cycles/billings/readings are now fetched via cursor pagination (list endpoints cap limit at 100) instead of a single page, which previously dropped older cycles' data from billingMap/readingMap once historical backfill pushed past 100 records. Cycle utility type and meter group now read directly from BillingCycle.meter_group_id instead of being inferred from its first billing's reading. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
These were ad-hoc scripts for historical data fixes/backfills and environment copies, not code meant to be maintained or re-run via CI. src/migrations/ is now gitignored (see previous commit) to keep future one-offs out of the repo. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
No description provided.