-
Notifications
You must be signed in to change notification settings - Fork 38
KDS-547: Tokenization of Python scripting – Temporary Values Panel #39
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR implements tokenization updates for the Python scripting Temporary Values Panel, migrating from legacy KNIME component styles to the KNIME Design System (KDS). The changes focus on updating CSS styling to use KDS design tokens and replacing the old Button component with KdsButton.
- Migrated CSS from hardcoded values to KDS design tokens for consistent theming
- Replaced
@knime/componentsButton with@knime/kds-componentsKdsButton - Updated table header/body styling to follow KDS spacing and visual patterns
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| PythonWorkspaceHeader.vue | Updated table header styling with KDS tokens, changed sticky positioning structure, added KDS font and color tokens |
| PythonWorkspaceBody.vue | Applied KDS spacing, typography, and hover state styling to table rows |
| PythonWorkspace.vue | Migrated Button to KdsButton, replaced hardcoded spacing/colors with KDS tokens throughout |
| package.json | Added @knime/kds-components dependency and downgraded @vueuse/core |
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspaceHeader.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspaceBody.vue
Outdated
Show resolved
Hide resolved
| :disabled="!resetButtonEnabled" | ||
| @click="resetWorkspace" | ||
| > | ||
| Reset values |
Copilot
AI
Jan 8, 2026
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.
The button text 'Reset values' is duplicated between the 'label' prop (line 80) and the slot content. Remove the slot content since the label prop already provides the button text.
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.
No slots in KdsButtons anymore!
cf613ca to
a7bea4a
Compare
a7bea4a to
ef340ba
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.
Pull request overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.
c2d35a6 to
8a70956
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.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
8a70956 to
8e86d30
Compare
8e86d30 to
08ccdb4
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspaceBody.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspaceBody.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspaceHeader.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspaceHeader.vue
Outdated
Show resolved
Hide resolved
08ccdb4 to
d347887
Compare
d347887 to
3621f4b
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
| const rootResizeCallback = useDebounceFn((entries) => { | ||
| const rect = entries[0].contentRect; | ||
| totalWidth.value = rect.width; | ||
| totalWidth.value = rect.width - paddingAroundTable * 2; |
Copilot
AI
Jan 20, 2026
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.
The constant paddingAroundTable doesn't accurately describe what it represents. Consider renaming to horizontalPadding or sidePadding since it's multiplied by 2 to account for both left and right padding.
3621f4b to
80561f3
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.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
| const resizeContainer = ref<HTMLElement | null>(null); | ||
| const totalWidth: Ref<number> = ref(0); | ||
| const headerWidths = ref<ColumnSizes>([100, 100, 100]); | ||
| // TODO KDS-690: Replace it once the JS tokens are available |
Copilot
AI
Jan 21, 2026
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.
The hardcoded magic number 8 should be documented to explain how it corresponds to the CSS padding value. The comment mentions JS tokens will replace this, but it's unclear how this value relates to var(--kds-spacing-container-0-5x) used in the CSS.
| // TODO KDS-690: Replace it once the JS tokens are available | |
| // TODO KDS-690: Replace this hardcoded value once JS spacing tokens are available. | |
| // 8px corresponds to `var(--kds-spacing-container-0-5x)` used as the horizontal padding | |
| // in the `.workspace` CSS rule below. Keep this value in sync with that CSS token. |
|


No description provided.