-
Notifications
You must be signed in to change notification settings - Fork 327
ui: Add Docker image/tag information and Overview section #2352
Conversation
8ff4f60
to
07309f8
Compare
07309f8
to
0fecfec
Compare
0fecfec
to
09bd177
Compare
3c52c58
to
dc86975
Compare
return; | ||
} | ||
|
||
let container = this.args.statusReport.resourcesList.find((r) => r.type === 'container'); |
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’m realizing that this method of digging up the image reference isn’t general enough. On the resource detail page (which I wrote) it only works for Kubernetes pods, and here it only works for Docker containers. We should collaborate on a general approach to this.
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 tried traversing everything in statusReport.resourcesList
in search of image
fields. This does get us what we want, but also some stuff we don’t want.
Here’s roughly what that approach would look like: cfbef23
By the way: I love how you’ve structured the “How to test” instructions. Going to steal that format going forward. Hope you don’t mind! |
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.
LGTM, just one minor comment
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.
Looking good. Just a few minor suggestions.
module('Integration | Component | meta-table', function (hooks) { | ||
setupRenderingTest(hooks); | ||
|
||
test('it renders', async function (assert) { |
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’d be tempted to split this test in two: one for the happy path and one for the empty state.
@@ -0,0 +1,29 @@ | |||
<div class="artifact-overview"> |
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.
There are a few localizable strings in this file. Could we add them to en-us.yaml
?
a1a512b
to
4fab0c4
Compare
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.
🥳
- added beginning HTMLElements for overview table component - no tests
ui: added tests for MetaTable+ContainerImageTag ui: added changelog ui: fixed small bug ui: account for duplicate image key ui: fix failing tests from previous commit
Co-authored-by: Jamie White <jamie@jgwhite.co.uk>
Co-authored-by: Jamie White <jamie@jgwhite.co.uk>
4fab0c4
to
41a3a34
Compare
#1520
Original UI
Updated UI
How to Test
ui/docker-version
waypoint up