Skip to content

feat: wallet supportedBrowsers from backoffice flags [SUP-868] - #477

Merged
spoletijuan merged 8 commits into
v4.1.0from
feat-SUP-868
Aug 13, 2026
Merged

feat: wallet supportedBrowsers from backoffice flags [SUP-868]#477
spoletijuan merged 8 commits into
v4.1.0from
feat-SUP-868

Conversation

@Dominikkq

Copy link
Copy Markdown
Contributor

What:

Wallet browser support now comes from backoffice flags instead of being
hardcoded in the API.

  • A json flag like WALLET_LEDGER_SUPPORTED_BROWSERS sets supportedBrowsers
    on the wallet_ledger row in /features. This works for any feature and any
    model property, no hardcoded lists.
  • Removed the hardcoded all-true browser list and the fake creation/update
    dates on merged rows.
  • Invalid flags are skipped and logged.
  • Unit tests updated.

Task:
SUP-868

@Dominikkq
Dominikkq marked this pull request as ready for review August 6, 2026 09:33
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Dominikkq and others added 4 commits August 7, 2026 14:36
Resolve conflicts in favor of the branch: keep the backoffice
feature-flags service, its wiring and tests, which the revert on main
(676deb0) had removed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Resolve conflicts in favor of the branch: keep the backoffice
feature-flags service, its wiring and tests, which the revert on main
(676deb0) had removed.
@Dominikkq
Dominikkq changed the base branch from main to v4.1.0 August 7, 2026 14:06
…t-SUP-868

# Conflicts:
#	package-lock.json
#	package.json
# Conflicts:
#	ENV_VARIABLES.md
#	src/__tests__/unit/features.controller.unit.ts
#	src/__tests__/unit/services/backoffice-feature-flags.service.unit.ts
#	src/controllers/features.controller.ts
#	src/services/backoffice-feature-flags.service.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates /features merging so wallet (and other) feature properties (e.g. supportedBrowsers) can be driven by backoffice flags rather than hardcoded API logic.

Changes:

  • Split backoffice flags into boolean “feature toggles” and “property flags” that attach non-boolean values onto the matching feature row.
  • Extend upsertFeature to apply derived feature attributes when inserting/updating merged features.
  • Update unit tests and ENV docs to cover/explain property-flag behavior.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/services/backoffice-feature-flags.service.ts Adds property-flag parsing and applies derived attributes during feature merge.
src/tests/unit/services/backoffice-feature-flags.service.unit.ts Adds unit tests validating property-flag attachment and edge cases (longest match, reserved fields, orphan flags).
ENV_VARIABLES.md Documents property-flag naming rules and reserved fields behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/services/backoffice-feature-flags.service.ts Outdated
Comment thread src/services/backoffice-feature-flags.service.ts Outdated
@spoletijuan
spoletijuan merged commit d80244b into v4.1.0 Aug 13, 2026
3 checks passed
@spoletijuan
spoletijuan deleted the feat-SUP-868 branch August 13, 2026 15:18
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.

5 participants