This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
ui: mutable deployments #1549
Merged
Merged
ui: mutable deployments #1549
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:feature | ||
ui: Mutable deployments support on web dashboard. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,13 @@ | |
{{t "page.deployments.title"}} | ||
</h3> | ||
|
||
<ul data-test-deployment-list=true class="list"> | ||
{{#each this.deployments as |deployment|}} | ||
<AppItem::Deployment @deployment={{deployment}} /> | ||
<ul data-test-deployment-list class="list"> | ||
{{#each this.deploymentsByGeneration key="generationID" as |group|}} | ||
{{#each group.deployments key="id" as |deployment|}} | ||
{{#if (or this.isShowingDestroyed (not-eq deployment.state 4))}} | ||
<AppItem::Deployment @deployment={{deployment}} @latest={{group.deployments.[0]}} /> | ||
{{/if}} | ||
{{/each}} | ||
{{else}} | ||
<EmptyState> | ||
<p>There are no deployments to display for this app yet</p> | ||
|
@@ -15,20 +19,20 @@ | |
from the CLI</p> | ||
</EmptyState> | ||
{{/each}} | ||
{{#if (and this.hasMoreDeployments (not this.destroyed))}} | ||
<div class="destroyed-deployments-filter"> | ||
<Pds::HelpText> | ||
Some deployments have been destroyed and are hidden. | ||
<Pds::Button | ||
@compact={{true}} | ||
@variant="ghost" | ||
{{on "click" this.showDestroyed}}> | ||
Display destroyed deployments | ||
</Pds::Button> | ||
</Pds::HelpText> | ||
</div> | ||
{{/if}} | ||
|
||
</ul> | ||
{{#if (and this.hasMoreDeployments (not this.isShowingDestroyed))}} | ||
<div class="destroyed-deployments-filter"> | ||
<Pds::HelpText> | ||
{{t "page.deployments.destroyed_and_hidden_state"}} | ||
<Pds::Button | ||
data-test-display-destroyed-button | ||
@compact={{true}} | ||
@variant="ghost" | ||
{{on "click" this.showDestroyed}}> | ||
{{t "page.deployments.display_destroyed"}} | ||
</Pds::Button> | ||
</Pds::HelpText> | ||
</div> | ||
{{/if}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Very glad to see this move outside of the |
||
|
||
{{outlet}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this text be in the
translations/
file?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started moving some of the text in this
deployments.hbs
file to the translations files, but @jgwhite said the checklist item about it on this PR was meant for the single deployment item template, not this overarching deployments template.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the other text to the translation file. Jamie and I discussed this specific block of text yesterday and agreed the paragraph breaks make it a bit more of a complex situation. It's a little out of scope for this PR, so we can add this text to the localization texts some other time.