Skip to content

Commit

Permalink
Update dashboard UI to account for local deployments (#29198)
Browse files Browse the repository at this point in the history
* Update the deployment picker to display all of your dev deployments with different icons for cloud vs. dev
* Add a disconnected overlay for when the local deployment is not connected
* Gate deployment fetches (that I could find) on being connected

GitOrigin-RevId: 6c8ac496602285c4eea0019f7d794fea24e0ad18
  • Loading branch information
sshader authored and Convex, Inc. committed Sep 11, 2024
1 parent a68eaa6 commit c2b120b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions npm-packages/convex/src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type {
BaseConvexClientOptions,
MutationOptions,
SubscribeOptions,
ConnectionState,
} from "./sync/client.js";
export type { ConvexClientOptions } from "./simple_client.js";
export { ConvexClient } from "./simple_client.js";
Expand Down
2 changes: 1 addition & 1 deletion npm-packages/convex/src/bundler/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function logVerbose(ctx: Context, ...logged: any) {

// Start a spinner.
// To change its message use changeSpinner.
// To print warnings/erros while it's running use logError or logWarning.
// To print warnings/errors while it's running use logError or logWarning.
// To stop it due to an error use logFailure.
// To stop it due to success use logFinishedStep.
export function showSpinner(ctx: Context, message: string) {
Expand Down
2 changes: 2 additions & 0 deletions npm-packages/convex/src/cli/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ async function selectExistingProject(
const functionsPath = functionsDir(configName(), existingProjectConfig);

await doCodegen(ctx, functionsPath, "disable");

logFinishedStep(ctx, `Reinitialized project ${chalk.bold(projectSlug)}`);
return { teamSlug, projectSlug };
}

Expand Down

0 comments on commit c2b120b

Please sign in to comment.