-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Developer Tools
-
3
-
Iteration O (Nov 4 -25)
When a users asks the participant something that results in code generation we provide a button to run the code. However, they may not be connected to an instance, so they can't run that code. At the moment if a user hits the `> Run` button while not connected we fail silently. This ticket involves adding a connection flow when not connected. Similar to the `Change active connection` command handler. So folks can connect then run. If they don't connect, we don't run anything and can show the same error we show when attempting to run a playground without a connection: `Please connect to a database before running a playground.` (Eventually we also probably want that flow to prompt folks to connect, or have a connect button on the error message).
Discussion on that in slack:
https://mongodb.slack.com/archives/C07FSUYSB2P/p1727183949874599 .