refactor: drop unwired ConnectInstanceModal

Commit 7309f44 removed the friend-add trigger because the server now
handles all routing/peering/lookup; the commit message reserved the
modal for 'Connections settings and space-join flows' but neither flow
ever wired it back in. grep across packages/web/src finds only
self-references — pure dead code.

Removing 162 lines of UI plus the stale vi.mock in FriendsPage.test.tsx.
If a per-instance password-re-entry consent UX is ever needed, the
useInstanceConnect hook is the actual abstraction and the modal can be
rebuilt cleanly with current primitives (Modal mobileStyle="fullscreen",
ContextMenuRenderer's bottom-sheet, etc.).
This commit is contained in:
Jannis Braun
2026-05-05 23:24:19 +02:00
parent 438e7fb113
commit 8544f83225
2 changed files with 0 additions and 166 deletions
@@ -108,11 +108,6 @@ vi.mock('../../stores/activityStore', () => ({
),
}));
// Mock ConnectInstanceModal
vi.mock('../modals/ConnectInstanceModal', () => ({
ConnectInstanceModal: () => null,
}));
const mockNavigate = vi.fn();
vi.mock('react-router-dom', async () => {
const actual = await vi.importActual('react-router-dom');