Skip to content

refactor: remove Password and Textarea from InputType enum - #122

Merged
its-mash merged 2 commits into
mainfrom
refactor/remove-password-input-type
Feb 19, 2026
Merged

refactor: remove Password and Textarea from InputType enum#122
its-mash merged 2 commits into
mainfrom
refactor/remove-password-input-type

Conversation

@its-mash

Copy link
Copy Markdown
Member

Summary

  • Remove Password variant from InputType enum — redundant since secret: bool already controls input masking and encryption
  • Remove Textarea variant — was unused
  • Update default-registry.json: 3x "input_type": "password""text" (all have secret: true)
  • Update comment in domain/server.rs

Context

The secret boolean field on InputDefinition already determines:

  • Whether the input renders as masked (password-style)
  • Whether the value gets encrypted in storage

Having a separate password type was redundant. Any input type can be secret.

Test plan

  • Rust compiles clean
  • TypeScript typecheck passes
  • ESLint passes (0 errors, only pre-existing warnings)

Password type is redundant - masking is controlled by the `secret` boolean
field. Textarea was unused. Updated default-registry.json to use "text"
instead of "password" for secret inputs.

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
…ariant

Signed-off-by: Mohammod Al Amin Ashik <maa.ashik00@gmail.com>
@its-mash
its-mash merged commit bd06386 into main Feb 19, 2026
13 checks passed
@its-mash
its-mash deleted the refactor/remove-password-input-type branch February 19, 2026 04:19
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