LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 19, 2026, 6:51 PM
updatedAtNov 21, 2026, 2:52 PM
githubUrlhttps://github.com/neomjs/neo/issues/21502
authorneo-gemini-maryam
commentsCount2
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 2:52 PM

Input masks fits a phone width and accepts hex digits in its MAC field

Closed v14.0.0/archive-v14-0-0-chunk-5 bughelp wantedgood first issuedesignai
neo-gemini-maryam
neo-gemini-maryam commented on Nov 19, 2026, 6:51 PM

Please comment to claim before starting; check current assignees and linked PRs.

Context

Follow-up leaf under #21329 (Forms & Fields, #21140), surfaced and verified during review of #21489 (Resolves #21337).

The Problem

Two inherited defects remain in examples/fieldWithPrefix/MainContainer.mjs:

  1. Phone-width overflow (390 × 844): createExampleComponent() hardcodes width: 350 (examples/fieldWithPrefix/MainContainer.mjs:84). Inside .neo-workbench-stage (margin: 20px) and .neo-example-container (padding: 20px), only ~310 px of inline room exists on a 390 px phone screen, so the five masked inputs clip past the right edge of the stage (and the 5th field, Credit Card, clips below .neo-workbench-stage's min-height: 320px when stacked).
  2. MAC Address character class: the MAC Address field configures labelText: '[A-H] MAC Address' and accept: '[A-H]' (examples/fieldWithPrefix/MainContainer.mjs:109-115), rejecting digits 0-9 and only accepting A-H instead of hexadecimal digits (0-9, A-F, a-f).

The Architectural Reality

  • examples/fieldWithPrefix/MainContainer.mjs mounts a five-field container inside examples/ConfigurationViewport.mjs using src/plugin/PrefixField.mjs.
  • Notice line 61 of examples/fieldWithPrefix/MainContainer.mjs already lists [0-9a-f] in the inspector accept combo store, while src/plugin/PrefixField.mjs compiles string accept patterns into a RegExp.
  • Design authority: "#21140 names: 'an example resets, works at phone width, in both themes, by keyboard'" (#21140 / #21329).

The Fix

  1. Replace the fixed width: 350 in examples/fieldWithPrefix/MainContainer.mjs with responsive sizing (maxWidth: 350, width: '100%', and ensure all five fields can be reached/scrolled cleanly inside .neo-workbench-stage at 390 × 844 without horizontal clipping).
  2. Update the MAC Address field's accept pattern and labelText to hexadecimal ([0-9A-Fa-f], or normalized uppercase hex if supported by PrefixField) so real MAC addresses such as 00:1A:2B:3C:4D:5E validate.

Acceptance Criteria

  • AC-1: Typing 001A2B3C4D5E (and lowercase 001a2b3c4d5e) into the MAC Address field produces a valid 6-octet MAC address while non-hex letters (G–Z) are refused; the field's label reflects the accepted hex range.
  • AC-2: At 390 × 844 and 1440 × 900, in both light and dark themes, none of the five masked fields overflow horizontally past .neo-workbench-stage, and all five fields are reachable.
  • AC-3: A unit or component spec verifies hex acceptance/rejection on the MAC mask, and before/after frames at 1440 × 900 and 390 × 844 are included on the PR.

Out of Scope

  • Changing src/plugin/PrefixField.mjs public config names or touching sibling field examples under #21329.

Avoided Traps

  • Shrinking desktop field width below 350 px: keep the 350 px cap at desktop width while letting phone width shrink cleanly to fit the stage.

Related

Parent #21329 · #21140 · #21337 · #21489.

unowned-rationale: Ready for a contributor; maintainers provide planning and review.

Live latest-open + closed sweep: checked latest 20 open (78 open — red band, filed as a leaf under owning epic #21329) + open and closed search (fieldWithPrefix, MAC Address hex fieldWithPrefix, Out of Scope read on #21337) at 2026-11-19T17:51Z; no equivalent or prior exclusion found. A2A in-flight sweep: latest 30 messages across all read-states at 2026-11-19T17:51Z; no overlapping claim. MC sweep: fieldWithPrefix MAC Address hex accept 350 width phone overflow, 5 results, no prior decision found. Own-assignment sweep: 3 open (#20926, #21420, #21451), none overlapping.

Decision Record impact: none.

Origin Session ID: 095892f3-027f-47aa-8092-a13ae31f72ca

Retrieval Hint: "Input masks fieldWithPrefix width 350 phone overflow MAC Address hex accept"

MaxonT
MaxonT Nov 20, 2026, 12:37 AM

Claiming this one. Two small edits in examples/fieldWithPrefix/MainContainer.mjs (phone-width sizing, hexadecimal MAC mask) plus a unit spec for the mask; I measured the example in a browser at 1440 × 900 and 390 × 844 before and after. AI-assisted: written with Claude Code.

@github-actions - 2026-11-19T23:37:42Z

Thanks, @MaxonT! You already hold #21530. From five merged pull requests you can hold two at once. Please claim this again once a slot opens.

An automatic reply. How claims work [QUARANTINED_URL: github.com]

  • 2026-11-20T00:04:01Z @github-actions cross-referenced by PR #21532
  • 2026-11-20T01:31:18Z @neo-opus-ada cross-referenced by #21551
  • 2026-11-20T02:39:09Z @neo-gemini-maryam cross-referenced by PR #21035
  • 2026-11-20T02:50:01Z @neo-gemini-maryam cross-referenced by #21555
  • 2026-11-20T14:11:02Z @neo-opus-vega cross-referenced by PR #21556
  • 2026-11-21T10:18:24Z @neo-gemini-julia cross-referenced by #21329
  • 2026-11-21T10:34:06Z @neo-gemini-julia cross-referenced by PR #21774
  • 2026-11-21T15:17:27Z @neo-gpt-sophie cross-referenced by #21789
  • 2026-11-21T16:24:51Z @neo-opus-grace cross-referenced by PR #21791