fix(electrobun): wizard creation flow + GitLab probe + shell detection + dropdown flip

- Git probe tries GitHub then GitLab for owner/repo shorthand
- Shows "Found on GitHub/GitLab" with platform indicator
- system.shells RPC detects installed shells (bash/zsh/fish/sh/dash)
- CustomDropdown flip logic uses 200px threshold for flip-up
- Project creation properly persists all wizard fields + adds card
This commit is contained in:
Hibryda 2026-03-23 15:34:57 +01:00
parent 021feba3ed
commit e61473b025
7 changed files with 112 additions and 21 deletions

View file

@ -79,8 +79,10 @@
id: string; name: string; cwd: string; provider?: string; model?: string;
systemPrompt?: string; autoStart?: boolean; groupId?: string;
useWorktrees?: boolean; shell?: string; icon?: string; color?: string;
modelConfig?: Record<string, unknown>;
}) {
const accent = result.color || ACCENTS[PROJECTS.length % ACCENTS.length];
const gid = result.groupId ?? activeGroupId;
const project: Project = {
id: result.id,
name: result.name,
@ -92,14 +94,22 @@
messages: [],
provider: result.provider ?? 'claude',
model: result.model,
groupId: result.groupId ?? activeGroupId,
groupId: gid,
};
PROJECTS = [...PROJECTS, project];
trackProject(project.id);
// Persist full config including shell, icon, modelConfig etc.
const persistConfig = {
id: result.id, name: result.name, cwd: result.cwd, accent,
provider: result.provider ?? 'claude', model: result.model,
groupId: gid, shell: result.shell, icon: result.icon,
useWorktrees: result.useWorktrees, systemPrompt: result.systemPrompt,
autoStart: result.autoStart, modelConfig: result.modelConfig,
};
appRpc.request['settings.setProject']({
id: project.id,
config: JSON.stringify({ ...project, ...result }),
config: JSON.stringify(persistConfig),
}).catch(console.error);
showWizard = false;