remove flakey has no pending logic, let them do whatever they want (#3457)

* remove flakey has no pending logic

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add test for many at once w dismiss bug

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* toastid

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixup more tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-08-14 23:08:37 -07:00
committed by GitHub
parent 0916f990cb
commit a7a88bd762
5 changed files with 211 additions and 20 deletions

View File

@ -287,7 +287,6 @@ export const modelingMachineDefaultContext = {
streamDimensions: { streamWidth: 1280, streamHeight: 720 },
openPanes: getPersistedContext().openPanes || ['code'],
} as Store,
pendingTextToCad: undefined as string | undefined,
}
export const modelingMachine = createMachine(
@ -354,12 +353,7 @@ export const modelingMachine = createMachine(
'Text-to-CAD': {
target: 'idle',
internal: true,
actions: [
'Add pending text-to-cad prompt',
'Submit to Text-to-CAD API',
'Remove pending text-to-cad prompt',
],
cond: 'Has no pending text-to-cad submissions',
actions: ['Submit to Text-to-CAD API'],
},
},