Add uptime information for running workspaces 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 uptime information for running workspaces in the expanded workspace cards so that users can see how long their workspace has been running. ## Visual Changes ![image](/uploads/ce543aa84a548655401b158044625cb5/image.png){width=317 height=58} ## Acceptance criteria - [ ] Add `uptime` field definition and resolver to workspace GraphQL type - [ ] Backend returns `null` for non-running workspaces - [ ] Add "Uptime" section to expanded workspace cards for running workspaces only - [ ] Display uptime in "time since" format with [clock icon](https://design.gitlab.com/product-foundations/iconography-directory?q=clock) - [ ] Hide uptime section for stopped or terminated workspaces ## Implementation plan **Backend:** - Add `uptime` field definition to workspace GraphQL type - Implement resolver method that calculates time difference from `desired_state_updated_at` to current time - Return `null` for workspaces that are not in running state **Frontend:** - Update GraphQL query to include `uptime` field from workspace type - Add uptime information section to expanded workspace card component <!-- NOTE: Feel free to expand with more sections and headers as needed --> <!-- DO NOT TOUCH BELOW -->
issue