Skip to content

UI inconsistencies within forms #430

@Skelmis

Description

@Skelmis

Piggy backing on #134 but further diving into it, the forms UI fails to utilise the data provided via the schema route under some scenarios.

Case one

Code:

class Form(BaseModel):
    end_date: Optional[date] = None

Schema:

{
	"end_date": {
		"anyOf": [
			{
				"format": "date",
				"type": "string"
			},
			{
				"type": "null"
			}
		],
		"default": null,
		"title": "End Date"
	}
}

Expectation:
UI displays the date picker, but with no value selected by default

Actual:
Empty text field

Case two

Code:

class Form(BaseModel):
    enum: MyEnum

Schema:
Includes a $defs to the schema area with the correct data

Expectation:
Drop down with the values

Actual:

  1. It fails to put a name above to the text field
  2. Empty text field

Case three

Clicking "Use again" does not appear to prefill placeholders

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions