Skip to content

UI: Support truncated paths in devfile input

MR: Pending

Description

!144376 (merged) introduced the ability to specify a custom path for the devfile used to create a workspace (Your work > Workspaces > Create Workspace). This uses the form input group from Pajamas and behaves as expected for shorter paths. More info: !144376 (comment 1782383791)

The problem:

Longer paths result in awkward line length and wrapping.

Proposed solution:

Truncate longer paths and provide a tooltip on hover that displays the full path. Mimicking the truncated breadcrumbs pattern and limiting to three seems like a reasonable compromise but we could also go shorter.

Examples:

Description Screenshot
Long path
Truncated breadcrumb example
Truncated path example

Open Questions

Acceptance Criteria

TODO: Fill out (required)

  • Devfile input is able to handle long paths without awkward wrapping
  • Gather feedback that the new truncated/shortened path contains enough context to still be useful
Edited by Taylor Vanderhelm