Skip to content

Maintain state of fields across tab navigation - #2100

Merged
charliepark merged 3 commits into
fix-form-sourceType-bugfrom
maintain-field-state
Mar 27, 2024
Merged

charliepark merged 3 commits into
fix-form-sourceType-bugfrom
maintain-field-state

Conversation

@charliepark

Copy link
Copy Markdown
Contributor

In order to have the form retain the input values into the various tab's forms, I had to update a few fields in the form.

I'll want to take a look at this in the morning, as I suspect there are a few gnarly bits in it.

If this works as I believe it does, though, we'd merge it back into fix-form-sourceType-bug, which is, itself, waiting to get merged to existing-boot-disk. I was wary enough about the changes here that I didn't want to just Leeroy Jenkins it into fix-form-sourceType-bug.

@vercel

vercel Bot commented Mar 27, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Mar 27, 2024 6:40pm

Comment thread app/forms/instance-create.tsx
Comment thread app/forms/instance-create.tsx Outdated
Comment thread app/forms/instance-create.tsx Outdated
@charliepark
charliepark marked this pull request as ready for review March 27, 2024 18:48
@charliepark
charliepark merged commit 77eecfa into fix-form-sourceType-bug Mar 27, 2024
@charliepark
charliepark deleted the maintain-field-state branch March 27, 2024 18:48
david-crespo pushed a commit that referenced this pull request Mar 27, 2024
#2097)

* Fix issue with sourceType collision on project vs silo images and disks

* refactor

* Refactoring, and updating types

* Maintain state of fields across tab navigation (#2100)

* Simplify test; make it work for Safari

* Clean up and add comments

* verify in test that correct image used

* clean up comment
david-crespo added a commit that referenced this pull request Apr 3, 2024
* Create instance from existing boot disk

* Remove setting undefined on tab change (for now)

* Improve descriptions

* copy tweaks

* tweak empty states copy, fix diskList prefetch

* Fix issue with sourceType overload on project vs silo images and disks (#2097)

* Fix issue with sourceType collision on project vs silo images and disks

* refactor

* Refactoring, and updating types

* Maintain state of fields across tab navigation (#2100)

* Simplify test; make it work for Safari

* Clean up and add comments

* verify in test that correct image used

* clean up comment

* imageSize -> imageSizeGiB

---------

Co-authored-by: David Crespo <david.crespo@oxidecomputer.com>
Co-authored-by: Charlie Park <charlie@oxidecomputer.com>

This branch was successfully deployed

1 active deployment
Preview — 6773a3df Deployed Mar 27, 2024 by vercel[bot]
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.

2 participants