Skip to content

Field builder (table) #731

@jpuzz0

Description

@jpuzz0

The pattern of form fields within rows is one that has been identified in at least a couple products, Keycloak & MTV (plugin within openshift). The initial provided design for MTV was the following:
Image

After some conversations about field spacing, this is what we ended up with:
Image

This implementation uses a Patternfly table, and requires some minor custom styles coupled with other Patternfly components (Button & Flex mainly)

It would be helpful for us to establish this pattern more concretely in our design guidelines and make a common component that has these guidelines built-in so there is less wonder/discovery when our products require this feature in their forms.

Within MTV, I've created a common component called FieldBuilderTable, which can be a starting point for us on this. Not all use-cases across products were taken into account with interfaces/types here, just the MTV product, so of course this is subject to change:
https://github.com/kubev2v/forklift-console-plugin/blob/main/src/components/FieldBuilderTable/FieldBuilderTable.tsx

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

PR Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions