Skip to content

Don't auto-optimize shared plans#466

Merged
jplacht merged 1 commit into
PRUNplanner:mainfrom
lilbit-prun:dont_force_shared_plans_to_auto_optimize
May 19, 2026
Merged

Don't auto-optimize shared plans#466
jplacht merged 1 commit into
PRUNplanner:mainfrom
lilbit-prun:dont_force_shared_plans_to_auto_optimize

Conversation

@lilbit-prun
Copy link
Copy Markdown
Contributor

When I view https://prunplanner.org/shared/3b26959f-f281-41f6-bc12-343957c67e36 unlogged, I see 503/500 area used which isn't what my saved plan has.

This is because the auto-optimized habs checkbox is set. I think it's unnecessary to check props.disabled in PlanView.vue for the planPerfs variable because it's only used for the binding of the value of the auto-optimized hab's checkbox. I think we want it checked for unsaved plans otherwise it uses the plan's settings. Before it was set to true for unsaved plans and shared plans (disabled == shared plans if you trace it through to usePlanningDataLoader)

When I view https://prunplanner.org/shared/3b26959f-f281-41f6-bc12-343957c67e36
unlogged, I see 503/500 area used which isn't what my saved plan has.

This is because the auto-optimized habs checkbox is set. I think it's
unnecessary to check props.disabled in PlanView.vue for the planPerfs
variable because it's only used for the binding of the value of the
auto-optimized hab's checkbox. I think we want it checked for unsaved plans
otherwise it uses the plan's settings. Before it was set to true for unsaved plans
and shared plans (disabled == shared plans if you trace it through to usePlanningDataLoader)
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

👷 Deploy request for prunplanner-preview pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4685e7e

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 duplication

Metric Results
Duplication 0

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.

@jplacht jplacht self-requested a review May 19, 2026 09:13
Copy link
Copy Markdown
Contributor

@jplacht jplacht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great catch!

@jplacht jplacht merged commit ec2ab89 into PRUNplanner:main May 19, 2026
5 of 6 checks passed
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