You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: disable save button on validation errors + server-side error docs (#69)
* feat: disable save button when validation errors exist and add server-side error docs
- Add `hasErrors` to SaveButtonRenderProps so consumers can disable save on errors
- Add `hasScopeErrors(scopeId)` to SettingsContextValue for scope-level error checks
- Block handleSave internally when scope has validation errors
- Add server-side validation error documentation with examples in Settings.mdx
- Add dedicated ServerSideValidation story demonstrating error flow
- Update all docs and examples to use `disabled={!dirty || hasErrors}`
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: extract ServerSideValidation render into component and escape entities
Fixes ESLint react-hooks/rules-of-hooks and react/no-unescaped-entities errors.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments