Skip to content

Commit af50d96

Browse files
wilhel1812claude
andcommitted
feat: replace modal editors with floating popover panel for sites, links, and simulations (#804)
Introduces MapEditorPanel — a floating popover anchored to its trigger button — that unifies edit and create flows for site library entries, links, and simulation presets. Dismissed by ESC, outside-click, or ×; renders as a bottom sheet on mobile. Old ModalOverlay blocks for resourceDetailsPopup and linkModal are now dead code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1f9f471 commit af50d96

7 files changed

Lines changed: 1369 additions & 218 deletions

File tree

src/components/AppShell.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import SimulationLibraryPanel from "./SimulationLibraryPanel";
3737
import WelcomeModal from "./WelcomeModal";
3838
import { Sidebar } from "./Sidebar";
3939
import { SettingsPanel } from "./settings/SettingsPanel";
40+
import { MapEditorPanel } from "./map/MapEditorPanel";
4041
import { MobileWorkspaceTabs } from "./app-shell/MobileWorkspaceTabs";
4142
import { useOnboardingFlow } from "./app-shell/useOnboardingFlow";
4243

@@ -2458,6 +2459,7 @@ export function AppShell() {
24582459
</div>
24592460
</ModalOverlay>
24602461
) : null}
2462+
<MapEditorPanel isMobile={isMobileViewport} />
24612463
</main>
24622464
);
24632465
}

src/components/Sidebar.tsx

Lines changed: 80 additions & 218 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)