Skip to content

Editables update#3829

Open
idaiv wants to merge 13 commits into
2025.4from
editables-update
Open

Editables update#3829
idaiv wants to merge 13 commits into
2025.4from
editables-update

Conversation

@idaiv

@idaiv idaiv commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Changes in this pull request

Resolves #

Additional info

idaiv and others added 13 commits June 26, 2026 06:10
- Make `buttonText` optional in EditableEmptyPlaceholderProps (prop not rendered by component, missing in stories)
- Extract type definitions from use-form-modal.tsx into form-modal-types.ts to stay under max-lines limit

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Use export…from to re-export ConfigUpdate directly (avoids import-then-re-export anti-pattern)
- Remove redundant if-wrapper around switch in getDropZoneText to reduce cognitive complexity from 16 to 15

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- embed.url-modal.ok-text: OK → Save (translated per language)
- embed.url-modal.warning: new key added
- embed.placeholder: shortened text
- video.placeholder: shortened text
- Added date.placeholder, numeric.placeholder, select.placeholder, multiselect.placeholder

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Extract getElementType as a top-level utility function to remove
its nested-function nesting penalty, bringing component complexity
from 16 to below the 15 allowed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…hasContent) blocks

Two separate if(hasContent) blocks with identical conditions each counted
toward cognitive complexity. Merge into one block (search moved to always-first)
to bring complexity from 16 to 15.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant