Skip to content

fix: configurable db pool, multi-preset detection, enter-submit wizards#52

Merged
dviejokfs merged 4 commits intomainfrom
fix/multiple-fixes
Mar 31, 2026
Merged

fix: configurable db pool, multi-preset detection, enter-submit wizards#52
dviejokfs merged 4 commits intomainfrom
fix/multiple-fixes

Conversation

@dviejokfs
Copy link
Copy Markdown
Contributor

Summary

  • Database pool tuning: Add env vars (TEMPS_DB_MAX_CONNECTIONS, TEMPS_DB_MIN_CONNECTIONS, TEMPS_DB_ACQUIRE_TIMEOUT, TEMPS_DB_IDLE_TIMEOUT) to configure the SQLx connection pool. Adds idle_timeout (previously unset) to recycle stale connections. Addresses slow_acquire_threshold warnings on smaller servers.
  • Multi-preset detection: detect_all_presets_from_files now returns all matching presets per directory (e.g., Dockerfile + Next.js), letting users choose instead of silently picking highest priority.
  • Enter-submit wizards: Add useEnterSubmit hook to Domain, DNS Provider, and Import wizards for keyboard-driven workflows.
  • Docs: Document new pool env vars in docs/reference/environment-variables/page.mdx.

Test plan

  • Verify cargo check --lib passes
  • Verify preset tests pass: cargo test --lib -p temps-presets
  • Set TEMPS_DB_MAX_CONNECTIONS=10 and confirm pool respects the limit
  • Test Enter key advances wizard steps in domain/DNS provider creation

- Add env vars for database connection pool tuning (TEMPS_DB_MAX_CONNECTIONS,
  TEMPS_DB_MIN_CONNECTIONS, TEMPS_DB_ACQUIRE_TIMEOUT, TEMPS_DB_IDLE_TIMEOUT)
  with idle_timeout support to recycle stale connections
- Refactor preset detection to return all matching presets per directory
  instead of only the highest-priority one, allowing users to choose
- Add useEnterSubmit hook to domain, DNS provider, and import wizards
- Document new pool env vars in environment variables reference
Install script and Homebrew formula template pointed to the wrong
GitHub repo, causing 404s on download.
@dviejokfs dviejokfs merged commit 4983a00 into main Mar 31, 2026
10 checks passed
@dviejokfs dviejokfs deleted the fix/multiple-fixes branch March 31, 2026 20:11
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