Skip to content

Editables update#3829

Merged
markus-moser merged 13 commits into
2025.4from
editables-update
Jul 3, 2026
Merged

Editables update#3829
markus-moser merged 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

@markus-moser markus-moser added this to the 2025.4.7 milestone Jul 3, 2026
@markus-moser markus-moser merged commit 2167c17 into 2025.4 Jul 3, 2026
1 check passed
@markus-moser markus-moser deleted the editables-update branch July 3, 2026 07:55
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants