Skip to content
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

feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Workspace Kind column #148 #177

Merged

Conversation

liavweiss
Copy link

This pr also contains the implementation of fetch data from workspacekinds API, to be able to take the Icon URL.

In case we have an Icon:
image

In case we don't have an Icon(broken URL or Icon does not exist):
image

@liavweiss liavweiss force-pushed the kind_logo_modification/#148 branch 2 times, most recently from 9ea0557 to 6fceada Compare January 21, 2025 08:11
Copy link

@paulovmr paulovmr left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @liavweiss ! I've made a few comments inline, also please consider using the camel case [W|w]orkspaceKinds instead of [W|w]orkspacekinds for variable names where applicable.

@@ -0,0 +1,6 @@
{

Choose a reason for hiding this comment

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

This file should not be created. It was probably created because of an npm command being ran in the repository root.

@@ -0,0 +1,6 @@
{

Choose a reason for hiding this comment

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

This file should not be created. It was probably created because of an npm command being ran in the repository root.

},
options: {
imageConfig: {
default: string,

Choose a reason for hiding this comment

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

Suggested change
default: string,
spawner: {
default: string,
},

Comment on lines 36 to 40
displayName: string,
labels: {
pythonVersion: string
},
hidden: true,

Choose a reason for hiding this comment

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

Suggested change
displayName: string,
labels: {
pythonVersion: string
},
hidden: true,
spawner: {
displayName: string,
description: string,
labels: [
{
key: string,
value: string;
}
],
hidden: true,
}

]
},
podConfig: {
default: string,

Choose a reason for hiding this comment

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

Suggested change
default: string,
spawner: {
default: string,
},

default: string,
values: [
{
id: string,

Choose a reason for hiding this comment

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

This part is also not matching the CR structure here.

@liavweiss liavweiss force-pushed the kind_logo_modification/#148 branch from dccf98e to 77d67cf Compare January 26, 2025 13:38
Liav Weiss (EXT-Nokia) added 2 commits January 28, 2025 10:37
Copy link
Member

@ederign ederign left a comment

Choose a reason for hiding this comment

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

@liavweiss thanks for the PR. Can we have a default logo (even just a placeholder) when the logo is not available? I think it would be a much better experience for the user then showing the 'broken' image.

@liavweiss
Copy link
Author

liavweiss commented Jan 29, 2025

After Eder's comment and a discussion with Paulo and Jenny we agreed to have a default Icon in case we don't have icon for the specific kind
image
in case we have an icon it will be the same as the first pic in this page.

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ederign, paulovmr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ederign
Copy link
Member

ederign commented Jan 29, 2025

@liavweiss thank you for accommodating!

@ederign
Copy link
Member

ederign commented Jan 29, 2025

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Jan 29, 2025
@google-oss-prow google-oss-prow bot merged commit 055150b into kubeflow:notebooks-v2 Jan 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants