meshery/meshery
在 GitHub 查看[UI] Restructure Phase 5.b.3 - Migrate design modals to shared modal primitives
Open
#18,756 建立於 2026年4月15日
component/uiframework/reacthelp wantedkind/enhancementlanguage/javascript
描述
Current Behavior
Design-related modal flows are split across separate implementations in ui/components/ExportModal.tsx, ui/components/General/Modals/ImportModal.tsx, and ui/components/General/Modals/PublishModal.tsx.
Desired Behavior
Move design modal flows onto the shared modal foundation from #18751 and relocate them into their target design-domain homes without changing their user-facing behavior.
Implementation
- Parent issue: #18661
- Foundation issue: #18751
- Companion tasks are tracked in the checklist on #18661.
- Migrate and/or relocate:
ui/components/ExportModal.tsx→ui/components/designs/export/ExportDesignModal.tsxas aFormModal-based implementationui/components/General/Modals/ImportModal.tsx→ui/components/designs/ImportDesignModal.tsxui/components/General/Modals/PublishModal.tsx→ui/components/designs/PublishDesignModal.tsx
- Update imports, helpers, and nearby callers so design flows depend on the shared modal API instead of legacy general-purpose modal wrappers.
Acceptance Tests
- Design import, publish, and export flows render through the shared modal primitives from #18751.
- The migrated files live under the design-domain locations called out in #18661.
- Legacy implementations under
ui/components/andui/components/General/Modals/are removed after their replacements are wired.
Mockups
N/A. Reuse the behavior and structure described in #18661.