Skip to content

Add a way to have multiple types of flags.#1641

Merged
MarceloRGonc merged 1 commit intomainfrom
mg/flags
Nov 20, 2025
Merged

Add a way to have multiple types of flags.#1641
MarceloRGonc merged 1 commit intomainfrom
mg/flags

Conversation

@MarceloRGonc
Copy link
Copy Markdown
Contributor

Part of OPS-3117.

Copilot AI review requested due to automatic review settings November 19, 2025 17:02
@linear
Copy link
Copy Markdown

linear Bot commented Nov 19, 2025

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 introduces a type alias OpenOpsFlag to enable future support for multiple flag types. Currently, OpenOpsFlag is an alias for FlagId, allowing the codebase to migrate to a more flexible flag typing system without changing existing functionality.

Key Changes:

  • Added OpenOpsFlag type alias in the shared package
  • Updated useFlag hook to accept OpenOpsFlag instead of FlagId

Reviewed Changes

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

File Description
packages/shared/src/lib/flag/flag.ts Exports new OpenOpsFlag type alias for FlagId
packages/react-ui/src/app/common/hooks/flags-hooks.ts Updates useFlag parameter type to use OpenOpsFlag

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sonarqubecloud
Copy link
Copy Markdown

@MarceloRGonc MarceloRGonc merged commit 074e747 into main Nov 20, 2025
22 checks passed
@MarceloRGonc MarceloRGonc deleted the mg/flags branch November 20, 2025 08:52
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.

3 participants