Skip to content

Build against the published Datalayer packages; React 19; CI without the core fork - #13

Merged
echarles merged 11 commits into
mainfrom
react19
Sep 26, 2026
Merged

echarles merged 11 commits into
mainfrom
react19

Conversation

@echarles

@echarles echarles commented Sep 26, 2026 •

Copy link
Copy Markdown
Member
  • CI no longer clones and builds goanpeca/core@sdk/core-updates: every workflow checks out this repository alone and .github/actions/setup-environment only sets up Node 22 and runs npm install. @datalayer/core, @datalayer/agent-runtimes and the other Datalayer packages are the published npm releases pinned in package.json (runtime features come from @datalayer/agent-runtimes; @datalayer/core provides the state store and naming utilities).
  • Dependency ranges bumped to the latest releases; eslint and @eslint/js stay on 9 because eslint-plugin-jsx-a11y and eslint-plugin-react do not support 10 (npm install failed with ERESOLVE).
  • Prettier pass over the eight files it flagged.
  • CLAUDE.md renamed to AGENTS.md, with the intro and dependency notes realigned; DEVELOPMENT.md and README.md updated accordingly.

Verified from a clean export: npm install, format:check, lint, type-check (0 errors) and test:unit (224 tests) all pass.

echarles and others added 7 commits July 25, 2026 10:34
`podName` is `runtimeName`. That collided in the two toolbars, where a local
state called `runtimeName` already held the label a person types into the New
Agent dialog — a different thing from the runtime's identity, and until now
spelled the same way. The label is `givenName`, as it is on the wire.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 26, 2026 03:41

Copilot AI left a comment

Copy link
Copy Markdown

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

Unresolved dependency peer conflicts and runtime identifier issues block safe approval.

Review effort: Lite
Findings: 3 High severity · 1 Medium severity · 3 Low severity

Open (7)
What changed in this PR

Updates Datalayer dependencies and migrates runtime identifiers from pod names to runtimeName across the Electron app.

Changes:

  • Refreshes Datalayer, React, Lexical, Vite, and tooling dependencies.
  • Updates runtime APIs, IPC, UI components, fixtures, and tests.
  • Adjusts module resolution, RequireJS behavior, and documentation.
File Summary
tests/​mocks/​datalayer-api.ts Updates runtime mock parameters.
tests/​fixtures/​index.ts Updates runtime fixture fields.
src/​renderer/​theme/​themeStore.ts Updates theme store typing.
src/​renderer/​services/​runtime/​RuntimeService.ts Migrates runtime lifecycle handling.
src/​renderer/​services/​interfaces/​IRuntimeService.ts Updates runtime service API.
src/​renderer/​polyfills/​requirejs.js Adjusts AMD behavior.
src/​renderer/​pages/​Runtimes.tsx Updates runtime termination usage.
src/​renderer/​pages/​NotebookEditor.tsx Migrates notebook runtime state.
src/​renderer/​pages/​Environments.tsx Updates environment terminology.
src/​renderer/​pages/​DocumentEditor.tsx Migrates document runtime state.
src/​renderer/​components/​runtimes/​utils.ts Updates runtime formatting.
src/​renderer/​components/​runtimes/​RuntimeItem.tsx Updates runtime display.
src/​renderer/​components/​runtime/​RuntimeToolbar.tsx Updates runtime controls.
src/​renderer/​components/​runtime/​RuntimeSelector.tsx Updates runtime selection.
src/​renderer/​components/​runtime/​RuntimeProgressBar.tsx Updates runtime lookup.
src/​renderer/​components/​runtime/​__tests__/​RuntimeProgressBar.test.tsx Updates progress-bar tests.
src/​renderer/​components/​notebook/​Toolbar.tsx Updates notebook runtime controls.
src/​renderer/​components/​notebook/​NotebookControls.tsx Updates notebook control props.
src/​renderer/​components/​notebook/​__tests__/​Toolbar.test.tsx Updates toolbar tests.
src/​renderer/​components/​lexical/​LexicalEditor.tsx Migrates runtime props.
src/​renderer/​components/​document/​Header.tsx Updates runtime display.
src/​renderer/​components/​app/​NavigationTabs.tsx Updates navigation terminology.
src/​preload/​index.ts Updates IPC runtime APIs.
src/​main/​services/​__tests__/​datalayer-sdk-bridge.integration.test.ts Updates bridge fixtures.
src/​main/​index.ts Updates runtime IPC handlers.
package.json Updates dependencies and toolchain versions.
electron.vite.config.ts Adds workspace dependency resolution.
DEVELOPMENT.md Updates runtime documentation.
CLAUDE.md Updates runtime examples and guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json Outdated
"electron-builder": "^25.1.8",
"electron-vite": "^4.0.1",
"eslint": "^9.36.0",
"eslint": "^10.9.1",

@echarles echarles Sep 26, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in 491e72f: eslint and @eslint/js are back on 9 (eslint-plugin-jsx-a11y and eslint-plugin-react stop at 9); a clean npm install now resolves.

Comment thread package.json
"typescript": "^5.7.2",
"vite": "^5.4.11",
"typescript": "5.9.3",
"vite": "7.3.6",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@vitejs/plugin-react resolves to 4.7.0, which declares vite ^7; the range now says ^4.7.0 so the lockstep is explicit.

uid: result.uid,
givenName: runtimeName,
podName: result.podName,
runtimeName: result.runtimeName,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed: terminateRuntime() now calls deleteRuntime(notebookRuntime.runtime.runtimeName).

Comment thread tests/fixtures/index.ts Outdated
uid: 'runtime-123',
given_name: 'test-notebook-runtime',
pod_name: 'datalayer-runtime-abc123',
runtime_name: 'datalayer-runtime-abc123',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed: the fixtures carry the camelCase RuntimeJSON shape the SDK bridge hands the renderer (runtimeName, givenName, environmentName, ...).

Comment thread package.json
Comment on lines +57 to +60
"@lexical/code": "0.49.0",
"@lexical/link": "0.49.0",
"@lexical/list": "0.49.0",
"@lexical/react": "0.49.0",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The PR description now states the full scope: CI without the core fork, dependency bumps, the runtime identifier rename and the docs rename.

Comment thread src/renderer/components/runtimes/RuntimeItem.tsx Outdated
* Manually notify all subscribers that a runtime has been terminated.
* This propagates the termination to ALL editors connected to that runtime.
* @param podName - The pod name of the terminated runtime
* @param runtimeName - The pod name of the terminated runtime

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed: the JSDoc says "the name of the terminated runtime".

…kout; eslint 9 (plugins have no 10 support); Prettier pass; CLAUDE.md becomes AGENTS.md
@echarles echarles changed the title Depend on the latest Datalayer packages Build against the published Datalayer packages; React 19; CI without the core fork Sep 26, 2026
… fixtures, Runtime label and JSDoc; production build: SWC pinned for vite-plugin-top-level-await, plugin-react range that declares Vite 7
@echarles
echarles merged commit 0a0705b into main Sep 26, 2026
10 checks passed
@echarles
echarles deleted the react19 branch September 26, 2026 06:31
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.

2 participants