Display created and termination timestamps in expanded workspace cards
MR: Pending
Description
As part of our new designs for Workspaces, we need to display created and termination timestamp information in the expanded workspace cards so that users can easily understand when their workspace was created and when it will be/was terminated using the createdAt
and terminates
fields from the workspace GraphQL type.
Visual Changes
Acceptance criteria
-
Add "Created" section displaying workspace creation date in DD/MM/YYYY format -
Update workspaces GraphQL query to include terminates
field -
Add "Terminates" section displaying termination date in DD/MM/YYYY format -
Include appropriate icons for each timestamp section -
Handle cases where termination time is not available
Implementation plan
- Add timestamp information sections to expanded workspace card component
- Update workspaces GraphQL query to include
terminates
fields from workspace type based on workspace state:- For terminated workspaces:
workspace.actual_state_updated_at
- For running workspaces:
workspace.desired_state_updated_at + max_active_hours_before_stop + max_stopped_hours_before_termination
- For stopped workspaces:
workspace.desired_state_updated_at + max_stopped_hours_before_termination
- For terminated workspaces:
Edited by Sahil Sharma