Skip to content

Fix/build - #234

Merged
echarles merged 5 commits into
mainfrom
fix/build
Jul 27, 2026
Merged

Fix/build#234
echarles merged 5 commits into
mainfrom
fix/build

Conversation

@echarles

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 27, 2026 04:47
@netlify

netlify Bot commented Jul 27, 2026

Copy link
Copy Markdown

Deploy Preview for datalayer-core failed.

Name Link
🔨 Latest commit 69523d1
🔍 Latest deploy log https://app.netlify.com/projects/datalayer-core/deploys/6a66e2cca32b3500086c7b5a

@echarles
echarles merged commit 3d67522 into main Jul 27, 2026
6 of 13 checks passed

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.

Pull request overview

This PR focuses on unblocking build/runtime issues for the CLI login bundle and improving authentication UX flows, while reducing unnecessary JupyterLab-related bundle weight in standalone builds.

Changes:

  • Extend vite.cli-login.config.ts to better handle raw asset imports (.raw.css, .whl, .lexical) and CommonJS interop for the CLI login build.
  • Enhance sign-in components with richer UX (provider-specific loading indicators, disabled states, password toggle flow, MFA validation flow) and more configuration options.
  • Lazy-load heavy JupyterLab/Jupyter React dependencies in useToast to keep standalone bundles lighter.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
vite.cli-login.config.ts Adds build-time plugins and dependency optimization rules to fix asset/query handling in the CLI login bundle.
src/views/iam/SignInSimple.tsx Expands the sign-in UI/behavior (social loading indicators, password form toggle, MFA validation, configurable labels/links/layout).
src/hooks/useToast.tsx Lazily loads JupyterLab-related dependencies and gates Notification usage behind a runtime-loaded API handle.
src/hooks/useJupyterLabTheme.tsx Uses a type-only import for IThemeManager to avoid runtime dependency coupling.
src/components/auth/LoginToken.tsx Adds disabled prop to prevent token login interactions during other in-flight login flows.
src/components/auth/Login.tsx Adds social sign-in spinners/disabled states and refactors callback URI generation + social sign-in initiation.
README.md Updates the main header text.
.gitignore Ignores static build output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +127 to +132
: location.protocol +
'//' +
location.hostname +
':' +
location.port +
iamProvider.oauth2CallbackUIRoute;
Comment on lines +247 to +255
const startOAuthSignIn = (providerSpec: IIAMProviderSpec) => {
if (getOAuth2URLMutation.isPending) {
return;
}
setPendingOAuthProvider(providerSpec.name);
const queryArgs: Record<string, string> = {
provider: providerSpec.name,
callback_uri: buildCallbackURI(providerSpec),
};
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