Improve(plan): show government production fees in plan overview - #477
Open
Raukk wants to merge 4 commits into
Open
Improve(plan): show government production fees in plan overview#477Raukk wants to merge 4 commits into
Raukk wants to merge 4 commits into
Conversation
Fetches government-set production fee rates from the FIO REST API (rest.fnar.net, non-blocking) and charges each active production building the workforce-weighted daily fee rate of its expertise. Shown as a Production Fees row in the plan overview and included in daily profit, cost and ROI. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFsCfBfPMjbxDYBoh65xYC
Weighted per-building fee rate from the planet's production fee data (optional payload field, pending backend support) charged into daily cost, profit, ROI and recipe option revenue. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFsCfBfPMjbxDYBoh65xYC
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFsCfBfPMjbxDYBoh65xYC
👷 Deploy request for prunplanner-preview pending review.Visit the deploys page to approve it
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 12 |
| Duplication | 2 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFsCfBfPMjbxDYBoh65xYC
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.
Adds the government-set production fee to plan costs as a "Production Fees" row in the plan overview, flowing into daily cost, profit and ROI. The fee is the workforce-weighted average of the planet's per-tier daily rates for the building's expertise, charged per building per 24h of runtime (APEX handbook, Local Rules); idle buildings pay nothing.
Fee data comes from an optional production_fees field on the planet payload, added by PRUNplanner/backend#. Until that is deployed the field is absent and fees show 0, so this can merge in either order.
I'm a bit behind on Typescript (and am used to Angular, not Vue) so I leaned on AI to make this change. Also, this is like my thir opensource PR in a decade, please kindly let me know if I messed something up.