-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2/n] Disable Run Button: Create runningPromptId field to determine i…
…f button should be disabled (#907) [2n] Disable Run Button: Create runningPromptId field to determine if button should be disabled I did a few things: 1. Create a new state id `runningPromptId` to check which prompt is running, making sure to set these correctly on run prompt actions 2. Read from this state in the AIConfigEditor and passed it as a prop down to the `RunPromptButton` Question: Is there a better way of doing step #2 so that we don't need to keep piping it? ## Test Plan Make sure that: 1. When you are running a prompt, you can still cancel it 2. When another prompt is running, you can't run any other prompt 3. When prompt is complete (or cancelled or errored), all the prompts can run again https://github.com/lastmile-ai/aiconfig/assets/151060367/6e9a9cbf-6469-4ecb-ba74-1ede2ed1a292 --- Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/907). * __->__ #907 * #905
- Loading branch information
Showing
5 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters