Remove Phoenix & Notebooks - Phase 2: Remove in-app notebook authorin…#2515
Draft
jawelton74 wants to merge 1 commit into
Draft
Remove Phoenix & Notebooks - Phase 2: Remove in-app notebook authorin…#2515jawelton74 wants to merge 1 commit into
jawelton74 wants to merge 1 commit into
Conversation
…g & rendering Delete the nteract rendering engine, notebook tabs, panes, the read-only viewer, Schema Analyzer (pulled forward from Phase 3), and all UI entry points that open notebooks. Decouple surviving files (Explorer, NotebookManager, useNotebook, ResourceTreeAdapter) with minimal edits, keeping GitHub/Juno/Phoenix wiring for later phases. Removed 22 zero-importer notebook-only npm deps; re-added phantom transitively-hoisted deps still used by surviving code: xterm, xterm-addon-fit (CloudShell), d3-collection (Graph), @nteract/myths (@nteract/core). Verified: compile, compile:strict, lint (0 errors), format:check, test (1945 passing), build:ci all green. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Playwright tests ✅ passed
📁 Report: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preview this branch
Summary
This PR implements Phase 2 of the multi-phase effort to remove the Notebooks / Phoenix / Juno / GitHub feature set from Cosmos Explorer, while preserving the database shell terminals (which now run purely on CloudShell after Phase 1).
Phase 2 removes the in-app notebook authoring and rendering experience: the nteract rendering engine, notebook tabs, panes, the read-only notebook viewer, the Schema Analyzer (pulled forward from Phase 3 because it renders through the same engine), and all UI entry points that open notebooks.
Surviving files that are still needed by later phases (GitHub in Phase 4; Phoenix / notebook container core in Phase 5) are decoupled with minimal edits rather than deleted.
Net change: 108 files changed, ~148 insertions, ~14,500 deletions.
What changed
Deleted — rendering engine & content
src/Explorer/Notebook/NotebookComponent/,NotebookRenderer/,SecurityWarningBar/NotebookClientV2.ts(+notebookClientV2.test.ts),NTeractUtil.ts,NotebookContentClient.ts,FileSystemUtil.tsDeleted — tabs, panes, viewers
src/Explorer/Tabs/NotebookV2Tab.ts,NotebookTabBase.ts,SchemaAnalyzerTab.tssrc/Explorer/Panes/CopyNotebookPane/,src/Explorer/Panes/StringInputPane/(became unused oncerenameNotebook/onCreateDirectorywere removed)src/Explorer/Controls/NotebookViewer/,src/CellOutputViewer/Deleted — Schema Analyzer (pulled forward from Phase 3)
src/Explorer/Notebook/SchemaAnalyzer/and its tab/command-bar/tree entry pointsDecoupled — surviving files (full removal deferred to Phase 5)
Explorer.tsx— removed notebook authoring methods (openNotebook, import/copy/rename/createDir/read/download/upload/delete/refresh,notebookToImport);refreshNotebookListreduced to a no-op; keptopenNotebookTerminal/connectToNotebookTerminaland the Phoenix container methods.NotebookManager.tsx— stripped content-provider / content-client /CopyNotebookPane/ Schema Analyzer usage; kept GitHub / Juno /NotebookContainerClientwiring.useNotebook.ts— removed the notebook content-client tree initialization block.ResourceTreeAdapter.tsx— neutralized the dead "My Notebooks" file/dir context-menu actions and refresh handlers that called removedExplorermethods.useTabs.ts— dropped theNotebookTabV2import;closeAllNotebookTabsnow usesTabsBase(still closes Terminal tabs).Contracts/ViewModels.ts— removed theonSchemaAnalyzerClickinterface method (CollectionTabKindenum values retained for Phase 6 cleanup).OpenActions.tsx— removedOpenSampleNotebookand Schema Analyzer branches.MostRecentActivity.ts— removed theOpenNotebooktype/item; migration andgetItemsnow filter out stale notebook entries.SplashScreen.tsx— removed notebook recent-activity rendering and unused notebook icon import.Config
webpack.config.js— removed thecellOutputViewerentry, its HTML plugin, and the now-unusedInlineChunkHtmlPlugin/HTMLInlineCSSWebpackPlugin.tsconfig.strict.json— removed entries for deleted files (keptNotebookContentItem.ts, deferred to Phase 5).jest.config.js— removed the orphaned@nteract/stateful-componentsmodule mapper.package.json— removed 22 zero-importer notebook-only deps (@jupyterlab/*,@phosphor/widgets, and unused@nteract/*). Deferred@nteract/core,@nteract/commutable,@nteract/markdown,@nteract/fixtures, andrx-jupyter(still imported by surviving GitHub / markdown code).patches/— removed the obsolete@phosphor+virtualdom+1.2.0.patch;@phosphor/virtualdomwas a transitive dep of the removed@phosphor/widgetsand is no longer installed, sopatch-package(postinstall) failed until it was deleted.Removing the
@nteract/*packages stripped several packages that surviving code still imports but were never declared directly (they were hoisted transitively). These were re-added as explicit direct dependencies:xtermxterm-addon-fitd3-collectionD3ForceGraph@nteract/myths@nteract/coreTests
NotebookUtil.test.ts(removed thefindCodeCellWithDisplaytest + nteract fixtures) andOpenActions.test.tsx(removedonSchemaAnalyzerClick).SettingsComponent,AddGlobalSecondaryIndexPanel,GitHubReposPanel) — each change is solely the removal of the now-deletedcopyNotebookfunction from the serializedExplorerobject.Verification
All checks pass:
npm run compilenpm run compile:strictnpm run lintnpm run format:checknpm testnpm run build:ci(webpack)Scope / follow-ups
src/GitHub/, GitHub panel/OAuth,GitHubUtils) and the deferred@nteract/core/commutable/fixturesdeps.NotebookContentItem.ts,NotebookUtil.ts,useNotebook, "My Notebooks" tree inResourceTreeAdapter).CollectionTabKind) and leftover comments.See
docs/remove-notebooks-plan.mdfor the full phased plan.