-
Notifications
You must be signed in to change notification settings - Fork 294
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
Containers page: listing. #5258
Containers page: listing. #5258
Conversation
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
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 gave this a quick review and left a few notes.
I was also able to crash the page using the following docker-compose.yaml
(renamed to docker-compose.txt
so I could upload) while I was testing.
This is the error I received after running docker compose pull
& docker compose -p penpot -f docker-compose.yaml up -d
, and navigating to the Containers page
client.js?4497:103 TypeError: Cannot read properties of null (reading '0')
at eval (Containers.vue?3246:164:1)
at Array.forEach (<anonymous>)
at VueComponent.getUniquePorts (Containers.vue?3246:162:1)
at fn (Containers.vue?0334:29:1)
at normalized (vue.runtime.esm.js?2b0e:2605:1)
at Proxy.renderSlot (vue.runtime.esm.js?2b0e:2701:1)
at eval (index.vue?dcca:573:1)
at Proxy.renderList (vue.runtime.esm.js?2b0e:2646:1)
at _vm._t.fullColspan (index.vue?dcca:571:1)
at Proxy.renderSlot (vue.runtime.esm.js?2b0e:2706:1)
Signed-off-by: scures <scurescu@suse.com>
Hopefully with the new changes & improvements that won't happen again. |
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 think this is shaping up quite nicely, left a few minor comments 🙂
data() { | ||
return { | ||
settings: defaultSettings, | ||
ddClient: null, |
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.
ddClient
will be made reactive because it's a member of data. That doesn't feel right to me because I can't imagine we would really care about tracking changes to ddClient
in this component.
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.
Good point. Any suggestion on what would be the other approach?
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 many ways to do this, but the generally accepted way is to simply assign a value to this.ddClient
in the created hook.
I think that we can follow-up in a separate PR to make this change.
Signed-off-by: scures <scurescu@suse.com>
Signed-off-by: scures <scurescu@suse.com>
@rak-phillip, I sent a commit to reduce the length of the |
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 think what we have here looks like a good start to listing containers.
data() { | ||
return { | ||
settings: defaultSettings, | ||
ddClient: null, |
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 many ways to do this, but the generally accepted way is to simply assign a value to this.ddClient
in the created hook.
I think that we can follow-up in a separate PR to make this change.
Addresses some points of #4506
We have some limitations since we don't have a whole API yet, basic actions are not possible (or I couldn't find a way) but we have the structure to enable them ready.
We can have follow-up tasks to implement more features (actions, for example) once available.