Skip to content

feat(form): add password, hint, placeholder, and switch field types - #284

Open
philtk79 wants to merge 3 commits into
openmfp:mainfrom
philtk79:feat/form-password-hints-switch
Open

feat(form): add password, hint, placeholder, and switch field types#284
philtk79 wants to merge 3 commits into
openmfp:mainfrom
philtk79:feat/form-password-hints-switch

Conversation

@philtk79

Copy link
Copy Markdown

Summary

  • Add Password, Switch, hint, placeholder, and writeOnly support to DeclarativeForm for richer create/edit flows (e.g. OIDC secrets, boolean toggles, help text).
  • Align switch fieldChange semantics with text/select inputs, render switch validation errors below the control, and deduplicate hint markup.
  • Document new field types in docs/declarative-form.md and docs/test-ids.md, expand Storybook stories, and add interaction/coercion tests (746 passing).

Test plan

  • npm test — 746 tests passing
  • Storybook: mkdir public && npm run storybook → Declarative UI / DeclarativeForm → AllFieldTypes, WithPassword, WithSwitch, WithHint
  • Verify password input masks value, switch toggles and submits boolean, hints render below fields
  • Confirm writeOnly is passed through as host metadata (no form-side enforcement)

Made with Cursor

philtk79 and others added 3 commits August 31, 2026 17:05
Extend DeclarativeForm with inputType Password/Switch, optional hints and
placeholders, and writeOnly metadata for host-side secret handling.
Document new field types, align switch fieldChange with text inputs,
add switch error display, expand tests and Storybook stories, and note
that Storybook requires a local public/ directory.

Co-authored-by: Cursor <cursoragent@cursor.com>
State that public/ must be created locally without spelling out the mkdir command.

Co-authored-by: Cursor <cursoragent@cursor.com>
@philtk79
philtk79 requested review from a team as code owners August 31, 2026 16:33
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1d37938c-2c72-4eb8-ba19-3741bca88558


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant