Skip to content

Add visible label to task title input in NewTaskForm#109

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-label-to-task-title-input
Draft

Add visible label to task title input in NewTaskForm#109
Copilot wants to merge 2 commits intomainfrom
copilot/add-label-to-task-title-input

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 27, 2026

The task title field in NewTaskForm.tsx used a raw <input> with only placeholder text — no visible label, no accessible htmlFor association.

Changes

  • NewTaskForm.tsx: Replaced raw <input> with shadcn/ui <Input>, wrapped in a <div> with an associated <Label htmlFor="task-title"> and required indicator, consistent with the pattern in TaskEditDialog.tsx and TaskEditInArchiveDialog.tsx
<div>
  <Label htmlFor="task-title">
    Task Title <span className="text-destructive">*</span>
  </Label>
  <Input
    id="task-title"
    type="text"
    value={title}
    onChange={(e) => setTitle(e.target.value)}
    placeholder="Enter task title"
    required
    autoFocus
  />
</div>

Copilot AI linked an issue Apr 27, 2026 that may be closed by this pull request
1 task
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 27, 2026

Deploying timetrackerpro with  Cloudflare Pages  Cloudflare Pages

Latest commit: d9ba156
Status: ✅  Deploy successful!
Preview URL: https://88776972.timetrackerpro.pages.dev
Branch Preview URL: https://copilot-add-label-to-task-ti.timetrackerpro.pages.dev

View logs

Copilot AI changed the title [WIP] Add visible label for task title input in NewTaskForm Add visible label to task title input in NewTaskForm Apr 27, 2026
Copilot AI requested a review from AdamJ April 27, 2026 14:06
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.

Missing visible label on the task title input

2 participants