Skip to content

Refactor/account settings feature checks#7176

Merged
cstns merged 6 commits into
mainfrom
refactor/account-settings-feature-checks
Apr 30, 2026
Merged

Refactor/account settings feature checks#7176
cstns merged 6 commits into
mainfrom
refactor/account-settings-feature-checks

Conversation

@cstns
Copy link
Copy Markdown
Contributor

@cstns cstns commented Apr 30, 2026

Description

The featuresCheck getter in account-settings.js has ~130 lines of repetitive boilerplate. Nearly every feature follows the same 3-property pattern and there are several naming inconsistencies that have drifted in over time. The goal is to replace the boilerplate with a data-driven config table + builder function, and fix all naming inconsistencies across the app since we're building on top of it.

Something the we should be considering is removing the built in functionality that surrounded the now defunct free team tier. For now i just hardcoded the complex eligibility check and disabled e2e tests that were covering it.

Related Issue(s)

part of #7168

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

@cstns cstns self-assigned this Apr 30, 2026
@cstns cstns requested a review from n-lark April 30, 2026 11:55
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.61%. Comparing base (424fbb5) to head (c0c9565).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7176   +/-   ##
=======================================
  Coverage   76.61%   76.61%           
=======================================
  Files         405      405           
  Lines       20427    20427           
  Branches     4925     4925           
=======================================
  Hits        15650    15650           
  Misses       4777     4777           
Flag Coverage Δ
backend 76.61% <ø> (ø)

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.

Copy link
Copy Markdown
Contributor

@n-lark n-lark left a comment

Choose a reason for hiding this comment

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

Looks good

Comment thread test/e2e/frontend/cypress/tests-ee/free-tier/free-tier.spec.js
Comment thread frontend/src/stores/ux-navigation.js
@cstns cstns requested a review from n-lark April 30, 2026 14:01
@cstns cstns merged commit b9b7c7f into main Apr 30, 2026
38 of 40 checks passed
@cstns cstns deleted the refactor/account-settings-feature-checks branch April 30, 2026 14:42
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.

2 participants