Skip to content

Add WFO Object and Array field #1980

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Georgi2704
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented Jun 10, 2025

🦋 Changeset detected

Latest commit: 9e3d82b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@orchestrator-ui/orchestrator-ui-components Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@DutchBen DutchBen force-pushed the wfo-array-object-field branch from ea8fb82 to 75e1b77 Compare June 11, 2025 07:53
@Georgi2704 Georgi2704 force-pushed the wfo-array-object-field branch from 75e1b77 to 8b4b6cc Compare June 17, 2025 19:04
});

const minusButton = css({
width: '40px',
Copy link
Collaborator

Choose a reason for hiding this comment

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

For this and other magic values in this PR:
Is there already some kind of theming file in this project?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can make them use the defaultOrchestratorTheme values as close as possibe. I made them like this to be consistent with the old uniforms.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Align them with the theme. No need to align with the uniforms I would say

return field.type === PydanticFormFieldType.OBJECT;
},
},
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

In the defaultComponentMatcher in the pydantic-forms lib there are some other fields that match on field type array like the MultiSelectField. This matcher should be after defaut matchers or else they will hijack matches that should end up there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now the default object field matcher.

);

const renderField = (field: Record<'id', string>, index: number) => {
//TODO: Temporary fix for wrapper showing in arrayItem when not necessary
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a ticket for this? I am running into the same thing

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