Repository navigation
feat(notebook-migration): generalize notebook-specific UI terminology - #8631
Conversation
|
/request-review @mengw15 |
Automated Reviewer SuggestionsBased on the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8631 +/- ##
============================================
- Coverage 92.80% 92.80% -0.01%
Complexity 4898 4898
============================================
Files 1239 1239
Lines 52252 52252
Branches 6425 6425
============================================
- Hits 48492 48491 -1
Misses 2183 2183
- Partials 1577 1578 +1
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The required before-and-after UI evidence and manual verification details are missing.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
What changed in this PR
Generalizes notebook-migration UI terminology for Python and future source types.
Changes:
- Replaces notebook-specific labels and notifications with source-code terminology.
- Replaces the Jupyter toolbar logo with a generic code icon.
- Removes the unused logo and licensing references.
| File | Description |
|---|---|
| frontend/src/assets/notebook_migration_tool/jupyter-logo.svg | Removes the obsolete Jupyter logo. |
| frontend/src/app/workspace/service/notebook-migration/notebook-migration.service.ts | Generalizes migration notifications. |
| frontend/src/app/workspace/service/jupyter-panel/jupyter-panel.service.ts | Generalizes panel notifications. |
| frontend/src/app/workspace/component/menu/menu.component.spec.ts | Updates selectors for the new tooltip. |
| frontend/src/app/workspace/component/menu/menu.component.scss | Removes obsolete logo styling. |
| frontend/src/app/workspace/component/menu/menu.component.html | Uses generic copy and a code icon. |
| frontend/src/app/workspace/component/jupyter-notebook-panel/jupyter-notebook-panel.component.html | Generalizes panel labels and accessibility text. |
| frontend/LICENSE-binary | Removes the deleted logo attribution entry. |
| .licenserc.yaml | Removes the deleted logo exclusion. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
mengw15
left a comment
There was a problem hiding this comment.
LGTM. The sweep is complete and the line it draws holds — the strings that name the input type are generic now, and the ones that still say Jupyter name the system, which is what the user is actually looking at. Nice catch deleting the logo and its two licence entries while keeping the attribution for the diagram that still shows it.

What changes were proposed in this PR?
The migration tool now accepts Python files as well as notebooks, with R and folders to follow, but the workspace still told users they were looking at a "Jupyter Notebook". A user who uploaded a
.pysaw a panel with that title, a button labelled "expand Jupyter notebook", and a confirmation asking whether to delete "this workflow's Jupyter notebook".The display strings that name the input type are now generic: the panel header and its iframe title read "Uploaded Source Code", the delete tooltip and confirmation say "source code", and the toolbar button says "expand uploaded source code". Four notifications that named the input the same way were updated too.
The toolbar button used the Jupyter logo, which reads wrong next to a generic label. It now uses the
codeicon from ng-zorro, matching every other button in that toolbar.Before

After

That made
jupyter-logo.svgunused, so it is deleted along with its.licenserc.yamlexclude and its line infrontend/LICENSE-binary. The attribution block itself stays, sincetool_popup_diagram.pngstill carries the Jupyter logo in the import modal.Display strings only. Internal names (
JupyterPanelService,notebookFileName, thenotebooktable, the/notebook-migrationendpoints) are unchanged and still accurate, since a script really is converted into a notebook. The import modal is also unchanged: its tabs name their own input correctly.Any related issues, documentation, discussions?
Closes #8543
Parent-issue #4301
How was this PR tested?
No new tests. The change is copy plus one icon, with no behavior to cover. Verified the UI changes in local deployment.
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5)