Skip to content

feat(core+home+tasks): config-driven nav filter + statistics dynamic guard + haloCount prop + save-on-action#4239

Merged
PierreBrisorgueil merged 1 commit into
masterfrom
feat/promote-home-tasks-nav-config
Jun 3, 2026
Merged

feat(core+home+tasks): config-driven nav filter + statistics dynamic guard + haloCount prop + save-on-action#4239
PierreBrisorgueil merged 1 commit into
masterfrom
feat/promote-home-tasks-nav-config

Conversation

@PierreBrisorgueil
Copy link
Copy Markdown
Collaborator

Summary

Promotes 4 generic improvements originally developed in comes-io/trawl_vue back up to devkit. All downstream projects will absorb these via their next /update-stack run.

Tracked under infra#38 (trawl→devkit drift cleanup). Closes #4238.

Changes

  • T3 — Config-driven nav filter (core/stores/core.store.js): refreshNav() now checks config.modules?.[i.name]?.display before meta.display. A downstream can hide a module's nav entry via config.modules.X.display = false without altering router meta.

  • T4 — statistics.dynamic guard (home/views/home.view.vue): created() skips homeStore.getStatistics() when config.home.statistics.dynamic === false. Avoids needless API calls for downstreams with static stats.

  • T5 — haloCount prop (home/components/home.statistics.component.vue + home.blur.background.component.vue): New numeric prop (1–5, default 4/5) to control how many animated halos render. Lower = cheaper. homeBlurBackgroundComponent uses v-if per halo.

  • T6 — Save-on-action fix (tasks/views/task.view.vue): Removes watch: { task: { deep: true } }. Sets this.save = true in the title and description computed setters instead — dirty-detection now only fires on genuine user edits, not programmatic resets like getTask().

Tests

  • core.store.unit.tests.js — 4 new T3 assertions (config.modules display override)
  • home.view.unit.tests.jsnew file, 6 T4 assertions (statistics.dynamic guard)
  • home.statistics.component.unit.tests.js — 3 new T5 assertions (haloCount prop + forwarding)
  • task.view.unit.tests.js — 4 new T6 assertions (save-on-action, no watch block)

Test delta vs baseline: +38 passing, 0 new failures. Lint: clean.

References

…stream

T3: Add config.modules[name].display override in core.store.js refreshNav() so
    downstream projects can hide nav entries via config without touching meta.display.
T4: Skip homeStore.getStatistics() in home.view.vue created() when
    config.home.statistics.dynamic === false — avoids unnecessary API calls.
T5: Add haloCount prop (1–5, default 4) to home.statistics.component.vue and
    home.blur.background.component.vue — lets downstreams trade visual richness for perf.
T6: Remove deep watch:{task} from task.view.vue; set this.save=true in title/description
    computed setters so dirty-detection fires only on user-triggered edits.

Tests: core.store (4 T3), home.view (6 T4, new file), home.statistics (3 T5), task.view (4 T6).
Lint: clean. Test delta: +38 passing, 0 new failures vs baseline.

Closes #4238. Partially closes pierreb-projects/infra#38.
Copilot AI review requested due to automatic review settings June 3, 2026 12:32
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

Warning

Review limit reached

@PierreBrisorgueil, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 50 minutes and 40 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e4ffa95b-e715-490e-9233-5b974bc012f5

📥 Commits

Reviewing files that changed from the base of the PR and between 8e0be0f and 8a1df6c.

📒 Files selected for processing (9)
  • src/modules/core/stores/core.store.js
  • src/modules/core/tests/core.store.unit.tests.js
  • src/modules/home/components/home.statistics.component.vue
  • src/modules/home/components/utils/home.blur.background.component.vue
  • src/modules/home/tests/home.statistics.component.unit.tests.js
  • src/modules/home/tests/home.view.unit.tests.js
  • src/modules/home/views/home.view.vue
  • src/modules/tasks/tests/task.view.unit.tests.js
  • src/modules/tasks/views/task.view.vue
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/promote-home-tasks-nav-config

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.57%. Comparing base (0560aab) to head (8a1df6c).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4239   +/-   ##
=======================================
  Coverage   99.56%   99.57%           
=======================================
  Files          31       31           
  Lines        1162     1163    +1     
  Branches      329      329           
=======================================
+ Hits         1157     1158    +1     
  Misses          5        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PierreBrisorgueil PierreBrisorgueil merged commit a00caa5 into master Jun 3, 2026
8 checks passed
@PierreBrisorgueil PierreBrisorgueil deleted the feat/promote-home-tasks-nav-config branch June 3, 2026 12:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR promotes four downstream-proven improvements into the devkit so all stack consumers inherit them on the next /update-stack: config-driven navigation filtering, a config guard for dynamic statistics fetching, a performance knob for blur halo rendering, and more precise “dirty” detection in the task editor.

Changes:

  • Add config.modules?.[route.name]?.display === false override in coreStore.refreshNav() to hide module nav entries without router meta edits.
  • Skip homeStore.getStatistics() when config.home.statistics.dynamic === false to avoid unnecessary API calls for static stats deployments.
  • Add haloCount prop plumbing to reduce the number of animated blur halos rendered (with accompanying unit tests).
  • Remove deep task watcher in task.view.vue and set save=true only on user edits (title/description setters), with unit test coverage.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/modules/core/stores/core.store.js Adds config-based module display override during nav rebuild.
src/modules/core/tests/core.store.unit.tests.js Adds unit tests covering config.modules[route].display behavior in nav filtering.
src/modules/home/views/home.view.vue Adds statistics.dynamic === false guard around statistics fetching.
src/modules/home/tests/home.view.unit.tests.js New unit tests verifying the statistics dynamic guard and articles/news behavior.
src/modules/home/components/home.statistics.component.vue Adds haloCount prop and forwards it to blur background wrapper.
src/modules/home/tests/home.statistics.component.unit.tests.js Extends tests to validate haloCount default/forwarding/accepted range.
src/modules/home/components/utils/home.blur.background.component.vue Adds haloCount prop and conditionally renders halo layers to reduce cost.
src/modules/tasks/views/task.view.vue Replaces deep task watcher with save-on-user-edit via computed setters.
src/modules/tasks/tests/task.view.unit.tests.js Adds tests ensuring save toggles only on user edits and watcher removal.

Comment on lines +94 to +99
// Number of animated halos to render (1..5). Lower = cheaper.
haloCount: {
type: Number,
default: 5,
validator: (v) => v >= 1 && v <= 5,
},
Comment on lines +148 to +153
// For blur variant - number of animated halos (1..5). Lower = cheaper.
haloCount: {
type: Number,
default: 4,
validator: (v) => v >= 1 && v <= 5,
},
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.

feat(core+home+tasks): promote 4 generic improvements from trawl downstream

2 participants