Skip to content

feat(notebook-migration): generalize notebook-specific UI terminology - #8631

Merged
mengw15 merged 2 commits into
apache:mainfrom
zyratlo:migration-tool-generalize-ui-terms
Sep 21, 2026
Merged

mengw15 merged 2 commits into
apache:mainfrom
zyratlo:migration-tool-generalize-ui-terms

Conversation

@zyratlo

@zyratlo zyratlo commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

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 .py saw 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 code icon from ng-zorro, matching every other button in that toolbar.

Before
Screenshot 2026-09-21 at 12 54 56 PM

After
image

That made jupyter-logo.svg unused, so it is deleted along with its .licenserc.yaml exclude and its line in frontend/LICENSE-binary. The attribution block itself stays, since tool_popup_diagram.png still carries the Jupyter logo in the import modal.

Display strings only. Internal names (JupyterPanelService, notebookFileName, the notebook table, the /notebook-migration endpoints) 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)

@zyratlo

zyratlo commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

/request-review @mengw15

@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Sep 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @yangzhang75, @Neilk1021, @renovate-bot
    You can notify them by mentioning @yangzhang75, @Neilk1021, @renovate-bot in a comment.

@github-actions
github-actions Bot requested a review from mengw15 September 21, 2026 19:31
@mengw15
mengw15 requested a balanced review from Copilot September 21, 2026 19:40
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.80%. Comparing base (279e12b) to head (8a9de89).
✅ All tests successful. No failed tests found.

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     
Flag Coverage Δ *Carryforward flag
access-control-service 71.78% <ø> (ø) Carriedforward from 279e12b
agent-service 99.16% <ø> (ø) Carriedforward from 279e12b
amber 88.60% <ø> (ø) Carriedforward from 279e12b
computing-unit-managing-service 55.20% <ø> (ø) Carriedforward from 279e12b
config-service 87.37% <ø> (ø) Carriedforward from 279e12b
file-service 81.53% <ø> (ø) Carriedforward from 279e12b
frontend 96.63% <100.00%> (-0.01%) ⬇️
notebook-migration-service 83.73% <ø> (ø) Carriedforward from 279e12b
pyamber 98.48% <ø> (ø) Carriedforward from 279e12b
workflow-compiling-service 74.09% <ø> (ø) Carriedforward from 279e12b

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 Low severity

Open (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 mengw15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@mengw15
mengw15 added this pull request to the merge queue Sep 21, 2026
Merged via the queue into apache:main with commit 6857871 Sep 21, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Notebook Migration] Generalize notebook-specific terminology across the migration tool

4 participants