Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@enescakir
Copy link
Member

  • Allow different input field types in the admin panel
    Currently, admin panel action forms only support text input fields.

    It's useful to support select input fields when there's a predefined set
    of options to choose from.

    If the value of an input is a hash instead of a string, each property of
    the hash is used separately.

  • Handle CloverError exceptions in the admin panel
    This allows us to display custom error messages instead of generic
    internal server errors.

  • Add set feature flag action to the admin panel
    This new action allows feature flags to be set for projects directly
    from the admin panel.

    Since feature flags are predefined, a dropdown is used to select the
    flag.

    The value is optional, if no value is provided, it is treated as nil.

    The value is a JSON field, allowing it to be cast to a boolean, integer,
    float, array, or hash when possible.

@enescakir enescakir self-assigned this Dec 26, 2025
@enescakir enescakir requested review from a team and jeremyevans December 26, 2025 10:35
Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

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

I'm a little skeptical of accepting JSON via a text input, but without this, you are forced to use pry to do basically the same thing, so I think it makes sense to support this.

Currently, admin panel action forms only support text input fields.

It's useful to support select input fields when there's a predefined set
of options to choose from.

If the value of an input is a hash instead of a string, each property of
the hash is used separately.
This allows us to display custom error messages instead of generic
internal server errors.
This new action allows feature flags to be set for projects directly
from the admin panel.

Since feature flags are predefined, a dropdown is used to select the
flag.

The value is optional, if no value is provided, it is treated as nil.

The value is a JSON field, allowing it to be cast to a boolean, integer,
float, array, or hash when possible.
@enescakir enescakir force-pushed the enes/admin-project-feature-flag branch from 795be0b to 58eb488 Compare December 30, 2025 12:09
@enescakir enescakir merged commit b342bfa into main Dec 30, 2025
11 checks passed
@enescakir enescakir deleted the enes/admin-project-feature-flag branch December 30, 2025 12:18
@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants