Skip to content

fix: step creation#182

Merged
gusfcarvalho merged 1 commit intomainfrom
fix-step-creation
Feb 18, 2026
Merged

fix: step creation#182
gusfcarvalho merged 1 commit intomainfrom
fix-step-creation

Conversation

@gusfcarvalho
Copy link
Contributor

No description provided.

Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
Copilot AI review requested due to automatic review settings February 18, 2026 11:43
@gusfcarvalho gusfcarvalho enabled auto-merge (squash) February 18, 2026 11:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in step creation where native HTML number inputs can return numeric values instead of strings, causing a runtime error when .trim() is called on them.

Changes:

  • Updated parseGracePeriodInput to accept string | number | null | undefined and normalize inputs internally
  • Fixed StepDefinitionForm.vue to normalize gracePeriodDaysInput.value before using it
  • Added test coverage for numeric inputs

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/views/workflows/partials/StepDefinitionForm.vue Normalizes gracePeriodDaysInput value to string before validation to handle numeric values from number input
src/utils/workflows.ts Updated parseGracePeriodInput to accept multiple types and normalize internally
src/utils/workflows.spec.ts Added tests for numeric inputs to ensure they are handled correctly

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gusfcarvalho gusfcarvalho merged commit fa93665 into main Feb 18, 2026
9 checks passed
@gusfcarvalho gusfcarvalho deleted the fix-step-creation branch February 18, 2026 12:00
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.

2 participants