Skip to content

Update template.ts to include Layout schema#15

Open
abhinavrastogi-harness wants to merge 5 commits intobradrydzewski:masterfrom
abhinavrastogi-harness:patch-1
Open

Update template.ts to include Layout schema#15
abhinavrastogi-harness wants to merge 5 commits intobradrydzewski:masterfrom
abhinavrastogi-harness:patch-1

Conversation

@abhinavrastogi-harness
Copy link

Adds an optional Layout schema for controlling the UI ordering and grouping of inputs

Adds an optional Layout schema for controlling the UI ordering and grouping of inputs
@abhinavrastogi-harness abhinavrastogi-harness marked this pull request as ready for review June 16, 2025 23:16
schema/ui.ts Outdated
/**
* Options to populate the dropdown if the `component` is "select"
*/
options?: string[]

Choose a reason for hiding this comment

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

options is also available in input interface outside of ui
maybe should be kept at only one place?

Choose a reason for hiding this comment

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

@shaurya-harness i've added this here because the UI code supports it here today. Ideally yes, we should remove this and only use the options configured outside the ui object.

@@ -1,3 +1,5 @@
import { UiConfig } from "./ui";

Choose a reason for hiding this comment

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

enum and options are duplicated
also shall we standardize enum / list / options - all seem to be doing the same thing

@bradrydzewski
Copy link
Owner

sorry for the delayed response on this one. can you guys update this to match the naming conventions for consistency purposes:
https://harness.atlassian.net/wiki/spaces/~5f1f0648e8c4560022265233/pages/21100134856/RFC-005+-+Yaml+Syntax+Simplification#Naming

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.

4 participants