Skip to content

Improve(plan): show government production fees in plan overview - #477

Open
Raukk wants to merge 4 commits into
PRUNplanner:mainfrom
Raukk:feat/production-fees
Open

Improve(plan): show government production fees in plan overview#477
Raukk wants to merge 4 commits into
PRUNplanner:mainfrom
Raukk:feat/production-fees

Conversation

@Raukk

@Raukk Raukk commented Aug 13, 2026

Copy link
Copy Markdown

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.

claude added 3 commits August 13, 2026 22:05
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
@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

👷 Deploy request for prunplanner-preview pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 35a1a3b

@codacy-production

codacy-production Bot commented Aug 13, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 12 complexity · 2 duplication

Metric Results
Complexity 12
Duplication 2

View in Codacy

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants