Skip to content

Fix(forms): Prevent configuration inputs from losing focus#9773

Open
Iisyourdad wants to merge 2 commits intocoollabsio:nextfrom
Iisyourdad:fix/input-fields-losing-focus
Open

Fix(forms): Prevent configuration inputs from losing focus#9773
Iisyourdad wants to merge 2 commits intocoollabsio:nextfrom
Iisyourdad:fix/input-fields-losing-focus

Conversation

@Iisyourdad
Copy link
Copy Markdown
Contributor

@Iisyourdad Iisyourdad commented Apr 23, 2026

Changes

  • Fixed configuration inputs losing focus by preventing the editable Livewire form components from being refreshed by the 10-second background status checks.
  • Moved status updates to the heading/status components and made them edit-aware, so polling pauses while the user is interacting with the form and runs a single refresh after focus leaves the form.
  • Added test.

Issues

Category

  • Bug fix

Preview

Before (losing focus error)

Projects._.Coolify.-.Google.Chrome.2026-04-23.12-46-00.mp4

After

Projects._.Coolify.-.Google.Chrome.2026-04-23.12-46-58.mp4

AI Assistance

  • AI was used (please describe below)

If AI was used:

  • Tools used:
  1. Codex 5.4 extra high reasoning
  2. Gemini 3.1 Pro
  3. Copilot.
  • How extensively:
  1. Codex for all code writing and for review.
  2. Gemini 3.1 Pro for review.
  3. Copilot for review.

Testing

  • Manual:
    • Verified on a local Coolify instance. See preview videos above.
  • Automated:
    • php artisan test tests/Unit/EditAwareStatusPollingViewTest.php tests/Feature/ConfigurationFormBackgroundRefreshTest.php tests/Feature/DatabaseSslStatusRefreshTest.php tests/Unit/ServiceConfigurationRefreshTest.php

Contributor Agreement

Important

  • I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
  • I have searched existing issues and pull requests (including closed ones) to ensure this isn't a duplicate.
  • I have tested all the changes thoroughly with a local development instance of Coolify and I am confident that they will work as expected when a maintainer tests them.

@Iisyourdad Iisyourdad marked this pull request as draft April 23, 2026 17:59
@Iisyourdad Iisyourdad changed the title fix: prevent configuration inputs from losing focus Fix(forms): Prevent configuration inputs from losing focus Apr 23, 2026
@Iisyourdad Iisyourdad marked this pull request as ready for review April 23, 2026 18:05
@Iisyourdad Iisyourdad marked this pull request as draft April 24, 2026 15:54
@Iisyourdad Iisyourdad marked this pull request as ready for review April 24, 2026 16:03
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