Skip to content

Resolve "Validate the PreviewNavigationBar parameters values against their type."

What is in this MR

This MR adds validation to PreviewNavigationBar so that we validate the value against the parameter's type when a parameter's value is changed. If they clash (for now, just if you enter a non-integer value in an integer parameter) then a red border appears around the input.

How to test this MR

  • Create a few page parameters of both types.
  • In the editor, experiment with changing values. If you have an integer parameter and enter text, it will display a red border.
  • Only valid parameter values will persist.

Merge Request Checklist

  • changelog.md has been updated if required.
  • New/updated Premium/Enterprise features are separated correctly in the premium or enterprise folder
  • The latest Chrome and Firefox have been used to test any new frontend features
  • Documentation has been updated
  • Quality Standards are met
  • Performance: tables are still fast with 100k+ rows, 100+ field tables
  • The redoc API pages have been updated for any REST API changes
  • Our custom API docs are updated for changes to endpoints accessed via api tokens
  • The UI/UX has been updated following UI Style Guide

Closes #2187 (closed)

Edited by Peter Evans

Merge request reports