Skip to content

fix: make workspace buttons less confusing when errors happen #10609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge: main
  • Loading branch information
Parkreiner committed Nov 15, 2023
commit f7561e107fe0959c291d6a0696750074e1fa5586
37 changes: 37 additions & 0 deletions site/src/xServices/auth/authMethodsXService.typegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// This file was automatically generated. Edits will be overwritten

export interface Typegen0 {
"@@xstate/typegen": true;
internalEvents: {
"done.invoke.authMethods.gettingAuthMethods:invocation[0]": {
type: "done.invoke.authMethods.gettingAuthMethods:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"error.platform.authMethods.gettingAuthMethods:invocation[0]": {
type: "error.platform.authMethods.gettingAuthMethods:invocation[0]";
data: unknown;
};
"xstate.init": { type: "xstate.init" };
};
invokeSrcNameMap: {
getAuthMethods: "done.invoke.authMethods.gettingAuthMethods:invocation[0]";
};
missingImplementations: {
actions: never;
delays: never;
guards: never;
services: never;
};
eventsCausingActions: {
assignAuthMethods: "done.invoke.authMethods.gettingAuthMethods:invocation[0]";
setError: "error.platform.authMethods.gettingAuthMethods:invocation[0]";
};
eventsCausingDelays: {};
eventsCausingGuards: {};
eventsCausingServices: {
getAuthMethods: "xstate.init";
};
matchesStates: "gettingAuthMethods" | "idle";
tags: never;
}
104 changes: 104 additions & 0 deletions site/src/xServices/auth/authXService.typegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
// This file was automatically generated. Edits will be overwritten

export interface Typegen0 {
"@@xstate/typegen": true;
internalEvents: {
"done.invoke.authState.loadingInitialAuthData:invocation[0]": {
type: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]": {
type: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.signIn": {
type: "done.invoke.signIn";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.signOut": {
type: "done.invoke.signOut";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"error.platform.authState.loadingInitialAuthData:invocation[0]": {
type: "error.platform.authState.loadingInitialAuthData:invocation[0]";
data: unknown;
};
"error.platform.authState.signedIn.profile.updatingProfile:invocation[0]": {
type: "error.platform.authState.signedIn.profile.updatingProfile:invocation[0]";
data: unknown;
};
"error.platform.signIn": { type: "error.platform.signIn"; data: unknown };
"error.platform.signOut": { type: "error.platform.signOut"; data: unknown };
"xstate.init": { type: "xstate.init" };
};
invokeSrcNameMap: {
loadInitialAuthData: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
signIn: "done.invoke.signIn";
signOut: "done.invoke.signOut";
updateProfile: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
};
missingImplementations: {
actions: never;
delays: never;
guards: never;
services: never;
};
eventsCausingActions: {
assignData:
| "done.invoke.authState.loadingInitialAuthData:invocation[0]"
| "done.invoke.signIn";
assignError:
| "error.platform.authState.loadingInitialAuthData:invocation[0]"
| "error.platform.signIn"
| "error.platform.signOut";
assignUpdateProfileError: "error.platform.authState.signedIn.profile.updatingProfile:invocation[0]";
clearData: "done.invoke.signOut";
clearError:
| "SIGN_IN"
| "done.invoke.authState.loadingInitialAuthData:invocation[0]"
| "done.invoke.signOut";
clearUpdateProfileError: "UPDATE_PROFILE";
notifySuccessProfileUpdate: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
redirect: "done.invoke.signOut";
updateUser: "done.invoke.authState.signedIn.profile.updatingProfile:invocation[0]";
};
eventsCausingDelays: {};
eventsCausingGuards: {
hasRedirectUrl: "done.invoke.signOut";
isAuthenticated: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
needSetup: "done.invoke.authState.loadingInitialAuthData:invocation[0]";
};
eventsCausingServices: {
loadInitialAuthData: "xstate.init";
signIn: "SIGN_IN";
signOut: "SIGN_OUT";
updateProfile: "UPDATE_PROFILE";
};
matchesStates:
| "configuringTheFirstUser"
| "loadingInitialAuthData"
| "signedIn"
| "signedIn.profile"
| "signedIn.profile.idle"
| "signedIn.profile.idle.error"
| "signedIn.profile.idle.noError"
| "signedIn.profile.updatingProfile"
| "signedOut"
| "signingIn"
| "signingOut"
| {
signedIn?:
| "profile"
| {
profile?:
| "idle"
| "updatingProfile"
| { idle?: "error" | "noError" };
};
};
tags: never;
}
187 changes: 187 additions & 0 deletions site/src/xServices/createTemplate/createTemplateXService.typegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
// This file was automatically generated. Edits will be overwritten

