Conversation
#656) Agent-Logs-Url: https://github.com/WebWeWant/webwewant.fyi/sessions/7e024e20-0295-466a-99e3-19cea05b4e73 Co-authored-by: aarongustafson <75736+aarongustafson@users.noreply.github.com>
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
| <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. |
There was a problem hiding this comment.
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.
| 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 please address the feedback |
| --- | ||
| title: I want 2D matrix dropdown form inputs | ||
| date: 2024-01-21T11:00:18.245Z | ||
| submitter: Christoph Paper |
There was a problem hiding this comment.
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.
| submitter: Christoph Paper | |
| submitter: Christoph Päper |
Agent-Logs-Url: https://github.com/WebWeWant/webwewant.fyi/sessions/1630312a-d6ec-4c16-a9ce-b2325851dd69 Co-authored-by: aarongustafson <75736+aarongustafson@users.noreply.github.com>
Done in 21b8097. Changes made:
|
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| - title: I want browsers to localize data like dates and numbers | ||
| url: https://webwewant.fyi/wants/59/ | ||
| type: want |
There was a problem hiding this comment.
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.
wants/18b2eec2-49ad-410f-be86-c20aaac2dfe9.md— "I want 2D matrix dropdown form inputs"html,formswants/bd9677b9-2a64-4f48-ab7f-4e581e7557ff.md— "I want typed numeric input fields with units"html,formsamountelement), WHATWG number input spec, CSS Values specnpm run validate-want— both pass