Skip to content

Comments

[Studio] Refactor export functionality to avoid code duplication and update export/import icon#1038

Merged
markus-moser merged 4 commits into2.xfrom
refactor-export-url-duplication
Feb 16, 2026
Merged

[Studio] Refactor export functionality to avoid code duplication and update export/import icon#1038
markus-moser merged 4 commits into2.xfrom
refactor-export-url-duplication

Conversation

@markus-moser
Copy link
Contributor

This PR refactors the export functionality to eliminate code duplication by using a shared utility function.

Changes:

  • Config sidebar now uses getExportUrl utility instead of hardcoded URL pattern
  • Removed unused variant prop from ExportButton component
  • Standardized icons: export for export actions, import for import actions

This improves maintainability as the export URL logic is now centralized in one place.

- Use shared getExportUrl utility function in config-sidebar
- Remove unused variant prop from ExportButton component
- Standardize icon usage: 'export' for export, 'import' for import
@markus-moser markus-moser changed the title Refactor export functionality to avoid code duplication [Studio] Refactor export functionality to avoid code duplication and update export/import icon Feb 16, 2026
@sonarqubecloud
Copy link

@markus-moser markus-moser added this to the 2.4.0 milestone Feb 16, 2026
@markus-moser markus-moser merged commit 7a47a86 into 2.x Feb 16, 2026
1 check passed
@markus-moser markus-moser deleted the refactor-export-url-duplication branch February 16, 2026 16:37
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 2026
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.

1 participant