[FE] Update the type filters in issue boards to fetch from query rather than hardcoded
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Collaborate/take over this issue](https://contributors.gitlab.com/manage-issue?action=work&projectId=278964&issueIid=591278) </details> <!--IssueSummary end--> At the moment , we have the type filter for boards hardcoded on frontend https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/boards/components/issue_board_filtered_search.vue#L69-90 ```javascript const typeOptions = [ { icon: 'work-item-issue', value: WORK_ITEM_TYPE_ENUM_ISSUE, title: s__('WorkItem|Issue') }, { icon: 'work-item-incident', value: WORK_ITEM_TYPE_ENUM_INCIDENT, title: s__('WorkItem|Incident'), }, ]; if (this.glFeatures.workItemTasksOnBoards) { typeOptions.push({ icon: 'work-item-task', value: WORK_ITEM_TYPE_ENUM_TASK, title: s__('WorkItem|Task'), }); } typeOptions.push({ icon: 'work-item-ticket', value: WORK_ITEM_TYPE_ENUM_TICKET, title: s__('WorkItem|Ticket'), }); ``` We should be aiming to fetching this from namespace work item types query call rather than hardcoding to show the custom work item types as well which should work once https://gitlab.com/gitlab-org/gitlab/-/issues/590696+ is done
issue