Skip to content

Task publication: dataset schema selector shows a dropdown even with a single option (should auto-select) #2812

Description

@myagizmaktav

Summary

In the task publication flow, the dataset-schema / schema-view selector is rendered as a dropdown even when there is only one option available. The user has to open the dropdown and pick the single entry — a click that carries no information and no choice.

Steps to reproduce

  1. Open a saved task and go to its publication settings.
  2. Reach the dataset schema / schema view selection.
  3. With a task whose dataset schema exposes exactly one view/item, the control is still a closed dropdown that must be opened and selected from.

Expected

When there is exactly one selectable option, it should be pre-selected automatically. Ideally the control renders as static text (or a disabled/read-only field showing the value) instead of an interactive dropdown, since there is nothing to choose between.

Actual

An empty-choice dropdown is shown and requires an extra open + click before the flow can continue.

Suggested fix

  • Auto-select when options.length === 1.
  • Render single-option selectors as plain text / read-only rather than as a dropdown, and keep the dropdown only when there are 2+ options.

Notes

This is a request about the Apify Console UI. If I've mislabelled the exact screen, the general ask is: any single-option selector in the task publication flow should auto-select rather than demand a click.

Filing here as the closest public repo — please route to the Console team if there's a more appropriate place. Thanks!

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