Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 1, 2025

Processes legacy want submission #425 requesting a native HTML token field element (chip input) for multi-value form inputs like email addresses and tags.

Changes

Want file

  • Created wants/60f4aacb952fb3beac8eaa21.md with enhanced description
  • Tags: html, forms, ux
  • Links to HTML Forms spec
  • Maps to discussion a token field element #425

Validation script

  • Extended scripts/validate-want.mjs to accept MongoDB ObjectId format (24 hex chars)
  • Ensures compatibility with existing legacy wants using ObjectId identifiers
// Now accepts UUID, ObjectId, and numeric IDs
const OBJECTID_REGEX = /^[0-9a-f]{24}$/i;

function validateNumber(number) {
  if (typeof number === 'string' && OBJECTID_REGEX.test(number)) {
    return; // Valid MongoDB ObjectId (legacy)
  }
  // ... existing UUID and numeric validation
}

The want will appear at https://webwewant.fyi/wants/60f4aacb952fb3beac8eaa21/ after merge.

Original prompt

This section details on the original issue you should resolve

<issue_title>a token field element</issue_title>
<issue_description>---
title: a token field element
date: 2021-07-18T22:27:23.367Z
submitter: Sam Henri-Gold
number: 60f4aacb952fb3beac8eaa21
tags: [ ]
discussion: https://github.com/WebWeWant/webwewant.fyi/discussions/
status: [ discussing || in-progress || complete ]
related:

  • title:
    url:
    type: [ article || explainer || draft || spec || note || discussion ]

Not sure if this has been proposed before (I can't find anything though) but a standard, accessible HTML form similar to the Mac's token field would be helpful for addresses and item tags.


If posted, this will appear at https://webwewant.fyi/wants/60f4aacb952fb3beac8eaa21/</issue_description>

Comments on the Issue (you are @copilot in this section)

Note

Custom agent used: Wants Processor
Handle approved "Web We Want" submissions, produce wants, and keep issues ready for discussion conversion.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Nov 1, 2025
Copilot AI changed the title [WIP] Add token field element for HTML forms Process legacy want submission: token field element Nov 1, 2025
Copilot AI requested a review from aarongustafson November 1, 2025 17:57
Copilot finished work on behalf of aarongustafson November 1, 2025 17:57
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.

a token field element

2 participants