Skip to content

feat: show last build initiator for workspaces #2921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 12, 2022

Conversation

AbhineetJain
Copy link
Contributor

@AbhineetJain AbhineetJain commented Jul 12, 2022

This PR shows the initiator of the last build on the workspace and workspaces pages.

Subtasks

  • added last build initiator on workspace page
  • added last build initiator on workspaces page
  • added missing unit tests for the util method

Fixes #2865

Screenshots

Workspace page

Screen Shot 2022-07-11 at 6 28 15 PM

Workspaces page

Screen Shot 2022-07-11 at 6 30 04 PM

@AbhineetJain AbhineetJain requested a review from a team as a code owner July 12, 2022 01:10
Copy link
Member

@Kira-Pilot Kira-Pilot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@@ -27,6 +28,7 @@ export const WorkspaceStats: FC<WorkspaceStatsProps> = ({ workspace }) => {
const styles = useStyles()
const theme = useTheme()
const status = getDisplayStatus(theme, workspace.latest_build)
const initiatedBy = getDisplayWorkspaceBuildInitiatedBy(theme, workspace.latest_build)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this function unit tested?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Adding them now!

@AbhineetJain AbhineetJain merged commit b0bab3e into main Jul 12, 2022
@AbhineetJain AbhineetJain deleted the abhineetjain/2865-initiator-ws-pages branch July 12, 2022 17:14
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.

Show build initiator on workspaces (plural) and workspace (singular) pages
2 participants