Skip to content

UX enhancements for dstack apply#2045

Merged
jvstme merged 1 commit intomasterfrom
apply_ux_enhancements
Dec 2, 2024
Merged

UX enhancements for dstack apply#2045
jvstme merged 1 commit intomasterfrom
apply_ux_enhancements

Conversation

@jvstme
Copy link
Copy Markdown
Collaborator

@jvstme jvstme commented Dec 1, 2024

For all configuration types:

  • Show a spinner while provisioning.
  • Show a non-verbose live table to save screen space.
  • After provisioning, show a final render of the table with absolute times, not relative. This allows the table to stay relevant if the user looks at it later.
  • In case of errors, show a verbose table in the final render to provide more details for troubleshooting.
  • In case of errors, show a highlighted error description.

For runs:

  • Merge the backend+region and resources+spot columns to save screen space and for consistency with other configuration types.
  • Show the replica and job number on the same line for better readability and consistency with dstack stats.
  • For single-job runs, show the status of the job, not the run. This allows the pulling status to be visible.

For fleets:

  • Wait for the terminating->terminated transition before quitting so that the table shows a relevant final status.

Misc:

  • Remove unused code: the configuration column in the runs table and timestamp arguments to pretty_date.

This PR is not part of an issue, but it follows the changes from #1951 and is based on feedback from the team.

For all configuration types:
- Show a spinner while provisioning.
- Show a non-verbose live table to save screen
  space.
- After provisioning, show a final render of the
  table with absolute times, not relative. This
  allows the table to stay relevant if the user
  looks at it later.
- In case of errors, show a verbose table in the
  final render to provide more details for
  troubleshooting.
- In case of errors, show a highlighted error
  description.

For runs:
- Merge the backend+region and resources+spot
  columns to save screen space and for consistency
  with other configuration types.
- Show the replica and job number on the same line
  for better readability and consistency with
  `dstack stats`.
- For single-job runs, show the status of the job,
  not the run. This allows the `pulling` status to
  be visible.

For fleets:
- Wait for the `terminating`->`terminated`
  transition before quitting so that the table
  shows a relevant final status.

Misc:
- Remove unused code: the `configuration` column
  in the runs table and timestamp arguments to
  `pretty_date`.
@jvstme jvstme requested a review from r4victor December 1, 2024 23:38
@jvstme jvstme merged commit 43d0be4 into master Dec 2, 2024
@jvstme jvstme deleted the apply_ux_enhancements branch December 2, 2024 07:56
superprat pushed a commit to bahaal-tech/dstack that referenced this pull request Dec 20, 2024
For all configuration types:
- Show a spinner while provisioning.
- Show a non-verbose live table to save screen
  space.
- After provisioning, show a final render of the
  table with absolute times, not relative. This
  allows the table to stay relevant if the user
  looks at it later.
- In case of errors, show a verbose table in the
  final render to provide more details for
  troubleshooting.
- In case of errors, show a highlighted error
  description.

For runs:
- Merge the backend+region and resources+spot
  columns to save screen space and for consistency
  with other configuration types.
- Show the replica and job number on the same line
  for better readability and consistency with
  `dstack stats`.
- For single-job runs, show the status of the job,
  not the run. This allows the `pulling` status to
  be visible.

For fleets:
- Wait for the `terminating`->`terminated`
  transition before quitting so that the table
  shows a relevant final status.

Misc:
- Remove unused code: the `configuration` column
  in the runs table and timestamp arguments to
  `pretty_date`.
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.

2 participants