Skip to content

master -> v8#1400

Closed
mathuo wants to merge 5 commits into
v8-branchfrom
master
Closed

master -> v8#1400
mathuo wants to merge 5 commits into
v8-branchfrom
master

Conversation

@mathuo

@mathuo mathuo commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Description

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / cleanup
  • Build / CI / tooling

Affected packages

  • dockview-core
  • dockview (vanilla JS)
  • dockview-react
  • dockview-vue
  • dockview-angular
  • docs

How to test

Checklist

  • yarn lint:fix passes
  • yarn format passes
  • npm run gen has been run and generated files are up to date
  • yarn test passes
  • I have added or updated tests where applicable
  • Breaking changes are documented

claude and others added 5 commits July 3, 2026 19:17
Two MEDIUM reliability issues on new code were holding
`new_reliability_rating` at C on master:

- css:S8776 (_space-mixin.scss:30) "Missing scoping root" — the explicit
  `&` had no style-rule parent inside the @mixin. Drop it; a bare nested
  `.dv-dockview` compiles to the identical descendant selector (verified:
  compiled CSS is byte-identical) and matches the sibling selectors.
- typescript:S7737 (dockviewComponent.ts removePanel/_doRemovePanel) — object
  literal used as a parameter default. Make `options` optional and apply the
  `removeEmptyGroup` default in the body; `_doRemovePanel` (single caller)
  now takes required options. Behaviour is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NiZ9eADKvMUzPp7JLa6cXy
fix: resolve new-code reliability issues failing the quality gate
Address low-risk, behaviour-preserving code smells:

- S7762: use childNode.remove() instead of parentNode.removeChild(childNode)
- S6582: prefer optional chaining over `a && a.b` guards

Skipped the S7747 (unnecessary Array.from) reports: each `[...collection]`
is a deliberate defensive copy because the loop body mutates the collection
being iterated. Also left the CRITICAL/BLOCKER buckets untouched.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B6tAi449PHv5hbMSyhtxMk
…7735)

The optional-chaining rewrite left an if/else with a negated condition.
Flip to the positive `=== 'svg'` form and swap the branches so both
S6582 (optional chaining) and S7735 (no negated condition) are satisfied.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B6tAi449PHv5hbMSyhtxMk
chore: resolve safe SonarCloud maintainability issues (S6582, S7762)
@mathuo mathuo closed this Jul 5, 2026
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.

2 participants