Skip to content

Feat/custom height UI 281#288

Open
RLiNREL wants to merge 4 commits into
developfrom
feat/custom-height-ui-281
Open

Feat/custom height UI 281#288
RLiNREL wants to merge 4 commits into
developfrom
feat/custom-height-ui-281

Conversation

@RLiNREL

@RLiNREL RLiNREL commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Description

Close #281 UI

  • Update interpolation to boolean
  • Add textfield and reorg the hub height settings

Checklist

  • PR targets develop
  • I have run make format and make verify
  • No merge conflicts with develop
  • Branch name is descriptive (feat/..., fix/..., docs/..., chore/...)
  • Commit messages are clear (e.g., feat: add new feature, fix: resolve bug, docs: update documentation)
  • Documentation updated where needed
  • I have self-reviewed this PR

Others: e.g. Screenshots if UI change

image

@RLiNREL
RLiNREL requested review from Copilot and sameersk2k and removed request for Copilot July 20, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Implements custom hub height entry in the UI to address #281 by allowing interpolated hub height selection (with clamping/no extrapolation) and reorganizing the hub height settings UI.

Changes:

  • Added resolveHubHeight utility to clamp/snap hub height values based on model interpolation behavior.
  • Refactored hub height “interpolation” configuration from number | null to boolean and updated hub height settings UI to include a numeric text field.
  • Minor UI text tweak and formatting normalization in GTM init script.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
windwatts-ui/src/utils/turbine.ts Adds resolveHubHeight helper for clamping/snap-to-nearest logic.
windwatts-ui/src/types/Heights.ts Changes interpolation from number | null to boolean.
windwatts-ui/src/constants/hubSettings.ts Updates hub height model config to use boolean interpolation.
windwatts-ui/src/components/settings/LossAssumptionSettings.tsx Minor copy change (punctuation).
windwatts-ui/src/components/settings/HubHeightSettings.tsx Adds hub height text input + updated slider behavior using interpolation boolean.
windwatts-ui/public/gtm-init.js Formatting-only quote/style normalization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread windwatts-ui/src/components/settings/HubHeightSettings.tsx
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.

custom hub height

2 participants