Skip to content

[WIP] Add 2D matrix dropdown form inputs#846

Open
Copilot wants to merge 6 commits intomainfrom
copilot/add-2d-matrix-dropdown-inputs
Open

[WIP] Add 2D matrix dropdown form inputs#846
Copilot wants to merge 6 commits intomainfrom
copilot/add-2d-matrix-dropdown-inputs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 13, 2026

Copilot AI requested review from Copilot and removed request for Copilot April 14, 2026 13:58
@aarongustafson aarongustafson marked this pull request as ready for review April 14, 2026 14:09
Copilot AI review requested due to automatic review settings April 14, 2026 14:09
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

Note

Copilot was unable to run its full agentic suite in this review.

Adds two new “want” entries based on discussion #656, expanding the site’s catalog of proposed HTML form capabilities.

Changes:

  • Add a new want proposing a native “amount”/unit-aware numeric form input.
  • Add a new want proposing a native 2D/matrix dropdown input pattern for paired selections.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
wants/bd9677b9-2a64-4f48-ab7f-4e581e7557ff.md New want describing unit-aware numeric input / canonicalized submission.
wants/18b2eec2-49ad-410f-be86-c20aaac2dfe9.md New want describing a 2D matrix select control for paired options.

type: spec
---

I want a native HTML input type that accepts a numeric value together with a unit, and automatically converts the entered value to a canonical unit for form submission. Currently, `<input type="number">` accepts only a bare number with no unit awareness, forcing authors to either use a separate unit selector or restrict users to a single unit system.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

The proposal relies on a “canonical unit for form submission”, but it’s not clearly defined how authors declare that canonical unit (especially when value is omitted) or whether step/value are intended to implicitly define it. Consider adding a sentence that explicitly defines where the canonical unit comes from (e.g., a dedicated attribute) and what happens when no default value is present.

Copilot uses AI. Check for mistakes.
<input type="amount" value="5 ft 10 in" step="1 cm">
```

The browser would parse the unit attached to `value` and `step`, allow the user to type in any compatible unit (e.g., pounds when the canonical unit is kilograms), and submit the value in the canonical form. Compound measurements like `5 ft 10 in` should also be supported for height, distance, and similar fields.
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

The proposal relies on a “canonical unit for form submission”, but it’s not clearly defined how authors declare that canonical unit (especially when value is omitted) or whether step/value are intended to implicitly define it. Consider adding a sentence that explicitly defines where the canonical unit comes from (e.g., a dedicated attribute) and what happens when no default value is present.

Suggested change
The browser would parse the unit attached to `value` and `step`, allow the user to type in any compatible unit (e.g., pounds when the canonical unit is kilograms), and submit the value in the canonical form. Compound measurements like `5 ft 10 in` should also be supported for height, distance, and similar fields.
The browser would parse the unit attached to `value` and `step`, allow the user to type in any compatible unit (e.g., pounds when the canonical unit is kilograms), and submit the value in the canonical form. Authors should declare that canonical submission unit with a dedicated attribute such as `unit="kg"` or `unit="cm"`; `value` may use any compatible unit as an initial value, and `step` defines only the stepping granularity in its own unit rather than implicitly choosing the submission unit. If `value` is omitted, the control should still use the declared `unit` as the canonical unit for parsing, validation, and form submission. Compound measurements like `5 ft 10 in` should also be supported for height, distance, and similar fields.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 16:17
@aarongustafson
Copy link
Copy Markdown
Member

@copilot please address the feedback

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

---
title: I want 2D matrix dropdown form inputs
date: 2024-01-21T11:00:18.245Z
submitter: Christoph Paper
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

The submitter name appears misspelled. The original submission (issue/discussion #656) lists the submitter as “Christoph Päper”, but this frontmatter has “Christoph Paper”. Please correct the submitter field so attribution matches the original submission.

Suggested change
submitter: Christoph Paper
submitter: Christoph Päper

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 14, 2026

@copilot please address the feedback

Done in 21b8097. Changes made:

  • wants/bd9677b9 (typed unit input): Added an explicit unit attribute to declare the canonical submission unit, clarified that value may use any compatible unit as an initial display value, and that step defines granularity without implying the submission unit. The example now shows <input type="amount" unit="kg" value="10 lb" step="0.5 lb">. Also covers the value-omitted case.

  • wants/18b2eec2 (2D matrix): Already updated to use <select type="matrix"> with standard <option row col> attributes to avoid any custom-element naming confusion.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 18:31
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

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

Comment on lines +12 to +14
- title: I want browsers to localize data like dates and numbers
url: https://webwewant.fyi/wants/59/
type: want
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

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

This related entry links to an internal want page (https://webwewant.fyi/wants/59/) but marks the type as discussion. In this repo, internal want-to-want links use type: want (e.g., wants/5f24adc28dfea402c3830218.md:11). Please change this entry’s type to want so it’s categorized correctly.

Copilot uses AI. Check for mistakes.
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.

I want 2D matrix dropdown form inputs

3 participants