Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

fix(procest): dashboard + header/PHPCS/i18n cleanup (re-do of #272)#489

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/dashboard-header-phpcs-i18n
May 19, 2026
Merged

fix(procest): dashboard + header/PHPCS/i18n cleanup (re-do of #272)#489
rubenvdlinde merged 1 commit into
developmentfrom
fix/dashboard-header-phpcs-i18n

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

(re-opened of #420 — accidentally closed by harness force-push; same branch, same content)

Summary

Re-implements the still-relevant parts of #272 cleanly against current development. The original branch (fix/header-info-email-phpcs) had 40+ merge conflicts with development after the json-manifest migration and couldn't be rebased — this PR supersedes #272.

What was re-applied

  • Dashboard widgets — removed the card-in-card framing (background / border / border-radius / fixed padding) and inner max-height scrollbars from the DeadlineAlerts, StalledCases and TaskDueReminders widgets so they render cleanly inside the manifest dashboard tiles (now a simple flex column with gap).
  • i18n — wrapped the 'Unknown' fallback labels in src/utils/dashboardHelpers.js and src/utils/doorlooptijdHelpers.js with t('procest', …); added the missing dashboard translation keys (All cases active, No task reminders, SLA Compliance, View all deadline alerts) to l10n/{en,nl}.{js,json} with human-readable Dutch.
  • PHPCS / l10n hygiene — dropped four malformed extraction-artifact keys ("Case created with type \", "Case type \", "Status changed from \", "Status changed to \") that actually left l10n/en.js syntactically broken on development; fix: dashboard cleanup + header/PHPCS/i18n improvements #272 removed these too.
  • Headers — fixed the @author email typo dev@conductio.nlinfo@conduction.nl across lib/ and appinfo/routes.php (matches appinfo/info.xml).

What was already resolved by the manifest migration (intentionally not re-applied)

  • src/navigation/MainMenu.vue and src/views/Dashboard.vue no longer exist — the nav-nesting fix (Map / Voorstellen) and the duplicate-widget DEFAULT_LAYOUT concatenation fix are moot.
  • The "Map" / "Case Map" / "Cases by status" / "Open cases" / "Stalled Cases" / "Task Due Reminders" / "Deadline Alerts" / "No items found" / "No SLA targets" / "Work Queue" keys from fix: dashboard cleanup + header/PHPCS/i18n improvements #272 are either already present or not referenced by the current source, so they were skipped.
  • The blanket phpcbf reformat from fix: dashboard cleanup + header/PHPCS/i18n improvements #272 (~100 files of whitespace churn) is out of scope — procest still carries a pre-existing PHPCS/ESLint/Stylelint baseline tracked separately, and a full reformat would conflict heavily with concurrent work.

Verification

  • vendor/bin/phpcs on the touched PHP files: no new errors (the pre-existing 118-error baseline on these files is unchanged before/after).
  • eslint on the touched .js / .vue files: clean.
  • l10n/{en,nl}.{js,json}: node --check + python3 -m json.tool all pass (and l10n/en.js is no longer syntactically broken).
  • src/manifest.json untouched.

Follow-ups (deferred)

  • procest's overall translation files are missing ~600 source keys vs. the current code — full l10n regeneration is a separate task.
  • Pre-existing PHPCS baseline (phpcbf can auto-fix ~80 violations in touched-area files) — separate cleanup PR.
  • stylelint config references a missing stylelint-config-recommended-scss dep on development — separate fix.

@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ faaa158

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

Coverage: 0% (0/81 statements)


Quality workflow — 2026-05-19 03:33 UTC

Download the full PDF report from the workflow artifacts.

…do of #272)

Re-implements the still-relevant parts of #272 against current development
(after the json-manifest migration):

- Dashboard: remove card-in-card framing (background/border/border-radius)
  and inner scrollbars from the DeadlineAlerts / StalledCases /
  TaskDueReminders widgets so they sit cleanly inside the manifest
  dashboard tiles.
- i18n: wrap the "Unknown" fallback labels in dashboardHelpers.js and
  doorlooptijdHelpers.js with t('procest', ...); add the missing dashboard
  translation keys (All cases active, No task reminders, SLA Compliance,
  View all deadline alerts) to l10n/{en,nl}.{js,json} with Dutch
  translations; drop four malformed extraction-artifact keys
  ("Case created with type \", "Case type \", "Status changed from/to \")
  that left l10n/en.js syntactically broken.
- Headers: fix the @author email typo (dev@conductio.nl -> info@conduction.nl)
  in lib/ and appinfo/routes.php.

Parts of #272 that are now obsolete (MainMenu.vue / Dashboard.vue nav and
DEFAULT_LAYOUT changes, the duplicate-widget DEFAULT_LAYOUT fix, the
"Map"/"Case Map" nav keys) were already resolved by the manifest migration
and are intentionally not re-applied. The blanket phpcbf reformat from #272
is left out as out-of-scope; the codebase still has a pre-existing PHPCS
baseline tracked separately.
@rubenvdlinde rubenvdlinde force-pushed the fix/dashboard-header-phpcs-i18n branch from 30900f4 to 2795c77 Compare May 19, 2026 03:45
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ 18f4782

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

Coverage: 0% (0/81 statements)


Quality workflow — 2026-05-19 03:51 UTC

Download the full PDF report from the workflow artifacts.

@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ f916af3

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

Coverage: 0% (0/81 statements)


Quality workflow — 2026-05-19 04:09 UTC

Download the full PDF report from the workflow artifacts.

@rubenvdlinde rubenvdlinde merged commit 6e2ecf4 into development May 19, 2026
26 checks passed
@rubenvdlinde rubenvdlinde deleted the fix/dashboard-header-phpcs-i18n branch May 19, 2026 05:02
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.

1 participant