Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui v2: move resolver to accordions #770

Merged
merged 13 commits into from
Dec 11, 2020
Merged

Conversation

danielhochman
Copy link
Collaborator

Description

Kept as much existing logic as I could and rewired it for individual forms.

Not worried about styles in this PR, just logic.

Testing Performed

Locally with dev flow.

@danielhochman danielhochman requested a review from a team as a code owner December 9, 2020 22:00
@@ -117,30 +93,27 @@ const Resolver: React.FC<ResolverProps> = ({ type, searchLimit, onResolve, varia
<Error message={state.schemaFetchError} onRetry={() => loadSchemas(type, dispatch)} />
) : (
<Loadable variant="overlay" isLoading={state.resolverLoading}>
{process.env.REACT_APP_DEBUG_FORMS === "true" && <DevTool control={validation.control} />}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add back the debug form?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it doesn't work correctly with multiple validations at once afaict

Copy link
Contributor

Choose a reason for hiding this comment

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

ah yeah it would just be the focused one

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i think we no longer know which is focused, which i think we will need to add if we want to do dynamic disable on focus, but complicated enough to defer to another PR. wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

We can add in a follow up PR

frontend/packages/core/src/Resolver/index.tsx Show resolved Hide resolved
frontend/packages/core/src/Resolver/state.tsx Show resolved Hide resolved
@dschaller dschaller merged commit 27ecf5c into UIV2 Dec 11, 2020
@dschaller dschaller deleted the ui-v2-resolver-accordions branch December 11, 2020 18:29
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