Skip to content

fix(web): Preserve installer options values after successful submission#2746

Merged
dgdavid merged 3 commits intomasterfrom
fix-installer-options-form-state
Sep 18, 2025
Merged

fix(web): Preserve installer options values after successful submission#2746
dgdavid merged 3 commits intomasterfrom
fix-installer-options-form-state

Conversation

@dgdavid
Copy link
Copy Markdown
Contributor

@dgdavid dgdavid commented Sep 18, 2025

Ensure installer options form controls are reset to their initial values only on cancellation. Since the form remains mounted, it should preserve the submitted state when closed after a successful submission.

Fixes https://bugzilla.suse.com/show_bug.cgi?id=1249636 (protected link)

Ensure form controls are reset to their initial values only on
cancellation.  Since the form remains mounted, it should preserve the
submitted state when closed after a successful submission.
@coveralls
Copy link
Copy Markdown

coveralls commented Sep 18, 2025

Coverage Status

coverage: 63.601% (-0.01%) from 63.615%
when pulling 5eb5570 on fix-installer-options-form-state
into f5e83c0 on master.

To make match other form actions naming.
@shundhammer
Copy link
Copy Markdown
Contributor

LGTM from the program logic point of view, but I know much too little about TypeScript to do a proper review here.

@dgdavid
Copy link
Copy Markdown
Contributor Author

dgdavid commented Sep 18, 2025

LGTM from the program logic point of view, but I know much too little about TypeScript to do a proper review here.

Not that much knowledge about TS needed here, though 😝

@dgdavid
Copy link
Copy Markdown
Contributor Author

dgdavid commented Sep 18, 2025

LGTM from the program logic point of view, but I know much too little about TypeScript to do a proper review here.

I just skipped to add a unit test for this behavior because it is not that easy with our current architecture for unit testing in which callbacks are mocked and the state of the form is not persisted as it is when using it in the app. But if someone has an idea about how to do it, I'm all ears 👂

@dgdavid dgdavid requested a review from imobachgs September 18, 2025 09:35
Copy link
Copy Markdown
Contributor

@shundhammer shundhammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dgdavid dgdavid merged commit bb0e4f3 into master Sep 18, 2025
10 checks passed
@dgdavid dgdavid deleted the fix-installer-options-form-state branch September 18, 2025 10:07
@dgdavid dgdavid restored the fix-installer-options-form-state branch September 22, 2025 12:31
dgdavid added a commit that referenced this pull request Sep 22, 2025
…on (#2746)

Ensure installer options form controls are reset to their initial values
only on cancellation. Since the form remains mounted, it should preserve
the submitted state when closed after a successful submission.

Fixes https://bugzilla.suse.com/show_bug.cgi?id=1249636 (protected link)
imobachgs added a commit that referenced this pull request Oct 17, 2025
The same than #2746, but
against `SLE-16` branch.

Intended to be shipped in SLE-16 QU.
@dgdavid dgdavid deleted the fix-installer-options-form-state branch January 19, 2026 11:14
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.

3 participants