Skip to content

Extract commitToolbox() shared commit step#316

Merged
milanofthe merged 1 commit into
mainfrom
refactor/toolbox-commit-helper
Jun 2, 2026
Merged

Extract commitToolbox() shared commit step#316
milanofthe merged 1 commit into
mainfrom
refactor/toolbox-commit-helper

Conversation

@milanofthe
Copy link
Copy Markdown
Member

The install orchestrator (installFlow) and the manager dialog both finish an install the same way — registerToolbox(config, {blocks, events, defaultCategory, categoryByClass}) then upsertToolbox(config) — duplicated in two places that could drift.

Extracts commitToolbox(config, discovered, hints) in register.ts and routes both call sites through it. The two paths still run their own install + discover + selection beforehand (the dialog interactively, installFlow automatically); only the shared "register selected + persist" tail is unified.

svelte-check: 0 errors/0 warnings.

@milanofthe milanofthe merged commit 828cc40 into main Jun 2, 2026
4 checks passed
@milanofthe milanofthe deleted the refactor/toolbox-commit-helper branch June 2, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant