Skip to content

Preview Refactor #2553

Merged
ravi-kumar-pilla merged 40 commits intomainfrom
chore/preview_refactor
Jan 21, 2026
Merged

Preview Refactor #2553
ravi-kumar-pilla merged 40 commits intomainfrom
chore/preview_refactor

Conversation

@ravi-kumar-pilla
Copy link
Copy Markdown
Contributor

@ravi-kumar-pilla ravi-kumar-pilla commented Jan 20, 2026

Description

Related to kedro-org/kedro#5317

Development notes

  • Renamed preview renderers to follow preview-type-renderer naming pattern
  • Refactored DataNode preview rendering to eliminate code duplication between metadata.jsx (sidebar) and metadata-modal.jsx (expanded view)
  • Added 2 shared components preview-wrapper and preview-renderer for maximum code reuse and maintainability
  • Created shared utilities src/utils/normalize-preview.js to normalize DataNode preview types (PlotlyPreview, ImagePreview, TablePreview, JSONPreview, HTMLPreview) into consistent { kind, content } format

QA notes

  • All tests should pass

Checklist

  • Read the contributing guidelines
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added new entries to the RELEASE.md file
  • Added tests to cover my changes

Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
…o-viz into feat/node_preview

Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
@ravi-kumar-pilla ravi-kumar-pilla marked this pull request as ready for review January 20, 2026 18:57
Copy link
Copy Markdown
Contributor

@rashidakanchwala rashidakanchwala left a comment

Choose a reason for hiding this comment

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

I just did a first pass; and it looks very neat. i will have a deeper look at the code tomm.

Copy link
Copy Markdown
Contributor

@jitu5 jitu5 left a comment

Choose a reason for hiding this comment

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

Amazing. thanks @ravi-kumar-pilla

Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
@ravi-kumar-pilla
Copy link
Copy Markdown
Contributor Author

Hi @jitu5 ,

For some reason the CI check - Checks for blocking issues Expected — Waiting for status to be reported keeps hanging. If you have some time, can you please have a look. Thank you

@rashidakanchwala
Copy link
Copy Markdown
Contributor

Hi Ravi, it happened to me as well. Just rename ur PR title and it will work.

@rashidakanchwala rashidakanchwala self-requested a review January 21, 2026 11:23
Copy link
Copy Markdown
Contributor

@rashidakanchwala rashidakanchwala left a comment

Choose a reason for hiding this comment

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

I am approving this; just a nit on using switch instead of ‘ifs’

@jitu5 jitu5 changed the title Preview Refactor Preview Refactor. Jan 21, 2026
@jitu5 jitu5 changed the title Preview Refactor. Preview Refactor Jan 21, 2026
Signed-off-by: Ravi Kumar <ravi_kumar_pilla@mckinsey.com>
@ravi-kumar-pilla ravi-kumar-pilla changed the title Preview Refactor Preview Refactor Jan 21, 2026
@ravi-kumar-pilla
Copy link
Copy Markdown
Contributor Author

Hi Ravi, it happened to me as well. Just rename ur PR title and it will work.

Curious to know how did you find the solution :D ... still we need to find a fix unless it is the issue with the action itself

@ravi-kumar-pilla ravi-kumar-pilla merged commit f6afd6d into main Jan 21, 2026
11 checks passed
@ravi-kumar-pilla ravi-kumar-pilla deleted the chore/preview_refactor branch January 21, 2026 15:13
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