Skip to content

Commit

Permalink
Make char limits on result name and category on set_run_result action…
Browse files Browse the repository at this point in the history
…s be consistent with routers
  • Loading branch information
rowanseymour committed Dec 2, 2024
1 parent 3adaf44 commit 137f986
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export default class SetRunResultForm extends React.PureComponent<
onChange={this.handleValueUpdate}
entry={this.state.value}
autocomplete={true}
maxLength={64}
helpText={i18n.t(
'forms.result_value_help',
'The value to save for this result or empty to clears it. You can use expressions, for example: @(title(input))'
Expand All @@ -173,7 +174,7 @@ export default class SetRunResultForm extends React.PureComponent<
onChange={this.handleCategoryUpdate}
entry={this.state.category}
autocomplete={false}
maxLength={128}
maxLength={36}
helpText={i18n.t(
'forms.result_category_help',
"An optional category for your result. For age, the value might be 17, but the category might be 'Young Adult'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ exports[`SetRunResultForm render should render 1`] = `
}
}
helpText="The value to save for this result or empty to clears it. You can use expressions, for example: @(title(input))"
maxLength={64}
name="Value"
onChange={[Function]}
showLabel={true}
Expand All @@ -94,7 +95,7 @@ exports[`SetRunResultForm render should render 1`] = `
}
}
helpText="An optional category for your result. For age, the value might be 17, but the category might be 'Young Adult'"
maxLength={128}
maxLength={36}
name="Category"
onChange={[Function]}
placeholder="Optional"
Expand Down

0 comments on commit 137f986

Please sign in to comment.