feat(recipes): redesign import modal with URL-first input and unified drop zone

This commit is contained in:
Will Miao
2026-08-21 00:01:50 +08:00
parent 86aa1d8059
commit 45e7c25308
15 changed files with 270 additions and 154 deletions
@@ -1,6 +1,7 @@
export class ImportStepManager {
constructor() {
this.injectedStyles = null;
this.currentStep = null;
}
removeInjectedStyles() {
@@ -18,6 +19,7 @@ export class ImportStepManager {
showStep(stepId) {
// Remove any injected styles to prevent conflicts
this.removeInjectedStyles();
this.currentStep = stepId;
// Hide all steps first
document.querySelectorAll('.import-step').forEach(step => {