-
Notifications
You must be signed in to change notification settings - Fork 38
KDS-648: KdsEmptyState Implementation #61
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
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
Implements KDS-648 by introducing KDS-based empty state UIs for the Python workspace and view preview, along with dependency updates to support the new components.
Changes:
- Add
KdsEmptyStateto workspace and preview components and adjust conditional rendering accordingly. - Disable KDS legacy mode in the app bootstrap.
- Bump
@knime/kds-componentsand update build/test tooling versions inpackage.json.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| org.knime.python3.scripting.nodes/js-src/src/main.ts | Disables KDS legacy mode globally to use updated KDS behavior/components. |
| org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue | Adds KDS empty state when the workspace has no temporary values. |
| org.knime.python3.scripting.nodes/js-src/src/components/PythonViewPreview.vue | Replaces legacy placeholder UI with KdsEmptyState and adds run-action buttons. |
| org.knime.python3.scripting.nodes/js-src/package.json | Updates KDS dependency and upgrades dev tooling versions (vite/vitest/cyclonedx). |
Files not reviewed (1)
- org.knime.python3.scripting.nodes/js-src/package-lock.json: Language not supported
org.knime.python3.scripting.nodes/js-src/src/components/PythonViewPreview.vue
Outdated
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Show resolved
Hide resolved
e575914 to
196c54c
Compare
196c54c to
cb58250
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 7 out of 8 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- org.knime.python3.scripting.nodes/js-src/package-lock.json: Language not supported
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonViewPreview.vue
Show resolved
Hide resolved
912ea94 to
619d7c2
Compare
KDS-648 (Empty State)
619d7c2 to
7f775af
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 5 out of 6 changed files in this pull request and generated 4 comments.
Files not reviewed (1)
- org.knime.python3.scripting.nodes/js-src/package-lock.json: Language not supported
org.knime.python3.scripting.nodes/js-src/src/components/PythonWorkspace.vue
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/__tests__/PythonWorkspace.test.ts
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonViewPreview.vue
Show resolved
Hide resolved
org.knime.python3.scripting.nodes/js-src/src/components/PythonViewPreview.vue
Show resolved
Hide resolved
|
org.knime.python3.scripting.nodes/js-src/src/components/__tests__/PythonWorkspace.test.ts
Outdated
Show resolved
Hide resolved
KDS-648 (Empty State)
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 7 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- org.knime.python3.scripting.nodes/js-src/package-lock.json: Language not supported
| v-if="!pythonPreviewStatus.isExecutedOnce" | ||
| headline="Run the code to see the preview" | ||
| description="Views generated by the Python script will be displayed here." | ||
| /> | ||
| <KdsEmptyState | ||
| v-else | ||
| headline="The view cannot be displayed" | ||
| description="Check the error message and re-execute the script." | ||
| /> |
Copilot
AI
Feb 10, 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.
This duplicates the KdsEmptyState component and only varies headline/description. Consider rendering a single KdsEmptyState and deriving headline/description via computed values (or inline ternaries) to reduce duplication and keep the empty-state messaging easier to maintain.
| v-if="!pythonPreviewStatus.isExecutedOnce" | |
| headline="Run the code to see the preview" | |
| description="Views generated by the Python script will be displayed here." | |
| /> | |
| <KdsEmptyState | |
| v-else | |
| headline="The view cannot be displayed" | |
| description="Check the error message and re-execute the script." | |
| /> | |
| :headline=" | |
| pythonPreviewStatus.isExecutedOnce | |
| ? 'The view cannot be displayed' | |
| : 'Run the code to see the preview' | |
| " | |
| :description=" | |
| pythonPreviewStatus.isExecutedOnce | |
| ? 'Check the error message and re-execute the script.' | |
| : 'Views generated by the Python script will be displayed here.' | |
| " | |
| /> |



KDS-648 (Empty State)