Skip to content

[6822] Pinia Task 5 - context#6863

Open
n-lark wants to merge 8 commits intomainfrom
6822-pinia-task-5-context
Open

[6822] Pinia Task 5 - context#6863
n-lark wants to merge 8 commits intomainfrom
6822-pinia-task-5-context

Conversation

@n-lark
Copy link
Contributor

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

Description

See test plan and details.

⚠️ @cstns just wanted to highlight this observation from the test plan:

Note: When you navigate from one instance Expert drawer to another, the messages from the previous conversation persist. This does appear to be the functionality on main, just wanted to note it here.

Related Issue(s)

Resolves #6822

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

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.64%. Comparing base (35df20a) to head (7e57a17).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6863   +/-   ##
=======================================
  Coverage   76.64%   76.64%           
=======================================
  Files         399      399           
  Lines       20159    20159           
  Branches     4855     4855           
=======================================
  Hits        15451    15451           
  Misses       4708     4708           
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 marked this pull request as ready for review March 16, 2026 18:14
@n-lark n-lark requested a review from cstns March 16, 2026 18:14
@cstns
Copy link
Contributor

cstns commented Mar 17, 2026

please address the merge conflicts

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.

Looking good!

I don't like the try/catch approach in the stores module though, would like to explore alternatives

// Update in PR 12 (product-expert) to use Pinia store imports directly.
expert (state) {
// Use require() to avoid circular module dependencies at load time.
// Falls back to safe defaults when the Vuex store is unavailable (e.g. isolated unit tests).
Copy link
Contributor

Choose a reason for hiding this comment

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

a different approach should be taken here, we should not be altering functionality to suit testing but the other way round

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So we do remove this within Task 11 it just becomes:

      const account = useAccountBridge()

This is a temporary workaround since we are split between Vuex and Pinia so I figured it would be okay for now. Lmk your thoughts.

@n-lark n-lark requested a review from cstns March 18, 2026 14:10
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 5 - context

2 participants