Skip to content

[6828] Pinia Task 11 - product-expert#6886

Open
n-lark wants to merge 14 commits into6827-pinia-task-10-product-expert-operator-agentfrom
6828-pinia-task-11-product-expert
Open

[6828] Pinia Task 11 - product-expert#6886
n-lark wants to merge 14 commits into6827-pinia-task-10-product-expert-operator-agentfrom
6828-pinia-task-11-product-expert

Conversation

@n-lark
Copy link
Contributor

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

Description

See details and test plan.

Items left:

  • Run manual tests

Related Issue(s)

Resolves #6828

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
@codecov
Copy link

codecov bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.63%. Comparing base (7703a50) to head (fe9ac28).

Additional details and impacted files
@@                                Coverage Diff                                @@
##           6827-pinia-task-10-product-expert-operator-agent    #6886   +/-   ##
=================================================================================
  Coverage                                             76.63%   76.63%           
=================================================================================
  Files                                                   399      399           
  Lines                                                 20167    20167           
  Branches                                               4856     4856           
=================================================================================
  Hits                                                  15454    15454           
  Misses                                                 4713     4713           
Flag Coverage Δ
backend 76.63% <ø> (ø)

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.

…t-operator-agent' into 6828-pinia-task-11-product-expert
shouldWakeUpAssistant (val) {
if (val) {
this.wakeUpAssistant({ shouldHydrateMessages: true })
}
Copy link
Contributor Author

@n-lark n-lark Mar 19, 2026

Choose a reason for hiding this comment

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

setContext previously lived in the root expert store and could trigger side effects directly. Moving it to a leaf store(see this comment on why) means components can no longer react to it implicitly. This watcher restores that reactivity on the team page.

import { useAccountBridge } from './_account_bridge.js'
import { useProductExpertFfAgentStore } from './product-expert-ff-agent.js'

export const useProductExpertContextStore = defineStore('product-expert-context', {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Extracted from product-expert.js to break a circular import:

product-expert.js → product-assistant.js → messaging.service.js → product-expert.js.

By making this a leaf store, messaging.service.js can import it directly without closing the loop.

@n-lark
Copy link
Contributor Author

n-lark commented Mar 20, 2026

Hey @cstns while testing this I had some issues getting the immersive editor running - lets sync when you have time so I can test but everything else looked good testing.

@n-lark n-lark marked this pull request as ready for review March 20, 2026 18:19
@cstns
Copy link
Contributor

cstns commented Mar 23, 2026

the product-expert store serves as a bus towards the ff-agent and ff-operator agents.

image

these are the dynamic uses of them from the store, there might be more scattered across vue components as well

@n-lark n-lark requested a review from cstns March 23, 2026 18:27
@n-lark n-lark linked an issue Mar 23, 2026 that may be closed by this pull request
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 11 - product-expert

2 participants