Skip to content

Increase override import/export rate step from 0.01 to 0.1#3871

Merged
springfall2008 merged 3 commits intomainfrom
copilot/customize-import-export-step
May 7, 2026
Merged

Increase override import/export rate step from 0.01 to 0.1#3871
springfall2008 merged 3 commits intomainfrom
copilot/customize-import-export-step

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

The up/down arrows in the plan UI's override rate popup incremented by 0.01p, requiring 100 clicks to adjust a rate by 1p — making manual export forcing impractical.

Change

  • web_helper.pyrenderRateCell: Changed the step attribute on the rate <input type="number"> from 0.01 to 0.1.
// Before
html += `<input type="number" id="rate_${dropdownId}" value="${inputValue}" step="0.01">`;

// After
html += `<input type="number" id="rate_${dropdownId}" value="${inputValue}" step="0.1">`;

Each arrow click now moves the rate by 0.1p, so nudging export rate up by 1p takes 10 clicks instead of 100.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • gitlab.com
    • Triggering command: /usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https origin REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Agent-Logs-Url: https://github.com/springfall2008/batpred/sessions/e82421e4-b9c2-41ed-8b81-520b24d6f4f0

Co-authored-by: springfall2008 <48591903+springfall2008@users.noreply.github.com>
Copilot AI changed the title [WIP] Add customizable step for import/export rates adjustment Increase override import/export rate step from 0.01 to 0.1 May 5, 2026
Copilot AI requested a review from springfall2008 May 5, 2026 18:20
@springfall2008 springfall2008 marked this pull request as ready for review May 7, 2026 07:10
Copilot AI review requested due to automatic review settings May 7, 2026 07:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the plan web UI’s manual rate override input to use a larger increment step, making it faster to nudge import/export override rates via the number input spinner controls.

Changes:

  • Increased the <input type="number"> step for override import/export rate from 0.01 to 0.1 in the plan renderer JS.

html += `<div id="${dropdownId}" class="dropdown-content">`;
html += `<label>Override ${type} rate:</label>`;
html += `<input type="number" id="rate_${dropdownId}" value="${inputValue}" step="0.01">`;
html += `<input type="number" id="rate_${dropdownId}" value="${inputValue}" step="0.1">`;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 16f0d65. inputValue is now rounded to 1 decimal place (parseFloat((…).toFixed(1))), so it's always aligned with step="0.1" and browsers won't snap on the first arrow click.

@springfall2008 springfall2008 merged commit 601b760 into main May 7, 2026
1 check passed
@springfall2008 springfall2008 deleted the copilot/customize-import-export-step branch May 7, 2026 08:45
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.

Bug/Feature Req - Manually setting the Import/Export rates via the up/down arrows changes by .01? Could this be customisable?

3 participants