Fix state badges for epics in GLQL

What does this MR do and why?

Fix state badges for epics in GLQL

In GLQL, when querying epics, the state badges did not display. This commit fixes that.

Changelog: fixed

References

https://gitlab.slack.com/archives/C07HUEF4VPD/p1750344881056999?thread_ts=1749071230.409659&cid=C07HUEF4VPD

Screenshots or screen recordings

Before After
CleanShot 2025-06-19 at 17.34.08.png CleanShot 2025-06-19 at 17.29.32.png

How to set up and validate locally

  1. Disable feature flag :glql_work_items:

    echo "Feature.disable(:glql_work_items)" | rails c
  2. Create an epic GLQL query:

    ```glql
    display: table
    fields: state, title, updated
    query: type = Epic and group = "gitlab-org"
    ```
  3. The state column should display properly.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading