Skip to content

Conversation

@vsmeyukha
Copy link

nodeName,
substractHeight,
defaultProfile,
listPodTemplatesNs = 'incloud-web',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems like default option is not too good here

plural: 'podtemplates',
namespace: listPodTemplatesNs,
},
preserveStateOnUrlChange: false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems redudant

{
label: 'Predefined Profiles',
options: predefinedOptions,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

Better to remove predefined if we have specific pod templates. You will need an option to hide predifend options if you keep it

]
}, [hasPodTemplates, podTemplateNames])

const isPredefinedProfile = PREDEFINED_PROFILES.includes(currentProfile as typeof PREDEFINED_PROFILES[number])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Well currentProfile can be not that type. Better to remove as

}, [hasPodTemplates, podTemplateNames])

const isPredefinedProfile = PREDEFINED_PROFILES.includes(currentProfile as typeof PREDEFINED_PROFILES[number])
const selectedPodTemplateName = hasPodTemplates && !isPredefinedProfile ? currentProfile : undefined
Copy link
Collaborator

Choose a reason for hiding this comment

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

Profile names can be the same. So no need for this logic after removing show of dredefined if custom exist. Better just provide boolean to XTerminal

@typescreep
Copy link
Collaborator

Add proper PR name please

@vsmeyukha vsmeyukha changed the title Feature/cloud 254 [CLOUD-254]: Custom profiles support for NodeTerminal Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants