feat: enhance navigation validation by integrating validation checks#4027
Conversation
…in navigation components
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
|
2fa1241
into
feat/16446-navigation-validation



…in navigation components
Description
Returns a function that synchronously checks whether navigation from the current page to a given target page is visually prevented. Navigation is prevented if any page strictly between the current and target page has a
validationOnNavigationconfig AND has actual errors that match that config's mask. This mirrors the check done asynchronously in click handlers, but uses already-computed validation state for synchronous use in render (e.g. disabling buttons).This is also reflected in the navigation component and the customButton component.
Related Issue(s)
Verification/QA
kind/*andbackport*label to this PR for proper release notes grouping