Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

ui: add all operation info to OperationStatusIndicator #2702

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

sabrinako
Copy link
Contributor

@sabrinako sabrinako commented Nov 9, 2021

Description

Originally, the OperationStatusIndicator just encapsulated the time information related to an operation. This was always paired with the actual operation (ie: Deployed to Docker) which was being hard coded in every instance to account for the slight differences in code between each operation type. This PR combines the operation and the time information in OperationStatusIndicator and creates child versions for each operation type.
Additionally, this PR lays some groundwork for #2681

To Test

  1. Pull down this branch git checkout ui/operation-status-indicator
  2. yarn start
  3. Check these areas for consistency across the app/with the previous version
    • Build/Deployment/Release lists
    • Build/Deployment/Release details page

@sabrinako sabrinako added ui pr/no-changelog No automatic changelog entry required for this pull request labels Nov 9, 2021
@sabrinako sabrinako added this to the 0.7.0 milestone Nov 9, 2021
@sabrinako sabrinako self-assigned this Nov 9, 2021
@sabrinako sabrinako force-pushed the ui/operation-status-indicator branch from 3b982b3 to ee94088 Compare November 9, 2021 19:33
@sabrinako sabrinako requested a review from a team November 9, 2021 19:38
Copy link
Contributor

@jgwhite jgwhite left a comment

Choose a reason for hiding this comment

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

This is an incredibly elegant refactor. I love it 😍

@@ -0,0 +1,5 @@
<OperationStatusIndicator @operation={{@operation}} @isDetailed={{false}}>
<:status-text>
{{if (eq @operation.status.state 1) 'Releasing' 'Released'}} on
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice if we can localize this. Don’t sweat it if it’s a pain though.

If you’re feeling adventurous, you could try some advanced ICU formatting, though that gets pretty wacky pretty quickly 😅

@sabrinako sabrinako merged commit 57cf7d9 into main Nov 11, 2021
@sabrinako sabrinako deleted the ui/operation-status-indicator branch November 11, 2021 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr/no-changelog No automatic changelog entry required for this pull request ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants