Skip to content

Conversation

@senemdilli
Copy link
Contributor

KDS-648 (Empty State)

@senemdilli senemdilli requested a review from a team as a code owner February 6, 2026 14:01
@senemdilli senemdilli requested review from Copilot and knime-ghub-bot and removed request for a team February 6, 2026 14:01
Copy link
Contributor

Copilot AI left a 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 KdsEmptyState to workspace and preview components and adjust conditional rendering accordingly.
  • Disable KDS legacy mode in the app bootstrap.
  • Bump @knime/kds-components and update build/test tooling versions in package.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

@senemdilli senemdilli force-pushed the KDS-648-Empty-State-Implementation branch from e575914 to 196c54c Compare February 10, 2026 11:46
Copilot AI review requested due to automatic review settings February 10, 2026 11:52
@senemdilli senemdilli force-pushed the KDS-648-Empty-State-Implementation branch from 196c54c to cb58250 Compare February 10, 2026 11:52
Copy link
Contributor

Copilot AI left a 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

@senemdilli senemdilli force-pushed the KDS-648-Empty-State-Implementation branch 2 times, most recently from 912ea94 to 619d7c2 Compare February 10, 2026 12:06
Copilot AI review requested due to automatic review settings February 10, 2026 12:19
@senemdilli senemdilli force-pushed the KDS-648-Empty-State-Implementation branch from 619d7c2 to 7f775af Compare February 10, 2026 12:19
Copy link
Contributor

Copilot AI left a 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

@sonarqubecloud
Copy link

Copilot AI review requested due to automatic review settings February 10, 2026 16:06
Copy link
Contributor

Copilot AI left a 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

Comment on lines +35 to +43
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."
/>
Copy link

Copilot AI Feb 10, 2026

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.

Suggested change
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.'
"
/>

Copilot uses AI. Check for mistakes.
@senemdilli senemdilli merged commit 1b659bc into master Feb 10, 2026
2 of 3 checks passed
@senemdilli senemdilli deleted the KDS-648-Empty-State-Implementation branch February 10, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants