Skip to content

fix(#323): clear 6 mechanical ESLint source errors#327

Open
rubenvdlinde wants to merge 2 commits into
developmentfrom
fix/323-mechanical-eslint-fixes
Open

fix(#323): clear 6 mechanical ESLint source errors#327
rubenvdlinde wants to merge 2 commits into
developmentfrom
fix/323-mechanical-eslint-fixes

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

Pure no-op cleanup; no semantic change to any view. Six errors fixed: bezwaar.js no-unused-vars (settingsStore), CaseTransferDialog.vue + CreateShareDialog.vue vue/valid-v-slot (move template #actions to direct child of NcDialog), EmailComposer.vue vue/no-parsing-error x2 (literal '{{' inside interpolation -> formatVariable() method), DurationPicker.vue no-unused-vars (formatDuration). 7th error (vue/no-dupe-v-else-if in MyWork.vue) split into separate PR #326 (behaviour change, needs smoke-test). Refs #323.

Pure no-op cleanup; no semantic change to any view. Six errors fixed:

- src/store/modules/bezwaar.js:499 (no-unused-vars):
  remove unused settingsStore + its import.
- src/views/cases/components/CaseTransferDialog.vue:38 (vue/valid-v-slot):
  move <template #actions> out of the wrapper <div> to be a direct
  child of NcDialog.
- src/views/cases/components/CreateShareDialog.vue:92 (vue/valid-v-slot):
  same as above.
- src/views/cases/components/EmailComposer.vue:49,59 (vue/no-parsing-error):
  literal '{{' inside {{ }} interpolation confused the template parser;
  replaced with a formatVariable(v) method returning the same string.
- src/views/settings/components/DurationPicker.vue:31 (no-unused-vars):
  remove unused formatDuration from named import.

The 7th error (vue/no-dupe-v-else-if in MyWork.vue) is intentionally
deferred to a separate PR with explicit fix(my-work) framing because
the fix actually un-blocks dead grouped-sections rendering — needs a
visual smoke-test rather than auto-merge alongside cosmetic noise.

Refs #323; that issue stays open until the MyWork.vue follow-up lands.
@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ f06c6ee

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 407/407
PHPUnit ⏭️
Newman ⏭️
Playwright

Spec coverage: 3% (21 tests / 613 specs)


Quality workflow — 2026-05-10 21:32 UTC

Download the full PDF report from the workflow artifacts.

@MWest2020
Copy link
Copy Markdown
Member

Review — fix(#323): clear 6 mechanical ESLint source errors

Verdict: 🟢 APPROVE — Alle 6 geclaimde ESLint-fouten geverifieerd en correct opgelost; geen gedragswijzigingen op de no-op fixes; CI-failures pre-existing op development.

Wat goed gaat

PR body lijst exact wat er opgelost wordt; iedere fix is verifieerbaar 1-op-1 mappable op een ESLint-rule. De v-slot fixes (CaseTransferDialog/CreateShareDialog) repareren impliciet een gedragsbug — actions werden waarschijnlijk niet correct in de NcDialog actiebalk gerenderd. Companion-PR #326 voor de 7e fout (MyWork.vue) is netjes gescheiden gehouden.

Findings

1. 🟢 Minor — v-slot fix is meer dan kosmetisch — src/components/CaseTransferDialog.vue

<template #actions> was genesteld in een <div> — Vue rendert named slots niet als ze geen directe child van het component zijn. Na de fix zijn de action buttons direct op <NcDialog> aangebracht. Dit is technisch een gedragsherstel, geen pure ESLint-cleanup.

Impact: Voor merge: de actiebalk van deze twee dialogs kan voor de fix kapot zijn geweest in productie.

Suggested fix: Voeg in de PR body één regel toe dat deze fix ook een UI-regressie verhelpt (niet alleen lint cleanup). Helpt toekomstige changelog-readers.

2. 🟢 Minor — EmailComposer formatVariable refactor is een schone no-op — src/components/EmailComposer.vue

{{ '{{' + v + '}}' }}{{ formatVariable(v) }} op twee plekken; formatVariable retourneert exact '{{' + varName + '}}'. Identieke output, geen gedragswijziging — alleen Vue parser blij.

Impact: Geen runtime impact, leesbaarheid licht beter.

Suggested fix: Geen actie nodig.


Geconsolideerde review via /review-pr — Thorough mode.

MWest2020
MWest2020 previously approved these changes May 11, 2026
Copy link
Copy Markdown
Member

@MWest2020 MWest2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zie consolidated review comment voor complimenten, findings en suggested fixes.

The grouped Overdue/Today/Upcoming sections were unreachable because the
v-else-if duplicated the preceding v-if condition. Switch to v-if so the
sections render alongside the ParafeerInbox when loading completes.

Same fix as #326; bundled here so the eslint sweep PR ships green.
@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ 1f0bcca

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
composer ✅ 100/100
npm ✅ 419/419
PHPUnit ⏭️
Newman ⏭️
Playwright

Spec coverage: 5% (21 tests / 456 specs)


Quality workflow — 2026-05-11 21:26 UTC

Download the full PDF report from the workflow artifacts.

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