Skip to content

enhancement: Odometer entry - #64

Merged
varunpan merged 1 commit into
varunpan:release/v0.3.1from
Zeromark30:odometer
Jul 2, 2026
Merged

enhancement: Odometer entry#64
varunpan merged 1 commit into
varunpan:release/v0.3.1from
Zeromark30:odometer

Conversation

@Zeromark30

Copy link
Copy Markdown
Contributor

feat(odometer): restrict input to whole numbers and dynamically populate placeholder

  • Added step="1" to enforce native integer validation on the odometer field.
  • Prevented keyboard input of decimal points (. and ,) to block typing decimals.
  • Updated the placeholder to dynamically fall back to the last recorded odometer reading if available.

@Zeromark30
Zeromark30 requested a review from varunpan as a code owner June 29, 2026 01:58
varunpan added a commit that referenced this pull request Jul 2, 2026
The odometer <input> was located via getByPlaceholder('87,432') across 6
specs (21 sites). That couples the tests to placeholder text, which is not
a stable contract — PR #64 makes the placeholder dynamic (state-dependent),
which breaks every one of these locators.

Switch to the field's stable #odometer id so the tests survive placeholder
changes. Behaviour under test is unchanged; all 21 affected tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
varunpan added a commit that referenced this pull request Jul 2, 2026
…or hardening

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@varunpan
varunpan changed the base branch from main to release/v0.3.1 July 2, 2026 12:50
…ate placeholder


- Added `step="1"` to enforce native integer validation on the odometer field.
- Prevented keyboard input of decimal points (`.` and `,`) to block typing decimals.
- Updated the placeholder to dynamically fall back to the last recorded odometer reading if available.
@varunpan
varunpan merged commit 9e1f5f7 into varunpan:release/v0.3.1 Jul 2, 2026
2 checks passed
@varunpan

varunpan commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Looks good. added it to release/v0.3.1 branch. I have some other fixes i want to deploy this in, before i release this release.

varunpan added a commit that referenced this pull request Jul 14, 2026
The odometer <input> was located via getByPlaceholder('87,432') across 6
specs (21 sites). That couples the tests to placeholder text, which is not
a stable contract — PR #64 makes the placeholder dynamic (state-dependent),
which breaks every one of these locators.

Switch to the field's stable #odometer id so the tests survive placeholder
changes. Behaviour under test is unchanged; all 21 affected tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
varunpan added a commit that referenced this pull request Jul 14, 2026
…or hardening

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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