Display created and termination timestamps in expanded workspace cards
MR: Pending <!-- NOTE: For context on MR heading, see: https://handbook.gitlab.com/handbook/engineering/devops/dev/create/remote-development/index.html#relationship-of-issues-to-mrs --> ## Description As part of our [new designs for Workspaces](https://gitlab.com/groups/gitlab-org/-/epics/18674), 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 ![image](/uploads/9849f5e83d02a7b222a586d441f08e0a/image.png){width=406 height=167} ## 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` <!-- NOTE: Feel free to expand with more sections and headers as needed --> <!-- DO NOT TOUCH BELOW -->
issue