export interface Typegen0 {
"@@xstate/typegen": true;
internalEvents: {
"": { type: "" };
"done.invoke.createTemplate.copyingTemplateData:invocation[0]": {
type: "done.invoke.createTemplate.copyingTemplateData:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.creating.checkingParametersAndVariables:invocation[0]": {
type: "done.invoke.createTemplate.creating.checkingParametersAndVariables:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.creating.creatingFirstVersion:invocation[0]": {
type: "done.invoke.createTemplate.creating.creatingFirstVersion:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.creating.creatingTemplate:invocation[0]": {
type: "done.invoke.createTemplate.creating.creatingTemplate:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]": {
type: "done.invoke.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.creating.loadingVersionLogs:invocation[0]": {
type: "done.invoke.createTemplate.creating.loadingVersionLogs:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]": {
type: "done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.loadingStarterTemplate:invocation[0]": {
type: "done.invoke.createTemplate.loadingStarterTemplate:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"done.invoke.createTemplate.uploading:invocation[0]": {
type: "done.invoke.createTemplate.uploading:invocation[0]";
data: unknown;
__tip: "See the XState TS docs to learn how to strongly type this.";
};
"error.platform.createTemplate.copyingTemplateData:invocation[0]": {
type: "error.platform.createTemplate.copyingTemplateData:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.creating.checkingParametersAndVariables:invocation[0]": {
type: "error.platform.createTemplate.creating.checkingParametersAndVariables:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.creating.creatingFirstVersion:invocation[0]": {
type: "error.platform.createTemplate.creating.creatingFirstVersion:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.creating.creatingTemplate:invocation[0]": {
type: "error.platform.createTemplate.creating.creatingTemplate:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]": {
type: "error.platform.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.creating.loadingVersionLogs:invocation[0]": {
type: "error.platform.createTemplate.creating.loadingVersionLogs:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]": {
type: "error.platform.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.loadingStarterTemplate:invocation[0]": {
type: "error.platform.createTemplate.loadingStarterTemplate:invocation[0]";
data: unknown;
};
"error.platform.createTemplate.uploading:invocation[0]": {
type: "error.platform.createTemplate.uploading:invocation[0]";
data: unknown;
};
"xstate.init": { type: "xstate.init" };
};
invokeSrcNameMap: {
checkParametersAndVariables: "done.invoke.createTemplate.creating.checkingParametersAndVariables:invocation[0]";
copyTemplateData: "done.invoke.createTemplate.copyingTemplateData:invocation[0]";
createFirstVersion: "done.invoke.createTemplate.creating.creatingFirstVersion:invocation[0]";
createTemplate: "done.invoke.createTemplate.creating.creatingTemplate:invocation[0]";
createVersionWithParametersAndVariables: "done.invoke.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]";
loadStarterTemplate: "done.invoke.createTemplate.loadingStarterTemplate:invocation[0]";
loadVersionLogs: "done.invoke.createTemplate.creating.loadingVersionLogs:invocation[0]";
uploadFile: "done.invoke.createTemplate.uploading:invocation[0]";
waitForJobToBeCompleted: "done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
};
missingImplementations: {
actions: "onCreate";
delays: never;
guards: never;
services: never;
};
eventsCausingActions: {
assignCopiedTemplateData: "done.invoke.createTemplate.copyingTemplateData:invocation[0]";
assignError:
| "error.platform.createTemplate.copyingTemplateData:invocation[0]"
| "error.platform.createTemplate.creating.checkingParametersAndVariables:invocation[0]"
| "error.platform.createTemplate.creating.creatingFirstVersion:invocation[0]"
| "error.platform.createTemplate.creating.creatingTemplate:invocation[0]"
| "error.platform.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]"
| "error.platform.createTemplate.creating.loadingVersionLogs:invocation[0]"
| "error.platform.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]"
| "error.platform.createTemplate.loadingStarterTemplate:invocation[0]";
assignFile: "UPLOAD_FILE";
assignJobError: "done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
assignJobLogs: "done.invoke.createTemplate.creating.loadingVersionLogs:invocation[0]";
assignParametersAndVariables: "done.invoke.createTemplate.creating.checkingParametersAndVariables:invocation[0]";
assignStarterTemplate: "done.invoke.createTemplate.loadingStarterTemplate:invocation[0]";
assignTemplateData: "CREATE";
assignUploadResponse: "done.invoke.createTemplate.uploading:invocation[0]";
assignVersion:
| "done.invoke.createTemplate.creating.creatingFirstVersion:invocation[0]"
| "done.invoke.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]"
| "done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
displayUploadError: "error.platform.createTemplate.uploading:invocation[0]";
onCreate: "done.invoke.createTemplate.creating.creatingTemplate:invocation[0]";
removeFile:
| "REMOVE_FILE"
| "error.platform.createTemplate.uploading:invocation[0]";
};
eventsCausingDelays: {};
eventsCausingGuards: {
hasFailed: "done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
hasFile: "REMOVE_FILE";
hasNoParametersOrVariables: "done.invoke.createTemplate.creating.checkingParametersAndVariables:invocation[0]";
hasParametersOrVariables: "done.invoke.createTemplate.copyingTemplateData:invocation[0]";
isExampleProvided: "";
isNotUsingExample: "UPLOAD_FILE";
isTemplateIdToCopyProvided: "";
};
eventsCausingServices: {
checkParametersAndVariables: "done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
copyTemplateData: "";
createFirstVersion:
| "CREATE"
| "done.invoke.createTemplate.copyingTemplateData:invocation[0]";
createTemplate: "done.invoke.createTemplate.creating.checkingParametersAndVariables:invocation[0]";
createVersionWithParametersAndVariables: "CREATE";
loadStarterTemplate: "";
loadVersionLogs: "done.invoke.createTemplate.creating.waitingForJobToBeCompleted:invocation[0]";
uploadFile: "UPLOAD_FILE";
waitForJobToBeCompleted:
| "done.invoke.createTemplate.creating.creatingFirstVersion:invocation[0]"
| "done.invoke.createTemplate.creating.creatingVersionWithParametersAndVariables:invocation[0]";
};
matchesStates:
| "copyingTemplateData"
| "creating"
| "creating.checkingParametersAndVariables"
| "creating.created"
| "creating.creatingFirstVersion"
| "creating.creatingTemplate"
| "creating.creatingVersionWithParametersAndVariables"
| "creating.loadingVersionLogs"
| "creating.promptParametersAndVariables"
| "creating.waitingForJobToBeCompleted"
| "idle"
| "loadingStarterTemplate"
| "starting"
| "uploading"
| {
creating?:
| "checkingParametersAndVariables"
| "created"
| "creatingFirstVersion"
| "creatingTemplate"
| "creatingVersionWithParametersAndVariables"
| "loadingVersionLogs"
| "promptParametersAndVariables"
| "waitingForJobToBeCompleted";
};
tags: "loading" | "submitting";
}
Loading