Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P Perun Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Svarog4
  • Perun Core
  • Merge requests
  • !112

Merged
Created May 08, 2026 by Tomi Karikj@tomi.karikjMaintainer

Refactor LabelEditor into focused sub-components

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 9

Extract LabelSearchForm, LabelFormModal, and LabelExportModal from the monolithic LabelEditor. LabelEditor now owns only state and handlers; fmt is passed as a prop to avoid propagating context.

Add Export modal with locale selection and properties preview

Separate export into its own modal with locale pills, a Generate button, and a preview of the resulting .properties file content. Download triggers a client-side file save.

Show human-readable locale names using Intl.DisplayNames

Map raw locale codes (e.g. en_US) to display names (e.g. English (United States)) via a single shared Intl.DisplayNames instance, with a fallback to the raw code.

Hide Generate button after export and cancel request on modal close

Prevent redundant re-fetches by removing the Generate button once a preview is available (reappears when locale selection changes). Cancel any in-flight export request via AbortController when the modal is closed.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feature/labels_editor_refactor