Skip to content

fix(my-work): un-block grouped Overdue/Today/Upcoming sections#326

Closed
rubenvdlinde wants to merge 1 commit into
developmentfrom
fix/my-work-grouped-sections-rendering
Closed

fix(my-work): un-block grouped Overdue/Today/Upcoming sections#326
rubenvdlinde wants to merge 1 commit into
developmentfrom
fix/my-work-grouped-sections-rendering

Conversation

@rubenvdlinde
Copy link
Copy Markdown
Contributor

Behaviour change — needs smoke-test. src/views/MyWork.vue had a dead v-else-if branch that prevented Overdue/Today/Upcoming sections from rendering. Git history (commit 5847d05) shows those sections were the original intent. Companion to fix/323-mechanical-eslint-fixes (cosmetic-only PR). Smoke-test: load /apps/procest's My Work view; confirm grouped sections render alongside ParafeerInbox.

src/views/MyWork.vue had a dead branch `v-else-if="!loading"` that
could never execute — `v-else-if` only fires when the previous
sibling's condition is false, but the sibling chain fell through
ParafeerInbox to a guard that always rendered. Result: the grouped
Overdue / Today / Upcoming sections of the My Work view never rendered
in production.

Git history (commit 5847d05) shows those sections were the original
intent — the typo'd `v-else-if` slipped in when ParafeerInbox was
inserted into the chain.

Changing the directive to `v-if="!loading"` makes the grouped
sections render alongside ParafeerInbox per the original design.

This is a behaviour change (visible UI difference). A manual smoke-test
of /procest's My Work view post-merge confirms whether the restored
sections look right vs the regressed state.

Surfaced by #323 ESLint sweep (vue/no-dupe-v-else-if). Companion PR
fix(#323): clear 6 mechanical ESLint source errors handles the other
6 cosmetic fixes.
@github-actions
Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/procest @ d4810f5

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:31 UTC

Download the full PDF report from the workflow artifacts.

@MWest2020
Copy link
Copy Markdown
Member

Review — fix(my-work): un-block grouped Overdue/Today/Upcoming sections

Verdict: 🟢 APPROVE — One-liner fix is correct en voldoende; v-else-if naar v-if herstelt de grouped sections; CI-failures (incl. Playwright) zijn allemaal pre-existing op development (bevestigd via procest#327 review).

Wat goed gaat

Uitstekende commit message met root-cause analyse + verwijzing naar de originele commit (5847d05) waar het bedoelde gedrag bestond. De fix is minimaal en chirurgisch: één teken wijziging (v-else-ifv-if), exact wat nodig is. Companion-relatie met #327 voor de bredere ESLint cleanup is netjes gescheiden.

Findings

1. 🟡 Concern — Smoke-test handmatig — geen Playwright-spec voor de grouped sections — src/views/MyWork.vue

De PR herstelt zichtbaar UI-gedrag (Overdue/Today/Upcoming sections) maar er is geen Playwright-test die bevestigt dat deze secties aanwezig zijn. De fix kan in de toekomst silent teruggedraaid worden zonder dat CI dit detecteert.

Impact: Regressie-risico op een view die voor gebruikers belangrijk is.

Suggested fix: Voeg een Playwright smoke-test toe die /apps/procest/my-work laadt en checkt dat ParafeerInbox + minstens één van de section-headers (my-work__section-header--overdue/today/upcoming) zichtbaar is. Kan ook als follow-up — niet blokkerend voor deze fix.

2. 🟢 Minor — CI Playwright failures zijn pre-existing infrastructuur

20/21 Playwright tests falen op sidebar-navigatie — bevestigd in de companion-PR #327 review dat deze failures identiek bestaan op development HEAD. Niet geïntroduceerd door deze PR.

Impact: Geen voor deze PR; wel een platform-issue dat aandacht verdient.

Suggested fix: Aparte tracking-issue voor de Playwright sidebar-navigatie instability.


Geconsolideerde review via /review-pr — Thorough mode.

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.

rubenvdlinde added a commit that referenced this pull request May 11, 2026
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.
@rubenvdlinde
Copy link
Copy Markdown
Contributor Author

Superseded by #327 — same single-line MyWork.vue fix (v-else-ifv-if) is now committed on the eslint-sweep branch alongside the 5 baseline lint clean-ups. Closing to avoid two PRs racing on the same line.

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