Skip to content

[6827] Pinia Task 10 - product-expert-operator-agent #6885

Open
n-lark wants to merge 7 commits into6826-pinia-task-9-product-expert-ff-agentfrom
6827-pinia-task-10-product-expert-operator-agent
Open

[6827] Pinia Task 10 - product-expert-operator-agent #6885
n-lark wants to merge 7 commits into6826-pinia-task-9-product-expert-ff-agentfrom
6827-pinia-task-10-product-expert-operator-agent

Conversation

@n-lark
Copy link
Contributor

@n-lark n-lark commented Mar 17, 2026

Description

See details here.

⚠️ This is cut from 6826-pinia-task-9-product-expert-ff-agent to daisy chain.

No UI test plan required for this task.

The product-expert-operator-agent Pinia store has no direct component consumers — all access goes through the parent product/expert Vuex module, which remains unchanged. There is nothing new visible in the UI as a result of this PR.

The only user-facing behaviour to verify is:

  • Login — no console errors on page load
  • Logout — useProductExpertOperatorAgentStore().$reset() fires cleanly; no console errors

All store logic (state initialisation, reset(), setSessionCheckTimer(), setSelectedCapabilities(), getCapabilities(), and the capabilities getter) is covered by the 8 unit tests in test/unit/frontend/stores/product-expert-operator-agent.spec.js.

Related Issue(s)

Resolves #6827

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

@n-lark n-lark self-assigned this Mar 17, 2026
@n-lark n-lark requested a review from cstns March 17, 2026 16:51
@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.62%. Comparing base (027c31c) to head (80ba977).

Additional details and impacted files
@@                            Coverage Diff                             @@
##           6826-pinia-task-9-product-expert-ff-agent    #6885   +/-   ##
==========================================================================
  Coverage                                      76.62%   76.62%           
==========================================================================
  Files                                            399      399           
  Lines                                          20165    20165           
  Branches                                        4856     4856           
==========================================================================
  Hits                                           15452    15452           
  Misses                                          4713     4713           
Flag Coverage Δ
backend 76.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@n-lark n-lark force-pushed the 6827-pinia-task-10-product-expert-operator-agent branch from 59a9a5a to 609fccb Compare March 17, 2026 17:21
@n-lark n-lark changed the base branch from main to 6826-pinia-task-9-product-expert-ff-agent March 17, 2026 17:21
@n-lark n-lark force-pushed the 6826-pinia-task-9-product-expert-ff-agent branch from 3101c53 to 1618597 Compare March 17, 2026 17:33
@n-lark n-lark force-pushed the 6827-pinia-task-10-product-expert-operator-agent branch from 609fccb to dc99961 Compare March 17, 2026 17:39
n-lark added 2 commits March 17, 2026 12:51
…-ff-agent' into 6827-pinia-task-10-product-expert-operator-agent

merged
Copy link
Contributor

@cstns cstns left a comment

Choose a reason for hiding this comment

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

Both the ff-agent and operator stores are used intensively within the expert store dynamically, wherever [state.agentMode] is used

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.

Pinia Task 10 - product-expert-operator-agent

2 participants