Skip to content

feat(use-field): add use field to textarea, timeinput - #6705

Open
philibea wants to merge 1 commit into
mainfrom
use-field-simple
Open

feat(use-field): add use field to textarea, timeinput#6705
philibea wants to merge 1 commit into
mainfrom
use-field-simple

Conversation

@philibea

Copy link
Copy Markdown
Collaborator

Summary

Type

  • Migration

Summarize concisely:

What is expected?

Migrate TextAreaField, TimeInputField with new hook: useField

@philibea philibea added the enhancement New feature or request label Jul 23, 2026
@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 3546d91

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@ultraviolet/form Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.00%. Comparing base (1fb7b25) to head (3546d91).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6705      +/-   ##
==========================================
- Coverage   91.01%   91.00%   -0.01%     
==========================================
  Files         560      560              
  Lines       10253    10233      -20     
  Branches     3692     3707      +15     
==========================================
- Hits         9332     9313      -19     
+ Misses        921      920       -1     
Files with missing lines Coverage Δ
...ckages/form/src/components/KeyValueField/index.tsx 100.00% <ø> (ø)
...ckages/form/src/components/TextAreaField/index.tsx 100.00% <100.00%> (+7.40%) ⬆️
...kages/form/src/components/TimeInputField/index.tsx 100.00% <100.00%> (ø)
packages/form/src/hooks/useField.tsx 100.00% <ø> (ø)
packages/ui/src/components/Checkbox/index.tsx 100.00% <ø> (ø)
packages/ui/src/components/Pagination/PerPage.tsx 100.00% <100.00%> (ø)
packages/ui/src/components/SelectInput/index.tsx 100.00% <ø> (ø)
packages/ui/src/components/TextArea/index.tsx 93.65% <ø> (ø)
packages/ui/src/components/TimeInput/index.tsx 96.66% <ø> (-0.56%) ⬇️
packages/ui/src/components/UnitInput/index.tsx 98.11% <ø> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a893c89...3546d91. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/ui/src/types.ts Outdated
* Classic prop type where label is a ReactNode and aria-label is a string.
* One or another is required.
*/
export type FormComponentProps = {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

should we add

   * Display an error message under the select bar
   */
  error?: string | boolean

@philibea
philibea force-pushed the use-field-simple branch 5 times, most recently from 206f4e0 to 87ba9e6 Compare July 30, 2026 14:05
Signed-off-by: Alexandre Philibeaux <aphilibeaux@scaleway.com>
const DEFAULT_VALUE = new Date('01/01/2000 11:23:14')

describe('timeInput', () => {
it('renders correctly with base props', () => shouldMatchSnapshot(<TimeInput />))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why did you remove it?

"@ultraviolet/form": patch
---

use new useField hook to TimeInputField, TextAreaField which allow usage of the rhf register api"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
use new useField hook to TimeInputField, TextAreaField which allow usage of the rhf register api"
use new useField hook to TimeInputField, TextAreaField which allow usage of the rhf register api

+ I think it's missing a changeset for the changes you made in ultraviolet ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants