Skip to content

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

Open
n-lark wants to merge 4 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 4 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.
⚠️ Please upload report for BASE (6826-pinia-task-9-product-expert-ff-agent@ad7b439). Learn more about missing BASE report.

Additional details and impacted files
@@                             Coverage Diff                              @@
##             6826-pinia-task-9-product-expert-ff-agent    #6885   +/-   ##
============================================================================
  Coverage                                             ?   76.64%           
============================================================================
  Files                                                ?      399           
  Lines                                                ?    20159           
  Branches                                             ?     4855           
============================================================================
  Hits                                                 ?    15451           
  Misses                                               ?     4708           
  Partials                                             ?        0           
Flag Coverage Δ
backend 76.64% <ø> (?)

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

1 participant